My new table has a new field that reference dirparty and another field to relate dirparty contact person
I want to create a lookup for this field in my new form. The problem is I need to filter record in dirparty to show only contact person related on the reference dirparty
For example
My table
Parent party : A
Contact person party : I need this field to lookup contact person for party A
I've tried to use these lines of code but it shows error.
public Common lookupReference(FormReferenceControl _formReferenceControl)
{
Common ret;
ret = ContactPerson::lookupContactPersonByContactForParty(_formReferenceControl, FlxUs_BookingOpportunityParty.Party);
return ret;
}
Error : Could not process the lookupRecord value on the Args instance. The table 'DirPartyTable' does not exist as a root FormDataSource for the form 'XXTable__GridPartyContacts_ContactPersonParty'
Any ideas to resolve this issue?