web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Editable Grid - Prevent Save if condition fails

(0) ShareShare
ReportReport
Posted on by 35

Hi Team,

I have used an OOB CRM editable grid where i can add values to certain attributes.

On change, i am validating the value in a cell (say, Amount) and based on certain aggregate conditions , i am showing a grid cell notification. But i also need to prevent save.

I was under the assumption, that setting field notification will prevent the save, but i can verify from the advanced find, that values are still getting updated in the back-end.

Any help is appreciated in this matter.

(Please note that I can't make use of Plugins to through out error, as the validations are like aggregate of the rows in context, and can't throw error for just one record change, if more than one records exists)

*This post is locked for comments

I have the same question (0)
  • Nitin Meria Profile Picture
    216 on at

    Hi Aamir,

    Have you tried this :

    https://neilparkhurst.com/2015/11/11/javascript-prevent-save/

    [View:https://neilparkhurst.com/2015/11/11/javascript-prevent-save/:750:50]

  • Suggested answer
    Community Member Profile Picture
    on at

    Try sync workflow?

    Not sure how complicated is your aggregation, but simple one I guess should be ok.

  • Aamir Nawaz Profile Picture
    35 on at

    I think you misunderstood the requirement. I am not talking about preventing save on form but on the editable grid record change

  • Community Member Profile Picture
    on at

    Don't get you.

    On change, i am validating the value in a cell (say, Amount) and based on certain aggregate conditions , i am showing a grid cell notification. But i also need to prevent save.

  • Community Member Profile Picture
    on at

    Hi,

    I am in the same situation, I need to prevent save function in the editable grid based on the validation. . Have you figured it out hot to prevent

    Thanks in Advance

    -Mamallan

  • Suggested answer
    M.Azwar Alam Profile Picture
    on at

    Hi,

    You can try following link in which Editable Grid have the OnSave event

    https://msdn.microsoft.com/en-us/library/mt788311.aspx

    Mark answer as verified, if it works for you

  • Suggested answer
    M.Azwar Alam Profile Picture
    on at

    You can try following link as well

    beringer.net/.../dynamics-365-customizing-editable-grids

    Mark as verified

  • Sumit Desai Profile Picture
    66 on at

    In my case , I'm using editable grid for an associated view in model driven app and on saving confirmation dialog is coming but in the background save operation is happening without considering the confirmation box output response .

    is there way to stop save if user click on cancel button of confirmdialog ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans