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

Announcements

No record found.

News and Announcements icon
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 801

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
    801 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Shravan Attelli Profile Picture

Shravan Attelli 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans