Hello,
a column in my table displays the count of related entities. Its displayed as link (link=“true”) and when I click on it a want to display a new window with (only) the related entities.
It seems the method specified in the linkInvoke attribute does not accept a parameter. How can I get the clicked link and the according entity?
HI Stefan,
you can simply define method for linkInvoke with two parameters with types Entity and String:
public class ClientBrowse extends AbstractLookup {
public void openByNumber(Entity item, String columnId) {
showNotification("Clicked by " + ((Client) item).getTitle(), NotificationType.HUMANIZED);
}
}
And use it as a value of linkInvoke attribute:
<table id="clientsTable"
width="100%">
<columns>
<column id="title"/>
<column id="number" link="true" linkInvoke="openByNumber"/>
</columns>
<rows datasource="clientsDs"/>
</table>
1 Like