Focal Point
Need to capture the folder from a MRE user after logon

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

February 07, 2007, 10:33 AM
<JJI>
Need to capture the folder from a MRE user after logon
Who can help me with this?

I need to know if I can capture the folder's name of a MRE user. Is there a variable like IBIMR_folder or IBIMR_domain, that can give me the name of the users folder after logon?

We have an MRE application and in a lot of reports we are using the same variables , like reference date, begin and end date of a period, language, etc . We would like to make a html screen that a user can run to set his preferences. These preferences will be used in all the reports so the users don't have to type or select the values they want each time they run a report. I want to save those values in a file under the users' folder in the basedir.
Therefore I need to know which folder belongs to that user.
We don't want and cannot use the "save parameter option" in MRE for different reasons.

Thanks in advance
February 07, 2007, 11:36 AM
Francis Mariani
I would add the following two lines to the Custom Settings via WF Administration Console > Configuration > Custom Settings:

<set> IBIMR_domain (pass)
<set> IBIMR_user (pass)

This will give you the two variables that provide the MRE Base Directory path (e.g. "D:/ibi/WebFOCUS53/basedir") and the MRE User ID.

Each user has a folder directly under the MRE Base Directory, so for user fmst1, the path would be "D:/ibi/WebFOCUS53/basedir/fmst1".

But I don't think I would put non-MRE generated code in these folders. I would create a separate directory structure, outside MRE.


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 07, 2007, 04:03 PM
<JJI>
Hi Francis,

I already use IBIMR_domain and IBIMR_user in the site.wfs with the to pass the domain and the user-id. But that's not my problem. I realy need to find the name of the user folder (=folder where the myreports are saved).
I know it's dangerous to save the preferences-file in the basedir itself, but the user folder does not contain any refs to other files or folders. So I think the risk is minimal. Besides that, it gives me also another advantage. If the login-id of a user changes the user folder will not change names and the previous saved prefs will still be available. But then again I need to find the name of that folder first Sweating
Is there a list of variables used in MRE. I found some of the MRE variables in the API guide, but not the one I'm looking for. If such variable does not exists is there another way to find the name of that folder?

Any help is welcome,
February 08, 2007, 01:39 PM
gregv
Dirk: I hope this helps. Greg

Request Parameter
Value
Description

IBIMR_action
MR_RUN_FEX
Required. Used to invoke the run action for reports created in the Report Assistant and Graph Assistant tools.

IBIMR_sub_action
MR_STD_REPORT
Required. Used to specify the report type to be run from the Managed Reporting repository.

IBIMR_fex
directory/standardreportname.fex
Required. Used to locate the standard report in the Managed Reporting Repository. For example, app/test.fex.

IBIMR_folder
HREF of Standard Report Group Folder
Required. The Group Folder HREF is usually in the form of the domain HREF followed by a pound sign (#) and a twelve character folder name. For example, #testk1am7s3i.

IBIMR_domain
The domain HREF in which the report being processed is stored.
Required.

The domain HREF is usually in the form of an eight character domain directory name, a slash, and an eight character domain file name followed by an extension (for example, domainon/domainon.htm or untitled/untitled.htm).

IBIMR_random
A random number.
Required. Used to prevent caching.

IBIMR_returntype
Valid values are XML and MRCGI
Optional. Used to specify the format of the result set. The default is MRCGI.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8