I have a list page, and its data source is a spesefic object we have created. above the list table there is a search element. What i want is when there is no filter applied the list table should be empty and, when any filter is applied then it should show only the matching resluts. How can i achieve this? What now happening is it is showing all of the existing records, but when i wanted to set up a business rule I could not find any option to access search element.
Clear the list isn't an easy task and needs a development team to be involved. Instead, you can prevent the list load by showing the Error message to the customer:
{
request:"crt.SearchFilterColumnsGroupsRequest",
handler: async (request, next)=>{const searchValueLenIsZero = request?.value?.length==0;const isEmptySearchValue = request?.value?.trim().length==0;if(searchValueLenIsZero || isEmptySearchValue){
Terrasoft.showErrorMessage("There is no filter");}else{
await next?.handle(request);}}}
I'm trying to learn the new Studio 8.0.6 front end development way of doing things as it is very different from the 7 versions. I started by creating a list and I want an action menu that calls a process that will update some fields on the record and then opens it.
I found this article Set up a custom action menu for list and list records | Creatio Academy that explains how to add custom actions from a list, but I cannot find a reference that shows how to do the same but instead of opening the page, to run a process and the opening a page. Is there a reference to all the existing handlers?
I found some of them on the SysUerProfilePage but not one to run a process.