Focal Point
Using System/User Variables

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

August 08, 2005, 10:01 PM
Josh
Using System/User Variables
Glancing at the Report Assistant, I noticed that there is a list of predefined system variables that one can use in their reports. These range from error codes, to row counts, and any number of other useful system flags. However, I did not notice anything to do with the 'current user'.

I am looking to integrate my current application with WebFOCUS so that users can be 1) automatically logged into the Dashboard when they want to access their reports and 2) generate reports based on their current credentials (e.g. A list of the user's records in a report or a drop-down that can be drilled-down to access further reports.)

Does this functionality exist? Or am I just missing a really common &CURRENT_USER variable that doesn't appear in the Report Assistant?

v5.3
August 09, 2005, 04:21 AM
susannah
The field is &IBIMR_user
but to make it work you have to add this line
to the client site.wfs file (just a text file)
IBIMR_user(PASS)
the client site.wfs is in
:\ibi\client52\wfc\etc\site.wfs
Once added, you have to recycle the server to make it take effect.
then in your fexes you can grab this variable..
-TYPE &IBIMR_user
ok?
but your question appears to be alot more complex. Automatic login using their windows id, etc, is cool but complex, and ibi consultants can do it for you.

nb: have to recycle tomcat or iplanet for changes to the client/site.wfs to take effect

This message has been edited. Last edited by: susannah,
August 15, 2005, 06:28 PM
Josh
Thanks for the reply Susannah. Sadly I wasn't able to get my server configured to get IBIMR_user in my fexes. I tried this method, as well as other similar methods listed on the forums. I have to assume that we are using an outdated version. We shall be upgrading to 7 here in a few weeks so hopefully this will resolve the issue.
August 15, 2005, 08:07 PM
Francis Mariani
An alternative method of doing what Susannah suggested is to use the Admin Console.

http://server-name/ibi_html/wfconsole.htm

Click on Configuration.

Click on Custom Settings.

Add this after whatever is displayed in the text box:

<SET> IBIC_user (pass)
<SET> IBIMR_user (pass)

Alternate syntax:

<SET> IBIC_user = &IBIC_user (pass)
<SET> IBIMR_user = &IBIMR_user (pass)


Click on Save.

The advantage of using the Admin Console is that you do not have to restart the server.

IBIC_user is the User ID paramater when in a self-service (non-MRE) environment. You must have a self-service login page for this to work.

IBIMR_user is the User ID parameter when in MRE.

I believe this should work for 5.2 and above.

This message has been edited. Last edited by: Francis Mariani,