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.
We are on WebFocus 7.1.1 and have WebLogic for our client server and Solaris for our report server. We are having some difficulty passing or subsequently using the result from a form select for example:
Later on the &RPT value is tested in the following manner:
-IF &RPT.EVAL EQ 'mtrc_sumstat' OR 'mtrc-avgcnts' OR 'mtrc-avgcnts-bgs2' OR 'mtrc-intl-counts' - THEN GOTO MGRRPTS ELSE GOTO SKIPNEW; -MGRRPTS
-GOTO RESTOFPARMS -SKIPNEW
-RESTOFPARMS
etc.
The value for &RPT is lost or 'null' when it is used in a subsequent test. We've tried the following workarround: -SET &RPT = '&'||RPT; which works in some instances but doesn't work in the above sample.
Has anyone encountered these problems and what was your resolution?
The codes you require to place around your code snippets on the forum are [ code] and [ /code] (without the spaces).
You should use -IF &RPT EQ ....... to get the best results with dialogue manager. However, if you need to test the value in a TABLE request then surround the variable with single quotes - e.g. WHERE fieldname EQ '&RPT'.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Are you using EX to call another fex in your procedure? If so then you will loose the values of your variables. Use -INCLUDE fexname or EX fexname &var1=val1, &var2=val2
Paul
Paul Burridge Senior Consultant 34 years with Information Builders WebFOCUS 8.2.5 Win10
Posts: 17 | Location: The Netherlands | Registered: February 21, 2005
To the best of my knowledge, this is illegal syntax. You are not allowed to put &variables and dialog manager in a -HTMLFORM BEGIN/END. Even if it is working, it will fail after a future upgrade at some point.
Can I suggest you try:
-HTMLFORM BEGIN
... some html here.
<select size="1" name="RPT" id="LB4" onchange="javascript:showit()">
<option value="hrrptturn">Turnover</option>
<option value="hrrptheadcnt">Workforce Headcount</option>
<option value="mtrc-hrrptretelig">Retirement Eligibility</option>
<option value="hrrptstafmov">Staff Movement</option>
<option value="hrrptopenreq">Open Requisitions</option>
<option value="hrrptplace">Placements</option>
-HTMLFORM END
-IF &AUTH2 NE 0 THEN GOTO ANNSRPTS ELSE GOTO SKIPANNS;
-ANNSRPTS
-HTMLFORM BEGIN
<option value="mtrc_sumstat">Summary Statistics</option>
<option value="mtrc-intl-counts">International Counts</option>
<option value="mtrc-avgcnts">Average Staff Counts by BGS1</option>
<option value="mtrc-avgcnts-bgs2">Average Staff Counts by BGS2</option>
-HTMLFORM END
-SKIPANNS
-HTMLFORM BEGIN
</select>
... some more code here
-HTMLFORM END
-SET &RPT_TO_RUN = '&RPT' EQ 'mtrc_sumstat' OR 'mtrc-avgcnts' OR 'mtrc-avgcnts-bgs2' OR 'mtrc-intl-counts'
- 'mtrc-jf' ELSE 'mtrc-httptparm2';
-HTMLFORM BEGIN
<INPUT TYPE='HIDDEN' NAME='IBIF_ex' VALUE='!IBI.AMP.PRT_TO_RUN;'>
<INPUT TYPE='HIDDEN' NAME='IBIAPP_app' VALUE='coreuser-rf'>
<INPUT TYPE='HIDDEN' NAME='LBL' VALUE='BLDFORM'>
<INPUT TYPE='HIDDEN' NAME='OPRID' VALUE='!IBI.AMP.OPRID;'>
<!-- change all the &varaibles to !IBI.AMP.varname; -->
<INPUT TYPE='HIDDEN' NAME='ENDDATE' VALUE='!IBI.AMP.ENDDATE;'>
</form>
</body>
</html>
-HTMLFORM END
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
you can totally load up your htmlforms with &vars, my whole site lives on it, blissfully. (nb there are times when i have to go from isapi to servlet, tho, in order to make a really complex one work) I just look at your original code and wonder why you have .EVAL when you're comparing two character strings ??? -IF &MYPARM EQ 'FRED' OR 'LUCY' OR 'RICKY' works fine, but not -IF &MYPARM.EVAL EQ 'ETHEL' OR 'LITTLE RICKY'
That .EVAL is best used sparingly. I have found it necessary when used as a commment statement, eg. -SET &NODO = IF ... THEN ' ' ELSE '-*'; &NODO.EVAL COMPUTE yada yada...
but i avoid using it as a rule everywhere, until i find i abs have to use it.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
Thanks for your suggestion. I'm trying to segment my code as you suggested but I have a couple of questions and an explanation that introduces more complexity.
Question # 1. Your first -HTMLFORM END placement and next -HTMLFORM BEGIN seem to be placed rather strategically. Am I reading more into it than necessary, or is there strategic revelance?
Question # 2. Your example contains three sets of -HTMLFORM BEGIN and -HTMLFORM END. Could there be two sets instead of three?
Question # 3. Assuming that within my single set of -HTMLFORM BEGIN and -HTMLFORM END I have , and , and before each -HTMLFORM END and repeat them as necessary for each set?
Explanation # 1. Within my original single set of -HTMLFORM BEGIN and -HTMLFORM END I have JavaScript cases defined for each report selection like
What I'm trying to say is that it would be hard to split up. What my tests of the segmented code is showing is WebFOCUS was called with an invalid request. which could mean anything.
In the manual it states in the -HTMLFORM section: Note: All lines that are not Dialogue Manager commands are assumed to be HTML.
By implication, this means that Dialogue Manager commands are supported within -HTMLFORM BEGIN and END.
Variables within an html page should be inserted with the !IBI.AMP.var; syntax. But that does not mean that the DM controlling the html page output cannot use &vars.
Alan. WF 7.705/8.007
Posts: 1451 | Location: Portugal | Registered: February 07, 2007
I appreciate everyone's contribution. I have it working. I let it continue on to mtrc-hrrptparm2-jf and then tested &fex in that fex. I had a little experimentation on which to use (&FEX or &fex) but that was resolved. I also had some difficulty with having an mtrc-hrrptparm2-jf, but it started working when I removed it. Basically, it was too early to change the alternate route.