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     [CLOSED] UserID and GroupID variable in MR report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] UserID and GroupID variable in MR report
 Login/Join
 
Member
posted
I have a dashboard report which pulls data from masterfiles and also have SQL reports.
I need to ristrict users of different groups to see only those records from the tables which has GRP_ID = . GRP_ID being a column in all the tables.
Is there a inbuilt focus variable which i can use as a where(in where/if statement) clause to all the reports in the dashboard so that the value of the variable would be applied to the report at runtime with the groupID of the user.

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


WebFocus 7.7.02
Windows, All Outputs
 
Posts: 14 | Registered: August 29, 2011Report This Post
Platinum Member
posted Hide Post
I woudl suggest one of two approaches. If each user can only be a member of one group,

 
TABLE FILE security_table
PRINT GRP_ID
WHERE USER_ID EQ &IBIMR_user
ON TABLE HOLD AS TEMPGRP FORMAT ALPHA
END
-RUN
-READ TEMPGRP GRP.Ann.
 


&GRP would hold the group id for that user
and you can use

 
WHERE GRP_ID EQ &GRP;
 

or, if a user can be a member of multiple groups:
 

TABLE FILE security_table
PRINT GRP_ID
WHERE USER_ID EQ &IBIMR_user
ON TABLE HOLD AS TEMPGRP FORMAT ALPHA
END
-RUN
 


and use

 
WHERE GRP_ID IN FILE TEMPGRP
 


In either case, just use a -INCLUDE to put the query that creates TEMPGRP in the begining of each report fex, and the appropriate where statement along with the other where's.


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
 
Posts: 132 | Location: Gadsden, Al | Registered: July 22, 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     [CLOSED] UserID and GroupID variable in MR report

Copyright © 1996-2020 Information Builders