Skip to content

Instantly share code, notes, and snippets.


ztirom/dialog Secret

Last active Apr 22, 2016
What would you like to do?
AX2012 Custom Lookup on a Dialog
protected Object dialog()
Dialog dialog;
FormStringControl control;
DialogField fieldLookup;
dialog = super();
// Dialog Title
dialog.caption("Aif Adapter");
// Field - EDT, Label
fieldLookup = dialog.addField(extendedTypeStr(AifAdapterName), "AifAdapterName:");
// Get control
control = fieldLookup.control();
// Override lookup method
control.registerOverrideMethod(methodStr(FormStringControl, lookup),
methodStr(DialogLookup /* Class name */,
lookup /* Method name*/), this);
return dialog;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment