How to Add Custom Code to "Save All" Button And "New" Button Click Event in a Detail?

Hi everyone,

I need to add validation checks and perform calculations on certain fields when the "Save All" button is clicked in a specific detail. 

Could you please guide me on how to add custom code to this button's click event? 

Which handler should I implement or override to achieve this?

Thanks in advance for your help!

Like 0

Like

3 comments

Hello Rachel,

When you click "Save All" button crt.SaveRecordsRequest is called.
Override this handler by implementing your version of it with logic you need.

Hope this helps 

Yevhenii Grytsiuk,

Thank you very much for your answer!
I tried using the crt.SaveRecordsRequest handler, and it works great!

 

I have another question, if you don’t mind:

Which handler is called when the user clicks the "New" button in a detail that has the "Inline adding records" option enabled?

 I’m referring to this button:

 

 

 

By the way, I noticed the image you previously shared didn’t load correctly. Could you please resend it? I’m very interested in understanding this feature better.

 

Also, is there a consolidated resource where all these handlers are documented? I noticed that the Academy only covers documentation for basic handlers.

 

Thanks again for your help!

Rachel

 

 

Hi everyone,

Just checking for updates on the "New" button handler in a detail with "Inline adding records." 

Thanks!

Show all comments