Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bayramcetin/47ee979aaf929ef8190ae844fde47993 to your computer and use it in GitHub Desktop.
Save bayramcetin/47ee979aaf929ef8190ae844fde47993 to your computer and use it in GitHub Desktop.
[FormControlEventHandler(formControlStr(PurchTable, PurchLine_ETGOMDepartment), FormControlEventType::Lookup)]
public static void PurchLine_ETGOMDepartment_OnLookup(FormControl sender, FormControlEventArgs e)
{
FormStringControl ctrl = sender as FormStringControl;
Args args;
FormRun formRun;
DimensionAttribute dimensionAttribute;
select firstonly dimensionAttribute
where dimensionAttribute.Name == 'Departman';
args = new Args();
args.record(dimensionAttribute);
args.caller(sender);
args.name(formstr(DimensionLookup));
formRun = classfactory.formRunClass(args);
formRun.init();
ctrl.performFormLookup(formRun);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment