Recently I faced one issue with Main account lookup on a new table. While selecting value from lookup I am getting several different errors, (see snaps below).
Error executing code: FormDataObject object does not have method 'resolveReference'.
(C)\Classes\SysSetupFormRun\task - line 20
Try below steps to resolve this issue.
1. Create a normal relation in your table with DimensionAttributeValueCombination table like below
yourTable.LedgerDimension == DimensionAttributeValueCombination.RecId
2. On Form Data source, overwrite below method on LedgerDImension field
public Common resolveReference(FormReferenceControl _formReferenceControl)
3. Overwrite below methods on Design object control
Make sure you well defined your variable in class declaration and initiate them in form init method.
4. Compile your Form and insert a record.
Let me know if you need complete code for the same, I’ll share.