Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

GP 2010 SDK Check for value change inside grid

Posted on by 75,730

I am trying to capture the event of someone changing the unit price on a line on a sales order. This is the line I currently have.

sopEntryWindow.LineScroll.UnitPrice.Change +=new EventHandler(UnitPrice_Change);

However, this line fails immediately upon launching GP. It appears to be looking for an array index value because I get a message:

"Illegal address for field 'Unit Price' in script[Not Found]

How do I properly construct this line so I can check for this event?

 

*This post is locked for comments

  • Dave Dusek Profile Picture
    Dave Dusek on at
    Re: GP 2010 SDK Check for value change inside grid

    ValidateBeforeOriginal or ValidateAfterOriginal on the field.  

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    Re: GP 2010 SDK Check for value change inside grid

    OK, I got past this by realizing this is a local variable, but now my warning box pops up the second an sop number is entered. I do I structure the code so that it will fire only when the Sell Price is changed? This value is sititng in the Line_Scroll grid so the event has to fire after landing on this field in the grid and only if the unit price value has been changed.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans