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     cgi call versus servlet question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
cgi call versus servlet question
 Login/Join
 
Gold member
posted
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?
 
Posts: 90 | Registered: April 15, 2004Report This Post
Gold member
posted Hide Post
I think I've narrowed in on part of the problem - We have a statement that says
-IF &multi0.EXISTS and that appears to be causing an issue.
 
Posts: 90 | Registered: April 15, 2004Report This Post
Gold member
posted Hide Post
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.
 
Posts: 90 | Registered: April 15, 2004Report This Post
Virtuoso
posted Hide Post
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.

-? &



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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     cgi call versus servlet question

Copyright © 1996-2020 Information Builders