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.
Question, I'm putting parms on a report I've developed. It's a multi-select compare value from a dynamic list. When I run it this way, it requires me to select values from each list. In this case, I have managers and status. I'd like to be able to select all (for instance on status) without having to highlight each value.
When I run the parm as a Static List, it gives me the *Select All value. Can I use that in a dynamic list selection? If so, how?
Here's the parm select
WHERE ( TWDRVMGR EQ &TWDRVMGR.(OR(FIND TWDRVMGR IN twicpf)).Driver Manager. ) AND ( TSSTSDESC EQ &TSSTSDESC.(OR(FIND TSSTSDESC IN twicstspf)).TSSTSDESC. );
wayne i'm guessing you haven't written an actual launch page, using DevStu, is that right?
did you use a gui to generate that WHERE statement? How do you make the file 'twicpf'?
what you're going to want is an entry in your selectable list , at the top, for ALL and the value that gets passed is FOC_NONE. If you use devstu to build a launch page, and you choose to let a dropdown parm be populated "dynamic" or from the master, you have the opportunity to check the box for 'the ALL option', and you'll get an entry in your dropdown with the word "ALL", and the value FOC_NONE. When focus sees "WHERE TWDRVMGR EQ FOC_NONE" , it knows to ignore the filter.
See how far you can get with all this so far...
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
WHERE ( TWDRVMGR EQ &TWDRVMGR.(OR(FIND TWDRVMGR IN twicpf)).Driver Manager. ) AND ( TSSTSDESC EQ &TSSTSDESC.(OR(FIND TSSTSDESC IN twicstspf)).TSSTSDESC. );
When FOC_NONE appears in the TABLE request (after resultion of the "FIND" references) it causes the entire line of code in which it appears to be ignored. So, in following Susannah's lead, you need to separate the two conditions into independent Where clauses, appearing on separate lines, like so:
WHERE TWDRVMGR EQ &TWDRVMGR.(OR(FIND TWDRVMGR IN twicpf)).Driver Manager. ;
WHERE TSSTSDESC EQ &TSSTSDESC.(OR(FIND TSSTSDESC IN twicstspf)).TSSTSDESC. ;
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
susannah, I have created launch pages and tried that on this one. But what I've found, is if I have two parms, the Select All function does it for both selections. I can't pick a manager and all statuses for example.
The TWICPF is not a hold file, it's a DB2 table.
Going to try J. Gross's code now. Maybe that will rectify that problem.
Jack's comment identifies the issue you are having and his solution should fix your problem. That's one of the quirks that MANY people encounter when using FOC_NONE. You cannot use compound selection criteria.
Personally, I try to stay away from using it, but sometimes it's a quick solution. Otherwise, I code my own "ALL" value and use Dialogue Manager to create the appropriate filters.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
true, i myself don't like FOC_NONE b/c it isn't actually a character string and i'm usually doing alot more with my &parms in a fex than just constructing a where statement. I've gotten in trouble w/ it...so i have other things i prefer to use , that are bulletproof. and i just read Darin's post and i agree w/ him. But FOC_NONE does work outside of mre, and it is way wicked cool...for what it is.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003