I am using VST for GP 2010, specifically to populate additional new POP document details. Part of my routine will pull in SQL data to fill into each PO line item's purchasing comments. Regardless of whether I update the .Value and RunValidate() on the PopPoItemDetailEntryForm.PopPoItemDetailEntryWindow.CommentText or open up a PopCommentEntryForm.PopCommentEntryWindow and update the .Value and RunValidate() on its .CommentText the data doesn't save.
I've programmatically tried to call the appropriate OK and Save button methods to no avail. When I comment out those methods to leave up the comment data I can see it's in there. But even when I manually click on OK and Save when I return back to the line item the comments have vanished.
The only way I can workaround this apparent bug is to have the enduser manually type something additional into the comment text box. When they do that, even deleting the additional text they entered, and save then the comments are retained.
Is there any other workaround for this? I have opened a ticket with Microsoft Product Support and have followed their suggestions. Nothing works unless someone manually types something into the CommentText field.