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.
*This post is locked for comments
I have the same question (0)I finally was able to _really_ resolve the issue. The root cause of the problem was that I didn't invoke the .Focus() method on the CommentText field before validating it, hitting the OK button, then hitting the Save button. Without the Purchase Line Comments having the text box in focus all of my ported in text wasn't saving. All good now!