Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Can I stop a grid from allowing its members to be opened/edited?

Posted on by Microsoft Employee

Maybe someone can verify this for me as well but, my submitted orders allow a user to change values on the order products.  We are at Unified Interface, phase 2 and all.  I've tested one form using a regular view as well as MS's editable grid and in both cases these should be locked down.

The simplest solution would be some jscript that "disables" the grid if the order status is "Submitted".  Can that be done?

TIA

ps- Yes, order Submitted -- I have thrown the switch to have Sales integrated with an external accounting system

pps- and on top of that, I've written my own CalculatePrice plugin and shut off the out-of-the-box pricing -- if either of those things might be short circuiting the proper behaviour.

ppps- something is working right because even when the quantity is changed the CalculatePrice event is not firing as the extended amount doesn't update

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Can I stop a grid from allowing its members to be opened/edited?

    Hi,

    You don't need a javascript, you can create a real time workflow on Order Product entity which trigger on change on 'Modified On' field and checks if the related order status is not active, if not active then cancel the workflow and set the error message under properties.

    Refer this:

    7610.SalesOrder.png

    Hope this helps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans