For List Page on save all button pressed which handler request to use to run the code?

I am trying to use crt.SaveRecordRequest for list page but this is not working, Is there any other request we need to use in freedom UI to run a code on Save all pressed? 

 

Here is my code

 

handlers: [
 {
   request: "crt.SaveRecordRequest",
   handler: (request, next) => {
     console.log("handler triggered: ");
     return next.handle(request);
   }
 }
],

 

 

I am able to run this code successfully on record page for that and code works perfectly but same code doesn't work on list page. 

 

For testing I have tried running HandleViewModelAttributeChangeRequest on list page and it worked fine so just the above SaveRecordRequest is not working.

 

handlers: /**SCHEMA_HANDLERS*/[

       {

           request: "crt.HandleViewModelAttributeChangeRequest",

           handler: async (request, next) => {

               console.log("# Atribute updated :", request);  

               return next?.handle(request);

           }

       }

   ]/**SCHEMA_HANDLERS*/,

Like 0

Like

0 comments
Show all comments