Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DEFINE a population

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] DEFINE a population
 Login/Join
 
Silver Member
posted
I have a view that shows:
ID     LAW_ALUMNI     SOM_ALUMNI     NSG_ALUMNI
####1      Y              N              N
####2      N              Y              N
####3      Y              Y              N
####4      N              N              Y
####5      N              Y              Y

N's indicate that the constituent IS NOT an alumni of the school. Y's indicate that the constituent IS an alumni of the school. Many alums have multiple degrees in different schools.

I want to make a drop-down list of Population so that a user can choose "Law Alumni", "SOM Alumni", or "Nsg Alumni".... and if Person A is an alumni of multiple schools, then Person A will show up under the school that is chosen.

Currently, I have:
DEFINE FILE WF_COLLEGE
Population/A20=
IF WF_COLLEGE.WF_COLLEGE.LAW_ALUMNI = 'Y' THEN 'LAW' ELSE
IF WF_COLLEGE.WF_COLLEGE.SOM_ALUMNI = 'Y' THEN 'SOM' ELSE 
IF WF_COLLEGE.WF_COLLEGE.NSG_ALUMNI = 'Y' THEN 'NSG' ELSE 'N';
END
...
...
WHERE WF_COLLEGE.WF_COLLEGE.Population EQ '&Population.(<Law Alumni,LAW>,<SOM Alumni,SOM>,<Nsg Alumni,NSG>).Select a Population.';
...
...


Doing it this way doesn't work because if someone is a LAW_ALUMNI and SOM_ALUMNI, they'll only populate in LAW_ALUMNI and never in SOM_ALUMNI because of the order of my DEFINE...

The only way I can see this working is having an OR, but not sure how to phrase it correctly. I'm having a serious mental block with it.

Any ideas on how I can get the DEFINE to work correctly so I can keep the drop-down menu? Confused

Thanks all!

This message has been edited. Last edited by: a415,


8009
Windows 7
Excel/HTML/AHTML/PDF
 
Posts: 34 | Location: San Francisco, CA | Registered: July 25, 2011Report This Post
Expert
posted Hide Post
Can you do this...

WHERE WF_COLLEGE.WF_COLLEGE.LAW_ALUMNI EQ 'Y' AND 'LAY EQ '&Population.(,,).Select a Population.'
OR WF_COLLEGE.WF_COLLEGE.SOM_ALUMNI EQ 'Y' AND 'SOM EQ '&Population'
OR WF_COLLEGE.WF_COLLEGE.NSG_ALUMNI EQ 'Y' AND 'NSG EQ '&Population'


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
Waz! That was it!! Thanks so much Smiler


8009
Windows 7
Excel/HTML/AHTML/PDF
 
Posts: 34 | Location: San Francisco, CA | Registered: July 25, 2011Report This Post
Expert
posted Hide Post
Keep in mind that if you change the parameter to multi select, then all will have to change.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Waz:
quote:
Keep in mind that if you change the parameter to multi select, then all will have to change.


What is the "all" you are referring to?
Thanks!


WebFOCUS 8.1.05 Windows 7, all output
 
Posts: 107 | Registered: February 18, 2011Report This Post
Expert
posted Hide Post
The sample code will only work on a single select list, not a multi select list.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
how can I make similar work for a multiselect?


WebFOCUS 7.702
Windows, All Outputs
 
Posts: 27 | Registered: February 17, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DEFINE a population

Copyright © 1996-2020 Information Builders