Forum Discussion

PelaezLink's avatar
PelaezLink
Icon for Helper I rankHelper I
3 years ago

Disable "show as table" option or right context menu from custom visual

Hello everyone.

 

I am basically modifying the existing source code of the TextFilter custom visual to suit my needs. The thing is that when I publish the report I don't want users to be able to right click on use "show as table" to see the underlying data. Given that this is a custom visual is it posible from the source code to diable this option or to disable the right context menu completely? For example when you right click on a button object it does not show any options.

 

Thanks a lot.

4 Replies

  • What would be the business value of doing that? As a developer you are supposed to make it easier for users, not harder.

    • PelaezLink's avatar
      PelaezLink
      Icon for Helper I rankHelper I

      That's the thing, but there are certain data that I want to be hidden from in the beggining and I don't have acces to RLS right now, so this is my workaroun right now.

      • lbendlin's avatar
        lbendlin
        Icon for Super User rankSuper User
        there are certain data that I want to be hidden from in the beggining

        The only safe way is to not include that data in the first place.