Action type="list_itemTracking" and security

Dear Support

Attached you find a project which is demonstrating my problem / question

I have created a user demo with readonly access to the application and entities.

When logged in with user demo and password demo I select Objects.

In the tObjectsDataGrid I added a button
<action id="copyAndEdit" text="msg:///action.copyAndEdit" icon="EDIT" type="list_itemTracking"/>

a) I did program in the controller the mechanism to disable this button if there is isUpdatePermitted = false.
→ is this the correct way ( quit some code ! ) or isn’t there an easier solution ?

b) There is a Master-detail view Collections

  • as the demo user has read-only access, the button edit changes to “read”, which is nice
    → but if the user clicks on this button, there is a Save and Cancel Button. I think here there should be only a close button ?
  • there is a readButton. If the user clicks the read button, there is an error “NoSuchViewException: View ‘TCollection.detail’ is not defined”, which is basically not needed.

Thank you for your attention, as I need to adapt perhaps a big project ;/

Regards
Felix
Security.zip (130.4 KB)