Hi!
I’m working on a Freedom UI Activities page where I display a registry of certificates as an editable list. One of the columns in this list is an Activity lookup, and I need to restrict that lookup to show only the current Activity (i.e. the one tied to the page).
So far, I’ve tried:
Implementing handlers for crt.OpenSelectionWindowRequest and crt.LoadDataRequest to log requests, but these only fire for fields outside the editable list.
Inspecting the Network tab: when I open the lookup dropdown, I see a SelectQuery against rootSchemaName":"Activity" with a filter, but I can’t find where to inject my custom filter for the editable list.
Question:
Does anyone have an example or best practice for applying a filter to a lookup column inside an editable list on a Freedom UI page? Specifically, I need the Activity lookup to return only the activity record corresponding to the parent page when the user clicks the field.
Thank you in advance for your help!
Like
Hello,
You can find the examples and additional information in the following posts:
https://community.creatio.com/questions/applying-filter-lookup-field-inline-editing-details-record-freedom-ui-detail-object
https://community.creatio.com/questions/freedom-ui-filtration
https://community.creatio.com/questions/freedom-ui-lookup-filter
https://community.creatio.com/questions/filtering-lookup-values-editable-list-grid-detail#comment-87531
The example provided in the article might be useful as well
https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…
Iryna Oriyenko,
Hi Iryna,
Thank you for gathering these links for me. I reviewed each of them and successfully implemented the lookup filter on a Freedom UI Form Page. My challenge now is applying the same filter to a Freedom UI List Page (the editable grid inside a section).
I’ve seen mixed information in the community: some comments say inline filtering in the List Page grid isn’t supported yet, while others suggest it might be possible - but I haven’t come across a working example.
Could you confirm whether dynamic lookup filtering in a edit List Page grid is currently supported? If it is, a short code snippet or reference would be greatly appreciated.
Thanks again for your assistance.