Let's imagine you've displayed the lookup column on the edit page that references the "Account" object. In this case you will get this code in the "attributes" property of the "viewModelConfig":
where UsrAccountColTest is the code of the added lookup column. To add filtration to this column you need to create additional attribute like the one below:
so you need to add the _List_BusinessRule_Filter part to the attribute name and specify the filter. This particular filter I sent above will return only account where the "Name" column of the account contains the "acc" part.
If you doubt how to correctly specify filtration you can add the "List" component to the designer (referencing the same object as your lookup column), add filtration there:
save the page and check the code added to the schema (it will contain the "PredefinedFilter" part (in my case the name for the filtration was "DataGrid_7ql0gtq_PredefinedFilter")), it will contain the filtration needed and then you can create an attribute for the lookup as I described above and use the same filtration there.
Let's imagine you've displayed the lookup column on the edit page that references the "Account" object. In this case you will get this code in the "attributes" property of the "viewModelConfig":
where UsrAccountColTest is the code of the added lookup column. To add filtration to this column you need to create additional attribute like the one below:
so you need to add the _List_BusinessRule_Filter part to the attribute name and specify the filter. This particular filter I sent above will return only account where the "Name" column of the account contains the "acc" part.
If you doubt how to correctly specify filtration you can add the "List" component to the designer (referencing the same object as your lookup column), add filtration there:
save the page and check the code added to the schema (it will contain the "PredefinedFilter" part (in my case the name for the filtration was "DataGrid_7ql0gtq_PredefinedFilter")), it will contain the filtration needed and then you can create an attribute for the lookup as I described above and use the same filtration there.