Hello everyone,
i have a strange behaviour in using addCustomFilter trying to filter some values in a lookup field in my main form.
I need to exclude some values in the list of the lookup field
- If i put the code straight it works correctly:

- if i take the value to be filtered from another function (sing variable "includedValues") i can see that the filterXml is exactly the same but the lookup field is no filtered:
in console i have this:
GUID are exactly the same, in the first step i put them manually, in the second step they are retrieved dinamically.
Thank you for your support!
Giovanni