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     allow user to enter multiple values in parameter field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
allow user to enter multiple values in parameter field
 Login/Join
 
Member
posted
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, 2008Report This Post
Expert
posted Hide Post
How about a text box with commas in between the acount numbers?

Please update your profile signature with your product suite, release, and platform so that we can better help you.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Virtuoso
posted Hide Post
That would be my suggestion as well.

Then you have two options:

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, 2007Report This Post
Expert
posted Hide Post
I would also recommend using javascript to validate the input format.

Better to tell the user before executing the fex so that they can correct their input, than wait until the fex runs.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
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, 2006Report This Post
Virtuoso
posted Hide Post
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, 2005Report 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     allow user to enter multiple values in parameter field

Copyright © 1996-2020 Information Builders