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     Handling values from Multi-Select Box from portal

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Handling values from Multi-Select Box from portal
 Login/Join
 
Gold member
posted
Hi,

We have a portal page which has a multi-select list box. we need to pass all the values selected in this box to our fex file.

Hence i need help on
Q1) How to pass values from portal to .fex (like concatenated string with values separated by a delimiter etc)?
Q2) How to identify each value in code?
Q3) How to handle creation of dynamic variables, as their number depends on number of values passed (concept of Arrays etc). These variables are to be used in the WHERE clause?

Please post an example also.
 
Posts: 78 | Registered: December 11, 2005Report This Post
Expert
posted Hide Post
Code Digger,

This is a subject that has been asked before and there are many replies on the subject. Use the find function and search on 'multiple parameters' or similar and have a look through the results to find your answer.



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
Expert
posted Hide Post
cd, if, for ex, the parameter name is FRED,
then &FRED0 will be the number of multi-selects the user has chosen.
&FRED1 will the the value of the first one,
&FRED2 will contain the value of the second one, etc.
trouble is, (in 527 anyway, not sure about v7), if the user only picks 1 choice, then &FRED contains that one choice and the variable &FRED0 doesn't exist, so you can't check it to see if its value is 1.
so you have to check to see if it exists first.
To cheat, you might, in your fex, DEFAULT &FRED0 = 0 ; As Tony says, there are alot of threads on this subject, you can search and read where other folks have explained this more clearly.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     Handling values from Multi-Select Box from portal

Copyright © 1996-2020 Information Builders