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     Check presence of an amper variable

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Check presence of an amper variable
 Login/Join
 
Gold member
posted
Is there a way to find out if an amper variable has been passed ? I tried '&EMP_NAME.EXIST' and it seems to be checking for the presence of the value. I am interested in presence of the variable itself.


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
Expert
posted Hide Post
Uncomment the first line of the following code to see the behaviour when &APPLE exists.


-*-SET &APPLE = 'RED';

-IF &APPLE.EXISTS NE 1 GOTO APPLE_NO;

-TYPE APPLE EXISTS

-GOTO END1

-APPLE_NO

-TYPE APPLE DOES NOT EXIST

-END1


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
Perhaps I should rephrase. If the line is uncommented, it prints "APPLE EXISTS". If commented, it prompts the user for value of APPLE (here I want it to print "APPLE DOES NOT EXIST" instead of prompting the user). Thx.


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
Expert
posted Hide Post
The behaviour you describe is probably happening in a fex in MRE. My example worked without any prompt as a stand-alone fex.

In MRE, right-click on the fex, select Properties and uncheck "Prompt for parameters".


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
That worked good. Thanks a lot. It would be nice if I could do "no prompting" only for one selected variable. But, for now, your method is good for me. I will use it.


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 2005Report This Post
Virtuoso
posted Hide Post
Govind,

Try adding a -DEFAULT at the beginning of your program for the variable for which you do not want to get prompted. If calling the report request does not supply a value for the variable it should use the -DEFAULT value and not prompt for it.

-DEFAULT &VAR1 = thevalue;


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
That is the very sensible solution.


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
When I used the "DEFAULT", the procedure still throws an input screen at the user (now that the value is prepopulated, the user just needs to click "submit"). This is good. But this is slightly different from what I want.

I have a procedure that gets called through an URL. If that URL is missing an amper variable completely, I dont want to throw an input screen. I want to be able to detect it in the procedure (that it is missing) and take predefined action. I used Francis's way of "Uncheck the 'Prompt for parameters' property of the procedure".

Thx


WebFOCUS 5.3.3 MRE - Solaris - Sun Web Server - Weblogic
 
Posts: 85 | Registered: December 20, 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     Check presence of an amper variable

Copyright © 1996-2020 Information Builders