I have added a new field in standard form and I have written lookup code by using event handler. When I click on that control I am getting " More than one form was opened at once for the lookup control" this error. To resolve this we wan use below code.
[FormControlEventHandler(formControlStr(SalesTable, InventLoaction), FormControlEventType::Lookup)] public static void InventLoaction_OnLookup(FormControl sender, FormControlEventArgs e) {
FormControlCancelableSuperEventArgs eventArg = e as FormControlCancelableSuperEventArgs;
eventArg.CancelSuperCall();
}
Keep Daxing!!
No comments:
Post a Comment