Handler "crt.LoadDataRequest" not working to filter a lookup field in freedom ui
Hi Community,
In freedom UI, I found some article that in order for me to filter a lookup field through client code is to use "crt.LoadDataRequest" handler. However, this is not working, when debugging this handler is not even being triggered.
Any idea how to apply filter to lookup field through client code. This is the properties of my lookup field.
Like
The article you're likely referring to outlines how to filter the lookup when it is a "Dropdown list", which doesn't work for "Selection window" lookups. For that, see the answer from Harvey on this thread: https://community.creatio.com/questions/crtloaddatarequest-does-not-seem-trigger
Ryan
Ryan Farley,
Thanks your reply. I tried "crt.OpenLookupPageRequest" but this handler is not even triggered during debugging. I forgot to mention, my lookup field is inside mini page, does it make some difference?
Fulgen Ninofranco,
Ah, since that post, the request "crt.OpenSelectionWindowRequest" has replaced "crt.OpenLookupPageRequest". Try changing the request name to "crt.OpenSelectionWindowRequest"
Ryan
Ryan Farley,
Thank you ryan for your reply. "crt.OpenSelectionWindowRequest" is now triggering. However, it seems "request.dataSourceName"is not part of its attributes. How can I use "crt.OpenSelectionWindowRequest" handler to filter my lookup field?. Could you please share me you sample code.