Focal Point
[SOLVED] Display fex title on report at runtime

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

February 27, 2017, 09:59 AM
Worker Bee
[SOLVED] Display fex title on report at runtime
Let's say I have a fex file named Report1.fex but it's "Title" is "Whatever I want". The title is what an end user sees.
I know to use amper variable &FOCFEXNAME to display the fex file name. It would print Report1.fex at runtime.

How do I, in my fex code, display the Title in the header?

Thanks!

This message has been edited. Last edited by: FP Mod Chuck,


AppStudio 8.0.0.9
WebFOCUS 8
Windows, All Outputs
February 27, 2017, 11:03 AM
Francis Mariani
Very good question!

Try &MR_FULL_FEXNAME.

You can determine this by using the command

-? &

Unfortunately, this command cuts off the parameter names to 12 characters and the parameter values to 61 characters, so it's better to use this undocumented feature to see the full parameter names and values:

-? & SAVEPRINT


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
February 27, 2017, 02:06 PM
Worker Bee
&WF_TITLE does the trick for my scenario where my fex file is on the content server.

Thank you for replying.


AppStudio 8.0.0.9
WebFOCUS 8
Windows, All Outputs
March 09, 2017, 05:16 PM
Kevin Patterson
I came across this as the "tip of the month". I'm not finding anything in the documentation on either of these variables.

I'm not able to get these variables to resolve to anything. Am I missing a set command to activate this feature or something?


Kevin Patterson
Appalachian State University
WebFOCUS 7.7.03
Windows, All Outputs
March 09, 2017, 07:41 PM
Francis Mariani
Kevin, I think these parameters are only available in WebFOCUS 8, and they seem to be ON by default - - no extra settings required (which is usually done in the site.wfs file).


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
March 10, 2017, 11:37 AM
Geoff Fish
quote:
Originally posted by Kevin Patterson:
I came across this as the "tip of the month". I'm not finding anything in the documentation on either of these variables.

I'm not able to get these variables to resolve to anything. Am I missing a set command to activate this feature or something?



Kevin there may be configuration issues to resolve. the &names mentioned in previous posts are delivered and i have used them in the past.


809 DevStudio, MRE, Report Caster , Report Library
Output: Excel PDF, HTML
March 10, 2017, 03:07 PM
Kevin Patterson
To get the variable &MR_FULL_FEXNAME to render I first had to save the report I added it to, then run it. But it does work now. This is much more useful than &FOCFEXNAME which does not reference the fex title or name.


Kevin Patterson
Appalachian State University
WebFOCUS 7.7.03
Windows, All Outputs