Hi ,
Similarly like in example Sampler (jmix.io)
I would like to implement EntityComboBox, when user click on lookup action it open my lookup screen, but in same screen user can see action ‘Create, Edit & Remove’ . I dont want that to be there when we do only lookup from any EntityComboBox or EntityLookup.
Hi,
Remove alwaysVisible="true"
from buttonsPanel
in the screen that is opened as lookup (see demo or doc).
Gleb
2 Likes
Meantime I tried the below solution
/* @Install(to = “customer.lookup”, subject = “screenConfigurer”)
private void cEntityFieldLookupScreenConfigurer(Screen screen) {
customerBrowse = ((CustomerBrowse) screen);
customerBrowse.getWindow().getComponent(“createBtn”).setVisible(false);
customerBrowse.getWindow().getComponent(“viewBtn”).setVisible(false);
customerBrowse.getWindow().getComponent(“editBtn”).setVisible(false);
customerBrowse.getWindow().getComponent(“removeBtn”).setVisible(false);
}*/
But yes Remove alwaysVisible="true"
is more flexible