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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

quotedetail.ispriceoverridden -- is it me or Microsoft

(0) ShareShare
ReportReport
Posted on by

Is this a shortcoming of my javascripting skill or Microsoft autocratic behavior?

        formContext.getAttribute("productid").fireOnChange();
        formContext.getAttribute("ispriceoverridden").setValue(false);

In any other case but oppty/quote/order/invoice detail would such a thing work?  Why can't I set the value of this Boolean?

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi  TallyHoDukey,

    Try the below JavaScript function.

    function SetIsPriceOverridden(executionContext){
        var formContext = executionContext.getFormContext();
        formContext.getAttribute("ispriceoverridden").setValue(false);
    }

  • Community Member Profile Picture
    on at

    I appreciate the response.

    Are you suggesting that the same call nested in a function behaves differently than the straight call?

    Thank you

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi TallyHoDukey,

    You will need to specify a function as you cannot make a straight call.

    My blog post explains how to obtain Execution, Form, and Grid Context in more detail. The most important takeaways from it are how to pass the execution context into your JavaScript function and how to retrieve the formContext object.

  • Community Member Profile Picture
    on at

    I'm sorry for assuming this was clear.

    Those two lines are within this.enterProductOnchange = function(ExecutionContext) {...};  The first line works; why doesn't the second?

    In other words, I don't see a difference between your answer and my problem.  I thought you were offering the function as a substitute for line 2.

    Again, I apologize.  My problem is the second line doesn't seem to work.

  • Community Member Profile Picture
    on at

    Let me be more specific:  the fireOnChange is in Microsoft's blackbox around Existing Product (productid lookup.)  It sets ispriceoverriden to true.

    EITHER fireOnChange() ALWAYS affects the line that follows

    OR Microsoft is affecting the line that follows.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 73 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 43 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans