Created
March 2, 2023 10:29
-
-
Save bayramcetin/47ee979aaf929ef8190ae844fde47993 to your computer and use it in GitHub Desktop.
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
[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