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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
parameter stem
 Login/Join
 
Gold member
posted
Hi All,

Just wondering if recent releases of WebFOCUS have a stem (array) that contains the names of the parameters passed into the report. This stem would be read in the standard way using the dialog manager -REPEAT.

Right now we fake it out with a tomcat filter, that builds a multi-valued parameter that we call "DHPARAMS" but it would be really really handy to have this feature in the language if it's not there already.

-James


WF 7.1.6 moving to WF 7.7, Solaris 10, HTML,PDF,XL
 
Posts: 83 | Location: Dartmouth Hitchcock Medical Center | Registered: April 17, 2003Report This Post
Expert
posted Hide Post
Though the functionality you're looking for doesn't seem to exist, this may be of some help: http://documentation.informationbuilders.com/masterinde.../wf713sec/10sec4.htm

QUERY_STRING can be passed in site.wfs

and/or take a look at this: http://documentation.informationbuilders.com/masterinde.../wf713sec/10sec2.htm
you may be able to parse QUESRY_STRING and build what you're looking for.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
A quick snippet of WebFOCUS Dialog Manager code to parse QUERY STRING and create a list of parameter names passed to the program:

-DEFAULT &QUERY_STRING = '';

-TYPE &QUERY_STRING

-SET &COUNTER2 = 0;

-REPEAT END_REPEAT1 FOR &COUNTER1 FROM 1 TO &QUERY_STRING.LENGTH

-SET &POSSIBLE_PARM = GETTOK(&QUERY_STRING, &QUERY_STRING.LENGTH, &COUNTER1, '&', 64, 'A64');

-IF &POSSIBLE_PARM EQ ' ' GOTO SKIP_PARM;
-IF &POSSIBLE_PARM CONTAINS 'IBIF_ex' GOTO SKIP_PARM;

-SET &COUNTER2 = &COUNTER2 + 1;

-SET &PARM_NAME = GETTOK(&POSSIBLE_PARM, &POSSIBLE_PARM.LENGTH, 1, '=', 64, 'A64');

-SET &XPARM.&COUNTER2 = '&' || &PARM_NAME;

-SKIP_PARM

-END_REPEAT1

-SET &XPARM_COUNT = &COUNTER2;

-? &

I can provide an explanation if required.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
This makes sense. I just have to pass the QUERY_STRING in the site.wfs and then parse &QUERY_STRING to build my own DHPARAMS stem, without the aid of the tomcat filter.

Thanks, Francis.


WF 7.1.6 moving to WF 7.7, Solaris 10, HTML,PDF,XL
 
Posts: 83 | Location: Dartmouth Hitchcock Medical Center | Registered: April 17, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders