-
-
Save ztirom/4df99ed0d05ca478e27d17a86a20d281 to your computer and use it in GitHub Desktop.
AX2012 Custom Lookup on a Dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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