[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

How to show values in second column which based on first column in the view?

Posted on 2003-11-13
2
Medium Priority
?
187 Views
Last Modified: 2013-12-18
Hi all,

Need help urgently to resolve this problem.
I have a form (called "frmAdvInfo"), which has 10 fields (called "SkillCseNm1", "SkillCseNm2", etc) for users to key in "Skill-based" Course Name, and another 10 fields(called "KnwCseNm1", "KnwCseNm2", etc) for users to key in "Knowledge-based" Course Name.

So in a view, I need to show the Category of the Course Name (whether it's "Skill-based" or "Knowledge-based") in the 1st column. In the 2nd column of the view I need to show the Course Name, ie. if the Course category is "Skill-based", I need to show the values of "SkillCseNm1", "SkillCseNm2" etc fields. If it's "Knowledge-based" course, then I need to show the values of "KnwCseNm1", "KnwCseNm2" etc fields.

I have managed to show the first column values (ie, the category of the courses - Skill-based or Knowledge-based).
Here is my formula of 1st column:
tmpSkill := @If(@Trim(SkillCseNm1)!="" | @Trim(SkillCseNm2)!="" |@Trim(SkillCseNm3)!="" | @Trim(SkillCseNm4)!="" | @Trim(SkillCseNm5)!="" | @Trim(SkillCseNm6)!="" | @Trim(SkillCseNm7)!="" | @Trim(SkillCseNm8)!="" | @Trim(SkillCseNm9)!="" | @Trim(SkillCseNm10)!=""; "Skill-based"; "");
tmpKnw := @If(@Trim(KnwCseNm1)!="" | @Trim(KnwCseNm2)!="" | @Trim(KnwCseNm3)!="" | @Trim(KnwCseNm4)!="" | @Trim(KnwCseNm5)!="" | @Trim(KnwCseNm6)!="" | @Trim(KnwCseNm7)!="" | @Trim(KnwCseNm8)!="" | @Trim(KnwCseNm9)!="" | @Trim(KnwCseNm10)!=""; "Knowledge-based"; "");
@Trim(tmpSkill:tmpKnw)

Does anyone know how to resolve this?
Thanks very much in advance.

kspuea
0
Comment
Question by:kspuea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 280 total points
ID: 9744623
Can a document have both skill and knowledge based, or should it only have one type.
if it can only have one type, this is how I would do it.

have a radio button on the top of the form, where user chooses skill or knowledge.  Now, you only need ten fields CseNm1...CseNm10,  The first view column will just be the radio button field.

If you need to allow both, then what you should do is have a single column that categorizes on two parts. Here's your formula:

SkillNames := @Trim(SkillCseNm1 : ... : SkillCseNm10);
KnowNames := @Trim(KnwCseNm1 : ... : KnwCseNm10);
Skills := @If(SkillNames = ""; ""; "Skill-based\\" + SkillNames);
Knows := @If(KnowNames = ""; ""; "Knowledge-based\\" + KnowNames);
@Trim(Skills : Knows);


This column should be categorized.  Even though it is a single column, it will be treated as two categorized columns, separated by the \\
0
 

Author Comment

by:kspuea
ID: 9745600
Yes, the document can have both types of courses.
Bingo, qwaletee! Your method is working wonderful!!!  :-)

Thanks very much!
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question