Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How can I create an extention to MR's &IBIMR_user var?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How can I create an extention to MR's &IBIMR_user var?
 Login/Join
 
Member
posted
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.
 
Posts: 21 | Location: Virginia | Registered: May 10, 2005Report This Post
Expert
posted Hide Post
Lance,

I would say you're on the right track.

Create a WebFOCUS program that you would -INCLUDE in every report. It would have code similar to the following:

-*-- Extract User Info -------------------------------------
TABLE FILE CRMSYSTEMUSERVIEW
PRINT
USERNAME
DIVISION
ROLE
STATUS
WHERE USERID EQ '&IBIMR_user';
ON TABLE HOLD AS HUSERNM FORMAT ALPHA
END
-RUN
-IF &LINES EQ 0 GOTO PROF_NOUSER;

-READ HUSERNM &USER_NAME.A100. &USER_DIV.A2. &USER_ROLE.A1. &USER_STATUS.A1.

-GOTO PROF_END

-PROF_NOUSER
(do something)

-PROF_END


This program could also be included in the site profile or in EDASPROF.prf, then you would not have to include it in each program.

There are several options. I'm sure someone will come along with another (better?) idea.

Cheers,


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
tHANKS fRANCIS Smiler

Actually that's pretty much what BJ on the IBI help desk came up with too. With a little tweaking for my needs it works great!

As usual once you already know what to do, it's simple, but actually figuring it out from the manuals... sheesh!

Thanks again.






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.
 
Posts: 21 | Location: Virginia | Registered: May 10, 2005Report This Post
Master
posted Hide Post
Llance

That is an option, but I really would not like to have to do a -INCLUDE in every program. If it were me I would create a WebFOCUS Servlet Exit that would extract the information 1 time from the RDBMS and store them as JAVA Session Variable and then pass them to all future request. This way you only have to overhead from reteriving the information from the RDBMS once. A good place to start is the WebFOCUS Security Administration Manual.

Hope this helps




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Member
posted Hide Post
A fascinating suggestion, and as soon as I find someone who has a clue what you just said I'll get right on it!

Seriously though, thanks for the idea. However with the barely entry level expertise I can muster, I think the "easy to grok" route works best at the moment. Maybe later...






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.
 
Posts: 21 | Location: Virginia | Registered: May 10, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How can I create an extention to MR's &IBIMR_user var?

Copyright © 1996-2020 Information Builders