This is my idea...
I need access to information about an MR user when they run a report. Unfortunately (please correct me if I'm wrong) it appears the only things MR passes along are:
IBIMR_user
IBIMR_domain
MR_FULL_FEXNAME
MR_ITEM_HANDLE
Which doesn't give me a lot of context. Initially I was wondering if there was something like:
IBIMR_users_groups
but quickly realized that would only solve one specific problem. I need something extensible and customizable so I can retrieve arbitrary information about a user.
To this end I came up with a (probably) old idea.
I want to create a SQL table that will hold the information I need to know about a user before they run a report. For example:
UserID, FullName, Division, Role, Status... etc.
Then when they run reports from MR, I can run a little pre-report before the main report, to do something like:
Open the SQL table
Get the record for UserID (which I will look up using IBIMR_user)
then somehow magically...
-SET &FName=FullName
-SET &Div=Division
-SET &Role=Role
-SET $Status=Status
...
Then when I run the actual report I can do stuff like...
"Financial Report for &DIV Generated by &FName on &DATEtrMDYY &TOD"
and
WHERE DIVISION EQ '&DIV';
It's also going to be used to send parameters to an SQL Stored Procedure, and maybe even be used to help create an XML to help bulk load MR users.
Is this an approach worth pursuing? If it's possible, I'm probably almost there. However as a major WebFocus ignoramus I can't quite see how I'd turn the idea into actual code.
Thanks,
Lance.
Live and Direct from the University of Virginia.
DevStudio 7.6.9 - WF-7.6.9 - Win2k3 - MRE - RC - MSSQL - XBOX-360 Elite - Playstation 3 - Wii - PSP - Nintendo DSi - iPod Touch - Suzuki B-King - Honda Valkyrie - Subaru WRX STI - Canon EOS 1D Mark IV - Lover of Toys.