[CLOSED] Parameterizing IBFS refrence for -INCLUDE
Is there any way to paramartize the IBFS: reference for includes (et al)... The IBFS reference seems to be the requirement for referencing an object in the contents area (vs on the data server)
When I try to parametrize it, like this: -SET &LOC = 'TEST'; -INCLUDE IBFS:/WFC/Repository/&LOC/fs_properties.fex
I get this error: Names cannot contain any of the following characteres: Space&*()|:;",?/"
The challenge is that as we promote code from one diretory to another (in the contents area)..we have to remember to go in and physically change that all the directory reference (in this case TEST) for the -INCLUDES/HTMLFORMS etc.
I know I would then have to figure out a way to set the &LOC so it knows from where the code is running..but I believe the SE said that is possible in the profile execution..so I would have a value knowing the relative run area.
Any insights would be greatly appreciated.
thanks in advance WmThis message has been edited. Last edited by: W Kassebaum,
I tried to run this... ~~~~~~~~~~~~~~~~~~~ -SET &LOC = 'TEST'; -SET &IBFS='-INCLUDE IBFS:/WFC/Repository/' | &LOC.EVAL | '/fs_properties.fex'; &IBFS.EVAL
-TYPE &DATA_LOCATION.EVAL ~~~~~~~~~~~~~~~~~~~ (&DATA_LOCATION is in fs_properties.fex)
a. it stopped throwing the error (goood) b. it did not do the include for fs_properties.fex (bad) so, at run time, it prompted for DATA_LOCATION.
I don't think that technique (which was a very good idea and something I had not thought of) does not appear to work in the contents area. I'm sure the equivalent would work on the reporting server.
thanks for the thoughs.
wm
WebFOCUS 8 Windows, All Outputs
January 14, 2016, 03:42 PM
BabakNYC
Just to make sure I understand, what happens if you hard code the value in the -INCLUDE? Does it run if you say:
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
January 14, 2016, 04:40 PM
Waz
You can't parameterise the INCLUDEs in v8x.
As I understand it, with the fex's stored in a DB, there is a preprocessor that collects all the fex's and passes them to the reporting server for execution. This process does not support variables.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
January 15, 2016, 01:23 AM
SSander
This does not work. I think when V8 came there where couple of posts regarding this.
But this does not work because of the execution order. Variables are assigned values after the initial parse where includes are gathered.
Release: WebFOCUS 8104, AppStudio: 8105 OS: Windows Output: HTML,Excel,Active Reports
January 15, 2016, 08:47 AM
W Kassebaum
Thanks everyone.. Waz's and SSander's insights were what I was expecting..but I wanted to be sure.
Maybe/Hopefully they enhance this preprocessor to handle variables..but we'll see. I dont know if a NFR has been submitted for this functionality.
Thanks again for everyone's thoughtful responses.
Wm
WebFOCUS 8 Windows, All Outputs
January 17, 2016, 03:54 PM
Waz
Wm, you should put in the NFR, can't hurt, and you should find out if someone else has asked as well.
Als0, please edit your first post in this thread and add [SOLVED] or [CLOSED], etc to indicate the answer you got.