I have an entity edit form with attachments table on it and want to open attached files not only by pressing an Open button, but also by doubleclick on table item. How can I set an appropriate Listener, Validator or anything else?
Try to use the setItemClickAction() method of Table.
Thanks, now it works great!
But I have a question.
I want to make a single Action both for “Open attachment” button and for setItemClickAction() of attachments table. But in the overrided init() method openAttachmentBtn.getAction() yet returns null and I had to call setItemClickAction() in the ItemChangeListener of attachments datasource.
Where should I call setItemClickAction() to make things right?
Do it in postInit()(for an editor) or ready() (for any screen).