2 Edit Screen from 1 entity

Hi Team!
I have 1 entity name Game and create 2 screen Game Browse/Game Edit and Game Approval Browse/Approcal Game Edit (with edit screen separately)
for this entity , But when I click button edit of Game Approval Browse it link to Game Edit screen

I knew that editAction cannot have two button have the same name , so I rename button edit on Approcal Game Edit screen from “edit” to “edit_1”
I don’t know what happend , plz help!!

1 Like

Hello @vanhttg,

The EditAction opens the default editor screen for entity, but you could specify your own editor id for the EditAction.

  • Screen controller
((EditAction) tasksTable.getActionNN("edit")).setScreenId("customEditorId");
// or
((EditAction) tasksTable.getActionNN("edit")).setScreenClass(CustomerEditor.class);
  • XML descriptor
<actions>
    <action id="create" type="create"/>
    <action id="edit" type="edit">
        <properties>
            <property name="screenId" value="customScreenId"/>
        </properties>
    </action>
    <action id="remove" type="remove"/>
</actions>

Regards,
Gleb

2 Likes

It’s works , Thanks for your support :revolving_hearts:, you save my time ^^

1 Like