Hi everyone,
Is there a way to obtain the ID of the selected file in attachments in a Freedom UI section? Looking for an equivalent of activeRow / this.get("SelectedRows") for Freedom UI.
Regards,
Ramya
Like
Yes. This is something I would need as well. I've not tried this, but maybe it's possible to add to the rowToolbarItems for the attachments list and get the selected Id from the handler there?
Ryan
Yes. This is something I would need as well. I've not tried this, but maybe it's possible to add to the rowToolbarItems for the attachments list and get the selected Id from the handler there?
Ryan
Ryan Farley,
Thanks a lot for the response. This worked!
You can pass the attachment Id in the params as mentioned below:
"rowToolbarItems": [{ "type": 'crt.MenuItem', "caption": 'Get attachment id', "icon": 'open-button-icon', "clicked": { "request": 'psg.MyCustomHandler', "params": { "Id": "$AttachmentList.AttachmentListDS_Id" } } }]
Regards,
Ramya
Ramya R,
Glad to hear this list can also be extended, great news.
Ryan