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     [CLOSED] What are syntaxes for the multiple selections from one drop down?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] What are syntaxes for the multiple selections from one drop down?
 Login/Join
 
Silver Member
posted
Hi,

Our client has a new request to select multiple values from each drop down list for the report. Currently, the report only allows the user to select one value from one drop down list.

We need your help for some syntaxes:

1) What is the URL syntax to pass multiple values from one drop down list?
(Pass one value from one drop down, the URL just like: … ?WF_ CLASS =CAITP&WF_SITE=TRAINING&…)

2) What is the syntax in the report to declare the parameter with multiple values via URL passing in?
(For one value, the parameter will use ‘=’, for instance: -DEFAULT &CLASS='CAITP')

3) What is the syntax to pass the multiple values to match a field of SQL?

It maybe include not limited to the above three things.

Thanks for the help!

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


7703 on Linux, Windows
ReportCaster
PDF, HTML, Excel, AHTML, and CSV
 
Posts: 40 | Registered: January 31, 2008Report This Post
Virtuoso
posted Hide Post
Hi TechLights

When you create the WHERE statements with the GUI and choose parameter when you open the 'Compare Value' the Variable Type should be changed to a Multiselect OR and when you submit the form it will send one variable with OR's in between each value selected.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
1) This depends on if you are using custom made prompt page or the auto prompter. If made your own prompt page will need to make sure the controls can handle multiple. However if using the auto prompter it should know how to handle it when ran.

2) Here are examples between single select and multi select in the code

-PROMPT &CLASS.(<CITP>,<CITP2>,<CITP3>).Select.
-DEFAULT &CLASS='CITP';
WHERE CLASS EQ '&CLASS';


While multiple looks like
-PROMPT &CLASS.OR((<CITP>,<CITP2>,<CITP3>)).Select.
-DEFAULT &CLASS='''CITP'' OR ''CITP3''';
WHERE CLASS EQ &CLASS;
-*This is what WebFOCUS will see if kept the default values:  WHERE CLASS EQ 'CITP' OR 'CITP3'


The main thing is with the multiple selection it will store the single quotes inside the variable so adding it will cause issues. Also, when trying to mimic or set defaults will need to do the same and escape the single quote so they are within the value. Although do not need to use and escape quotes around the values if they are numeric.


WF: 8201, OS: Windows, Output: HTML, PDF, Excel
 
Posts: 78 | Registered: November 08, 2010Report This Post
Silver Member
posted Hide Post
Hi, Chuck and Crymsyn,
Thanks for your quick responses.

We use Java application with user interface to pass single-select drop down list values to WebFocus reports through URL for many years.

We need to let Java application to pass multi-select drop down list values to WebFocus reports through URL. We’d like to know how to construct the URL or what is the syntax to pass the multi-selected values from the drop down list. Then, how WebFocus report to retrieve these values from the URL.

It will be big help if can provide some sample code.

Thanks again!


7703 on Linux, Windows
ReportCaster
PDF, HTML, Excel, AHTML, and CSV
 
Posts: 40 | Registered: January 31, 2008Report This Post
Virtuoso
posted Hide Post
TechLights

I tried to create a WF html page with multiselect parameter and use fiddler to capture the URL sent but it didn't display the entire URL. I suggest you open a case to get the help you need.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Silver Member
posted Hide Post
Good suggestion.
Thanks Chuck!


7703 on Linux, Windows
ReportCaster
PDF, HTML, Excel, AHTML, and CSV
 
Posts: 40 | Registered: January 31, 2008Report 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     [CLOSED] What are syntaxes for the multiple selections from one drop down?

Copyright © 1996-2020 Information Builders