Focal Point
[SOLVED] BI Portal

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

November 05, 2015, 08:50 PM
RaviD
[SOLVED] BI Portal
Is there any way we can capture portal ID or Name with in fex like &MYWORPMPV? We have a situation where we need to use same fex in 2 different portals and I need to hide and show data points based on which portal being called this fex?

This message has been edited. Last edited by: Tamra,


WebFocus 8202M
APP Studio
Info assist
Report caster
Portals
Maintain
EXcel,PDF,HTML,Active Reports
November 05, 2015, 09:20 PM
Waz
What we have done here for common use fexes is to have a simple calling fex that includes the common one and passes the unique variable.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

November 06, 2015, 10:36 AM
CoolGuy
Waz has a good idea. Also, if the report will only be ran after being filtered from a form, you could pass a unique value to the common use report from the form (using a hidden control) that determines which portal it was ran from also.


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
November 09, 2015, 10:11 AM
RaviD
Waz,

Thanks you very much for your reply. can you share your sample code?


WebFocus 8202M
APP Studio
Info assist
Report caster
Portals
Maintain
EXcel,PDF,HTML,Active Reports
November 09, 2015, 04:53 PM
Waz
I don't think I need to show sample code. Its pretty simple.

Fex 1:
-SET &MYWORPMPV='Portal1';
-INCLUDE IBFS:/.../Fex2.fex



Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

November 10, 2015, 09:21 AM
RaviD
Waz,

I got it. Thanks very much


WebFocus 8202M
APP Studio
Info assist
Report caster
Portals
Maintain
EXcel,PDF,HTML,Active Reports