Visual Studio Tools - Force Dynamics to compute a new MiscAmount entry

If you use Visual Studio to enter a value in the MiscAmount field in SOP Transaction Entry, the Total and On Account fields will not recalculate. The problem is that there is code that runs behind the form and simply setting a value for Dynamics.Forms.SopEntry.SopEntry.MiscAmount.Value will not cause that code to run. What you need to do is...

 

        Dynamics.Forms.SopEntry.SopEntry.MiscAmount.Value = 1.23
        Dynamics.Forms.SopEntry.SopEntry.MiscAmount.RunValidate()

RunValidate will do the trick

 


RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences