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.
I'm creating a launch page in which the user will enter the customer number, and the report will bring back the invoices on that account. How can I code to allow my user to enter multiple accounts? There are to many accounts to use a listbox. Any suggestions? Thanks for your help.
Posts: 9 | Location: Texas | Registered: June 09, 2008
The easiest would be just to use WHERE ACCT_NUMBER IN (&ACCTS); The commmas should give you the correct syntax. However, if the values are alpha and quotes are needed you would have to do some additional work on the string.
The other option would be to test your parm string to see if it contains a comma. If so, branch to a piece of code that will test the length (which could tell you how many values were entered) and then use GETTOK to parse the string out into individual parameters which you can then use in WHERE ACCT_NUMBER EQ &VAL1 or &VAL2 or &VAL3, etc.;
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
Or you can create a loop that asks you to enter a second (and more) acct_number. Each time you enter a new one it updates the internal amperfield by adding the new code to it. Lot's of examples here on FP.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
Think through the human factors. Since a report will (typically) silently skip over any erroneous account numbers, you may want to add a feedback-and-confirmation step:
In the launch page, use JS to check syntax on the entered text (as suggested above);
then proceed to a confirmation page (i.e. a report) showing what account numbers were parsed out and some looked-up database info (e.g. account name) so the user can visually validate the accounts; user should be able to revise, abandon, or confirm and proceed.
upon user confirmation, run the requested report.
Depends on business factors, but I would offer (and gently or firmly push for) that approach, rather than directly running with free-form input of multiple account numbers.
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005