Mattersphere Developers Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
Admin
Admin
Posts : 122
Join date : 2018-12-17
https://mattersphere-devs.forumotion.com

Return Of Client Information Based On Criteria Empty Return Of Client Information Based On Criteria

Fri 24 Jan 2020 - 15:07
We can currently fetch client data onto a File related form. eg:
Code:

FWBS.OMS.Client cli = ((FWBS.OMS.OMSFile)EnquiryForm.Enquiry.Object).Client;
EnquiryForm.GetIBasicEnquiryControl2("propertyAdd1", EnquiryControlMissing.Exception).Value =
    cli.DefaultContact.DefaultAddressLine1;
What we would like to do is return some contact information when a specific type of contact is associated with the file - in other words a specific associated format relationship exists. So eg:

If Contact associated with file WHERE associated Format = 'Planning Authority' THEN GET some contact related data (including extended contact data) It would also be useful to return some associate info to the file form as well.
______________________________________________________________________________________________
to find the associated type then use Associate.Contact to get at the contact info. If you log into the support portal and download the Task Flow manual you'll find lot's of code snippets that can be adapted for use behind a form
Peter
Back to top
Permissions in this forum:
You cannot reply to topics in this forum