Jude
4Penny.net
Points: 7584

10/24/2023 9:27:05 AM

Dynamics GP How to iterate through a form table in .NET

* This article, and all our great VS Tools documentation, Is available on the VS Tools menu

Normally, I'd do all this in SQL, but the requirement is to loop through the grid in the IVTransfer form and look at the locations (and throw an error based on business logic)

So, I need to do this in the form, before the form is saved/posted. 

Code below

Note that this code will work for any module (most questions are for SOP), just edit the table name

 

4Penny.net
Version: Unknown or N/A
Section: Visual Studio Tools for Dynamics GP,Dynamics GP,.NET Development
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3