Is possible to relate parent and child in TreeGrid both from one edition window.
Our code for parent is:
But, when try to add childs same time that parent, dont work!... Any idea?
Our code for parent is:
Code:
@Override
public void onSave(SaveEvent event) {
Record act = event.getAct();
if (act.getAttributeAsLong(ActAtt.id()) != null) {
actDataSource.updateData(act);
} else {
actDataSource.addData(act);
}
...
getActTreeGrid().invalidateCache();
hideForm();
}