Focal Point
[SOLVED] Passing the user language from MRE-User to Report

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

November 12, 2009, 05:27 AM
Stefan
[SOLVED] Passing the user language from MRE-User to Report
Hi,

I encountered following problem:

I want to fit my report language to the language the MRE-User has selected.

As far as I know, the user-language is stored in IBIWF_language.

Set report language can be set with SET LANG = DE

Now I'm looking for a way to pass the the language from MRE to the report, i.e.:

SET LANG = IBIWF_language

(or something like this).

But the report doesn't recognize IBIWF_language.

Would appreciate any help.

Thanks,

Stefan

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


WF 7.6.9
PMF 5.1.3
BID 7.6.9

Win XP
HTML, PDF, Excel, PowerPoint
November 12, 2009, 05:40 AM
harsha.g
quote:
IBIWF_language

Try the below steps:
1) If you are sure that IBIWF_language would store the language selected by MRE-User then, by running this command: -TYPE &IBIWF_language must display the content of the variable: IBIWF_language. If it is displaying the language value then it means you can set the same language in your report by adding the below command:
SET LANG = &IBIWF_language

2) If this (-TYPE &IBIWF_language) command in your report is not returning any value then, first try to capture the language selected by MRE user into one variable say -SET &USER_LANG='';. Next, you can use the same variable in your calling report setting the below command in your report:
-SET LANG = &USER_LANG;


Version: WebFOCUS 7.6.6
O.S. WebFOCUS is mounted on Unix
Output Report: HTML, Excel, CSV, PDF and TXT
November 12, 2009, 10:30 AM
Francis Mariani
If you're using "Dynamic Language Switch", you most likely need to add the following line to the Custom Settings in the WF Admin Console Configuration panel:

<set> IBIWF_language = &IBIWF_language (pass)



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
November 13, 2009, 08:31 AM
dlogan
Francis is on the right track, but the syntax is actually:
<SET> IBIWF_language (pass)


This tells the WebFOCUS Client to pass the value of IBIWF_language to the Reporting Server.

The syntax Francis was using is kind of a hybrid of the old way to send variables and the new. It might in fact work, but its not the way the syntax is Documented.

e.g. The following would also work:
<SENDVAR>
IBIWF_language = &IBIWF_language
<ENDSENDVAR>



WF 71.x, 76.x, 7701, 8.0 Beta OS: Linux, Win2k3, Win2k, Win2k8, WinXP


November 20, 2009, 04:02 AM
Stefan
Hi all,

thanks for your great ideas.

I put
IBIWF_language(PASS)
in my site.wfs. After restarting the http-Server it works as expected.


WF 7.6.9
PMF 5.1.3
BID 7.6.9

Win XP
HTML, PDF, Excel, PowerPoint