Hello,
I am working on a form that has a standard lookup field that is used to select a vendor. When expanded, the lookup shows the name and vendor ID. When the appropriate vendor is selected, only the name is shown in the form field.
And now, based on this vendor selection, I want the second lookup field to show all addresses assigned to the recipient. I have already written the code for FormControlEventType::Lookup and it works, I just need to get the vendorID. I can refer to the name of the vendor that is selected, but for it to work properly I need ID.
str VendorName = sender.formRun().design().controlName(formControlStr(CaseDetailCreate, DirPartyTable_Name)).valueStr();
How can I get the ID of the recipient from the first lookup, on the format only the name of the recipient is available?
Thanks.