August 22, 2007, 05:12 PM
SGHow to pass values to an include file?
Hello,
Is there any way to pass parameter values to -include fex file?
I am generating nodata fex file but I want comments to be dynamic.
Thanks,
SG.
August 22, 2007, 05:24 PM
Francis MarianiAll & and && variables from the main fex are available in the included fex.
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
August 22, 2007, 05:58 PM
SGFrancis,
In that case what's wrong with the following code:
-SET &COMMENTCODE = '2'; -* I am setting this value in main fex value
-* the below code from include file.
-SET &COMMENTSTR = IF '&COMMENTCODE' EQ '1' THEN 'No POs Available'
ELSE IF '&COMMENTCODE' EQ '2' THEN 'No Alerts Available'
ELSE IF '&COMMENTCODE' EQ '3' THEN 'No Graph Data' ;
Thanks,
SG.
August 22, 2007, 06:46 PM
Francis MarianiSG,
You must use a dash to continue a Dialogue Manager command on multiple lines. As well, you do not require the quotes around the Dialogue Manager variables. Try the code below:
-SET &COMMENTSTR = IF &COMMENTCODE EQ '1' THEN 'No POs Available'
- ELSE IF &COMMENTCODE EQ '2' THEN 'No Alerts Available'
- ELSE IF &COMMENTCODE EQ '3' THEN 'No Graph Data' ;
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
August 23, 2007, 09:28 AM
SGThank You Francis, It is working now.
SG.