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.
Hi, I have a requirement. I have a combo box that allows multiple selects on a HTML Launch Page. I need to pass the multiple selected values to a FOCEXEC. But I noticed that only the first value that is selected from the combo box is passed on to the focexec. I also tried capturing the values that are selected from the combo box using Javascript on the HTML Page. The alert message displays only the first value that is selected instead of the multiple values. Can anyone, please suggest me a way to solve this issue? Thanks in advance. Regards,
Mariea, here's how that works. when you pass just a single choice for, say, &MYVAR, its easy, you can just say in your fex IF SOMEVAR EQ &MYVAR However, when you set up a select list as 'multiple', different stuff happens. You now get &MYVAR0 (thats a zero) which is the number of values that have been selected &MYVAR1 &MYVAR2 , etc...up to n, where n = &MYVAR0. What i do is DEFAULT &MYVAR0 = 0 ; that effectively sets my counter off, and allows me to test the value later. So you can loop from 1 to &MYVAR0 -SET &KOUNTER = 0; IF SOMEVAR EQ &MYVAR1 -REPEAT endloop &MYVAR0 TIMES -SET &KOUNTER = &KOUNTER + 1 ; OR &MYVAR.&KOUNTER -endloop Here's the trick; If the user selects ONLY 1 thing, then &MYVAR0 doesn't get passed . that's why defaulting it is a good idea. and &MYVAR1 doesn't get created, only &MYVAR When the user selects at least 2, then &MYVAR0 does get created, and both &MYVAR and &MYVAR1 get created, they're the same!. Way cool so your loop will work from &MYVAR.&KOUNTER where &KOUNTER is 1. (gotta put that dot in between the varname and the kounter value) See? cool.This message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Hi Susanah, I was away at a client place and hence the delay in getting back to you. I used your technique and have solved the issue. Thanks for your assistance. Regards, Mariea