Hi,
how can I open edit form after click button (not edit and add) ? I must use openEditor() method?
Hi,
how can I open edit form after click button (not edit and add) ? I must use openEditor() method?
Hi Joanna,
Yes, you should use openEditor() method and pass an entity instance that you want to edit.
hi,
I use openEditor() method but I getting en error:
“IllegalArgumentException: entity is null”
This is my method:
Code blocks
public void onCreateNewOrderDorButtonClick() {
openEditor("ecs$Orders-createOrderDor.edit",Orders ,WindowManager.OpenType.DIALOG);
}
ecs$Orders-createOrderDor.edit - my additional edit form
Orders - my entity
Perhaps the Orders variable is null. You can use step-by-step debugger in the IDE to set a breakpoint and watch it.