IDEMPIERE-5934 : Read only Chosen Multiple Selection List fields can be updated using Assistant (#2115)

* IDEMPIERE-5934 : Read only Chosen Multiple Selection List fields can be updated using Assistant

* IDEMPIERE-5934 : Read only Chosen Multiple Selection List fields can be updated using Assistant #2
This commit is contained in:
Zuhri Utama 2023-11-24 21:06:10 +07:00 committed by GitHub
parent bd41a5d8e8
commit ce48a8835e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -286,6 +286,7 @@ public class WChosenboxListEditor extends WEditor implements ContextMenuListener
addChangeLogMenu(popupMenu);
popupMenu.removeNewUpdateMenu();
if(gridField.getDisplayType() == DisplayType.ChosenMultipleSelectionList && gridField.isEditable(true)) {
Menuitem editor = new Menuitem();
editor.setAttribute("EVENT", WEditorPopupMenu.ASSISTANT_EVENT);
editor.setLabel(Msg.getMsg(Env.getCtx(), "Assistant"));
@ -295,6 +296,7 @@ public class WChosenboxListEditor extends WEditor implements ContextMenuListener
editor.setImage(ThemeManager.getThemeResource("images/Wizard16.png"));
editor.addEventListener(Events.ON_CLICK, popupMenu);
popupMenu.appendChild(editor);
}
}
}