Automatically generated lookup forms still function correctly, but in the case of lookups that can't be adequately filtered using relations we run into problems.
An easy solution is to add an extra case to the switch statement found in SysTableLookup.performFormLookup as shown below.
case classnum(FormInt64Control):
callingIntControl = callingControl;
callingIntControl.performFormLookup(this.formRun());
break;
Whilst this solves the problem, programmatically generating lookup forms is against best practice, so a better solution to this problem is to create a form to be used as the lookup form.
No comments:
Post a Comment