Hello,
I’m attempting to override the default action of double-clicking a table entry within a browse screen.
I’ve found examples:
Here
Here
And referencing this
The problem is that I’m still a bit new to CUBA and haven’t been able to find the correct syntax to do this.
Basically, I’ve got an attachment browse screen, and I’ve got a custom action/button to download the attachment like so:
@Subscribe(“downloadBtn”)
public void onDownloadBtnClick() {
FileDescriptor fileDescriptor = sOPsTable.getSingleSelected().getSopDocument();
if (fileDescriptor != null) {
exportDisplay.show(fileDescriptor);
}
}
This works correctly. But now I need to figure out the syntax to override the double-clicking default action and have it perform just like clicking the Download button. When I tried to set this up like in the examples, I keep getting syntax errors.
I’m hoping someone can provide an example that will do what I’m attempting.
Thanks in advance! (and I apologize if the answer is in there and I’m too thick to understand it)