I am unable to assign a calculated value to the ExtendedPrice field within the LineScroll window of SOP Entry. Is there any way to do this?
Here is my current code :
static Microsoft.Dexterity.Applications.DynamicsModifiedDictionary.SopEntryForm SopEntry1 = DynamicsModified.Forms.SopEntry;
SopEntry1.SopEntry.LineScroll.ExtendedPrice.Value = PriceCalc1.GetCalcExtdPrice();
SopEntry1.SopEntry.LineScroll.ExtendedPrice.RunValidate();
If I step through the debugger's Immediate window, I can check and see that ExtendedPrice contains the value I want coming from PriceCalc1.GetCalcExtdPrice(). However, the GP form itself remains unchanged even after the RunValidate command. I am not getting any exceptions from .NET either.
The only way I can assign a value to a Line Item's Extended Price is to pop open the SopItemDetail form, which I would rather avoid.
I am using VS Tools, GP2010, Visual Studio 2010, C#.