Focal Point
How to pass values to an include file?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7251042342

August 22, 2007, 05:12 PM
SG
How 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.


Webfocus 7.6.8
PDF,HTML & EXCEL
August 22, 2007, 05:24 PM
Francis Mariani
All & 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
SG
Francis,

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.


Webfocus 7.6.8
PDF,HTML & EXCEL
August 22, 2007, 06:46 PM
Francis Mariani
SG,

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
SG
Thank You Francis, It is working now.

SG.


Webfocus 7.6.8
PDF,HTML & EXCEL