Notifications
Announcements
No record found.
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?
Hi TallyHoDukey,
Try the below JavaScript function.
function SetIsPriceOverridden(executionContext){ var formContext = executionContext.getFormContext(); formContext.getAttribute("ispriceoverridden").setValue(false); }
I appreciate the response.
Are you suggesting that the same call nested in a function behaves differently than the straight call?
Thank you
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.
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 73 Super User 2025 Season 2
Gerardo RenterÃa Ga... 43 Most Valuable Professional
Daniyal Khaleel 32 Most Valuable Professional