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 that uses parameters passed from a selection page (form submitted by method post to WFServlet) to make another (hidden) form. The report page contains a form and several loops like the example below. It checks if the passed parameter has multiple values and loops the right amount of times.
Problem: I want to make this an independent, included fex, which I can use with many forms and reports. How can I find out how the parameters in each submitted form are named? There are different amount of multiple selection lists (which are named differently) in each selection page.
Posts: 4 | Location: Finland | Registered: March 26, 2004
what an interesting question. well, here's an inelegant approach: In your fex, lines 2,4,8, and 9 have the variable &YTIME in them, and that's the var you want to change, right? so, replace these 4 lines in this fex with &vars themselves. &LINE1, &LINE2, &LINE3 and &LINE4, like this: -SET &XIND = 1; &LINE1 -TIME_NO_LOOP etcetera. Now, in this fex create each of these &LINES, having passed not only the values but also the NAME of the key variable from the previous form. -SET &LINE1 = 'IF &' | &MYNEWVARNAME | '.EXIST THEN...etc. Get the idea?
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Thank you for your quick and not so inelegant tip Susannah!
So I can make another loop for &LINE1,2,3 and 4 where I populate them with every known parameter.
But if I don�t know the names of the parameters? How can I make a loop to populate &MYNEWVARNAME with passed parameters from the previous form?
Like this:
loop for &MYNEWVARNAME ...loop for &LINE1,2,3 and 4 ......loop for the form data (original message) ......end loop ...end loop end loop
If the form was submitted via method GET then the submitted non-hidden parameters could be parsed with javascript, but the method POST is a bit trickier...
I hope somebody has already won this battle.
Thanks in advance Mikko Muurinen
Posts: 4 | Location: Finland | Registered: March 26, 2004
The idea is to add to HTML form one multiple select element, named PARAMNAMES and the doSubmit() function invoked on the onsubmit event. doSubmit function checks all the form elements, filter them and if the element is "recognized" as a parameter, its name is added to the PARAMNAMES list, so it will be passed as the CGI request (regardless if the method is POST or GET). The FEX can handle the list of the parameter names, and then dynamically construct its own code (which makes the "real" work) using .EVAL.