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 have a report someone built where they are using a multiple input box for a passed variable -
Example would be a box that lets someone select on different US States...in my example we will say the state codes are set to a variable called '&multi'
When we have used a cgi call to execute the fex, we have been able to loop through the various states and run the report using a where statement like:
TABLE FILE CAR PRINT STATE_NAME WHERE ST_CD EQ '&multi' -IF &multi0.EXISTS THEN GOTO BEGLOOP ELSE GOTO ENDLOOP;
-BEGLOOP -REPEAT LOOP FOR &COUNTER FROM 2 TO &multi0; OR '&multi.&COUNTER' -LOOP
-ENDLOOP END
THis worked fine with the cgi call, but we are upgrading FOCUS and I need to change this cgi call to a servlet, but it is not accepting multiple States the way the cgi call did. Has anyone seen this before?
I can't explain it but coding around the &multi0.EXISTS statement seems to have resolved this - Not particularly elegant but functional. If anyone knows of some other solution just let me know, otherwise I'll call this resolved.
My question would be, how is the call to WFServlet being made in the first place?
For &multi0 to exists, I assume you're using some kind of HTML launch page with a <form target="/ibi_apps/WFServlet"> and some sort of <select name="multi"> element whose selected values are being sent to WFServlet upon submit.
Anyway, I see nothing particularly wrong with testing for the existence of &multi0 if you know it is supposed to be there based on how your .fex is being invoked.
Try adding the following line at the top of your .fex to inspect which &variables are set upon calling the fex via WFServlet and verify that &multi0 is indeed there. If not, you may need to review your HTML launch page and determine why multiple values are not being passed.