How to get Attachment Id when clicking a file in Attachments list in Freedom UI
Hello everyone, Is there a way to obtain the ID of the selected file in attachments in a Freedom UI section?
Like
I assume you could get it using the following (this works for lists, I assume it's the same for gallery mode)
const selectedId = await request.$context.TheListNameHere_ActiveRow;See https://customerfx.com/article/responding-to-a-row-selected-event-in-a-creatio-freedom-ui-list/
Also, you could add the button/action as a menu item when you click the three-dots button, see https://customerfx.com/article/adding-row-action-menu-items-to-a-creatio-freedom-ui-list/
Ryan
Hello,
Basically there is no way to get the id when clicking, but maybe one of the options will be useful:
- you can create a list with files to write and display the id column
- when hovering over the file, the file id is displayed in the link