Hi,
I’m implemented a PersonForm inside PersonView (simply personview renders personform inside modal box).
Also I have a Personlist getting data from PersonContainer, and it is setted for selectable.
My question is;
how can I fire up modal box when I select record from table, for editing or deleting records. I’m trying to accomplish this, any ideas.
Hi,
You can show a modal window when the user selects an item in a Table using a ValueChangeListener looking something like this:
public void valueChange(ValueChangeEvent event) {
Table table = (Table) event.getProperty();
Window subWindow = new Window();
subWindow.setModal(true);
table.getApplication().getMainWindow().addWindow(subWindow);
}
remember to set your table selectable and immediate