1
0
-1

Hi,

In a datalist can one show/hide columns based on permission? For example show some columns only if the logged in user is admin otherwise hide them when a normal user is logged in.

Similarly, can we show the edit and add button only if the user is admin?

I want to avoid having two datalists to achieve this.

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      Thanks for the response Anders.

      I have found the way to add permission in datalists.

      https://dev.joget.org/community/display/DX7/Builder+Advanced+Tools#BuilderAdvancedTools-Permission

      For the Edit button I will use a CRUD for admin users and a List for normal users.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi, you could try to use the Datalist Column#Formatter to perhaps redact or hide certain column values. For the actions, you could try to use Delete Action#VisibilityControls.

          CommentAdd your comment...