Focal Point
[SOLVED]Dynamic library name in .acx file

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

November 03, 2014, 12:13 PM
Håkan
[SOLVED]Dynamic library name in .acx file
All, we are running WebFOCUS for JDE Enterprise One on IBM i. Is there any possibility to point to the correct library without hard-coding it in the .acx file? (yes, we are having multiple tables with the same name in different libraries).

Tia
Håkan

This message has been edited. Last edited by: Håkan,


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)
November 03, 2014, 02:20 PM
MartinY
Don't know if it will work in your case, but in mine it does with AS400/DB2-400 IBM iSeries :

acx :
 SEGNAME=TBLNAME, TABLENAME=&&LIB/TBLNAME, CONNECTION=DB2, KEYS=0, $

mas :
FILENAME=TBLNAME, SUFFIX=DB2     , MFD_PROFILE=usual_modules/bidon, $
 VARIABLE NAME=&&LIB,  $
  SEGMENT=TBLNAME, SEGTYPE=S0, $
    FIELDNAME=REGION, ALIAS=REGION, USAGE=A3, ACTUAL=A3, $

fex:
-* File BIDON.fex
-* FEX BIDON USE IN MASTER AS MFD
-*


Then just need to assign &&LIB prior to do your TABLE FILE

-SET &&LIB = 'MYLIB';
TABLE FILE TBLNAME
BY REGION
END



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
November 03, 2014, 03:40 PM
TexasStingray
Yes, you can define parameters in master file and the use then in master or acx files.

EXAMPLE:
IN ACX
TABLENAME=&&VMS2DBNAME

IN MAS
VARIABLE NAME=&&VMS2DBNAME,

in fex before TABLE REQUEST
-SET &&VMS2DBNAME = 'SOME VALUE';





Scott

Thanks guys, it seems to work. That is, if you don't use Info Assist.


WebFOCUS DS 8.0.06/08 DS/AS
WebFOCUS RS 8.0.08 (Linux/IBM i)
WebFOCUS Client 8.0.06 (Linux)