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     Multiple multiselect parameters

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Multiple multiselect parameters
 Login/Join
 
Platinum Member
posted
I have 2 multiselect drop downs in the html form. It works when only variables are selected for one option but when variables are selected for both, the report never finishes running.

-IF &INDCD.EXISTS NE 1 THEN GOTO ENDLOOP;
WHERE SRVC_SERVICE_IND_CD EQ '&INDCD'
-IF &INDCD0.EXISTS THEN GOTO NEXT_STEP ELSE GOTO ENDLOOP;
-NEXT_STEP
-REPEAT ENDLOOP FOR &COUNTERA FROM 2 TO &INDCD0;
OR '&INDCD.&COUNTERA'
-ENDLOOP
-IF &DEPT.EXISTS NE 1 THEN GOTO ENDLOOP;
WHERE SRVC_DEPARTMENT EQ '&DEPT'
-IF &DEPT0.EXISTS THEN GOTO NEXT_STEP ELSE GOTO ENDLOOP;
-NEXT_STEP
-REPEAT ENDLOOP FOR &COUNTERB FROM 2 TO &DEPT0;
OR '&DEPT.&COUNTERB'
-ENDLOOP

Thanks for your help.
 
Posts: 188 | Registered: April 14, 2005Report This Post
Virtuoso
posted Hide Post
Bethany, You have the -ENDLOOP label in two places in your code. Change one of the ENDLOOP labels to a different word and this will prevent the infinite loop you are getting into.
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
Thanks for your help. Now it works for a multiselect for one variable along with a single selection for the 2nd variable, but trying to use multiple selections for both variables still won't finish running. Any ideas?
 
Posts: 188 | Registered: April 14, 2005Report This Post
Virtuoso
posted Hide Post
did you chg all references to ENDLOOP in the 2nd repeat loop, along with the -ENDLOOP label, to (say) ENDLOOP2?
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Platinum Member
posted Hide Post
Thanks Jack! Works like a charm now.
 
Posts: 188 | Registered: April 14, 2005Report This Post
Virtuoso
posted Hide Post
Sorry about that. I meant what Jack said as well but didn't word it correctly in my post. Sorry for the confusion.
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
You also have the label next_step used twice. One of them should be given a different name and with all references to it as well - just like the endloop. Just in case you run into trouble with that....
 
Posts: 191 | Location: Henderson, Nevada | Registered: April 29, 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     Multiple multiselect parameters

Copyright © 1996-2020 Information Builders