web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Visual Studio Tools textbox populating but not saving with the record.

(0) ShareShare
ReportReport
Posted on by 519

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)
  • Greg Kujawa Profile Picture
    519 on at
    RE: Visual Studio Tools textbox populating but not saving with the record.

    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!

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans