How to limit use of a Blox Button based on a user
I am working with a dashboard that uses multiple JTD BloX widgets, where I want one of these JTD BloX Widgets to hide based on a user who is accessing it. This will be set for multiple users, but I wanted to see if there are any solutions out there.
Rafael Ferreira
Posted 1 year ago·Last reply 1 year ago
7 comments
Rafael Ferreira
OP1 year agoHi DRay, this is the code that rapidbisupport provided.
The oid is the ID of the BloX widget I was trying to hide or even the widget you may be trying to hide, and the hideGroup is the name of the group given in your environment that you need to Block access to.
Rafael Ferreira
OP1 year agoHey DRay I found another solution to this. Thanks
DRay
·1 year agoThank you for the update Astroraf. How did you end up resolving it?
DRay
·1 year agoHello Astroraf,
I’m following up to see if the solution offered by AssafHanina worked for you.
If so, please click the 'Accept as Solution' button on the appropriate post. That way other users with the same questions can find the answer. If not, please let us know so that we can continue to help.
Thank you.
Rafael Ferreira
OP1 year agoHI DRay,
This does seem to be what I am looking for, but I have a question regarding the code. Hey rapidbisupport, regarding this solution { https://community.sisense.com/t5/build-analytics/hide-blox-title-header-based-on-customer-group-id/t...}, in the code:
The userGroup is the ID of the group I want the JTD BloX widget to be hidden and #ITEM is the title of the JTD I give in the BloX editor?
Assaf Hanina
·1 year agoHey Astroraf ,
You may leverage the Solution shared in the following Article which provide a dashboard script to hide a list of widgets per certain groups.
Dashboard Script:
Notes:
for the Blanc, it's possible to add Custom text such as "No Data"
Please find examples
Before adding the dashboard script
After Applying the Dashboard Script
Dashboard Script with custom Text
Best Regards
DRay
·1 year agoHi Astroraf,
Would something like this work for you? https://community.sisense.com/t5/build-analytics/hide-blox-title-header-based-on-customer-group-id/td-p/19610