Possibility to control visibility/availability of custom row toolbar items in the attachment list
Hello!
As far as we know, there is an option to bind visibility/disabled properties of crt.MenuItem to some custom attribute. For example:
"rowToolbarItems": [ { "type": "crt.MenuItem", "caption": "Some Option", "visible": "$SomeCustomAttribute", "clicked": { "request": "usr.SomeCustomRequestHandler", "params": { "recordId": "$AttachmentList.AttachmentListDS_Id" } } } ]
But what if we need to change this attribute value dynamically according to some condition on a specific condition in each attachment, for example, show our custom menu item only for attachments, which have Description column filled.
In simple list we can you crt.HandleViewModelAttributeChangeRequest, which is called on selection change inside the list. There we can get selection state out of the list, see selected items id and perform with them any operations we like (database query, syssettings check, etc) including changing value of the custom attribute. But in the attachament list there is no request being called to do such thing.
What are the options to manage the attributes from the attachment list?
Like