I'd like to ask you about DynamicList and filtering.
I have two catalogs: - Clients - Caretakers
Clients catalog has tabular section, in which References to Caretakers can be saved. So One Client can have many Caretakers.
And now in ItemForm of Caretaker, I want to display the Clients which are under care of the Caretaker. I added a DynamicList, sel ected the Clients Catalog ... and now I want to filter it based on the tabular data fr om Clients catalog (in which the references to Caretakers are held). How can I do this?
I tried Custom Query, but then I'm stuck with the Parameter - I don't know how to assign the Form's Object.Ref to it.
where "ClientsList" is the name of the DynamicList and "Caretaker" is the name of the parameter from the DynamicList's query used for getting the client(s) corresponding to current caretaker.
The DynamicList's query text can look like this:
Code
SEL ECT
ClientsCaretakers.Ref
FR OM
Catalog.Clients.Caretakers AS ClientsCaretakers
WH ERE
ClientsCaretakers.Caretaker = &Caretaker