Process Entire Grid

nkuebelbeck

nkuebelbeck

VIP Member
I'm new to interactive program development.

I have a find/browser form. I have an inspect/fix form that launches with grid row selected in update mode and when add button is pressed.

I would like to create a push button that validates the entire grid on the find/browse form.

I've done this before in the past by allowing multi select on the grid, but it's not exactly elegant.

I was wonder if there was a way to process the entire grid (I'm assuming one record at a time) without forces the user to select all the records.

I've read through the FDA guide but can't find the solution i'm looking for.

Thanks in advance.
 
Hi,

U can do this by using grid System Functions.

First find out the Max number of Grid Rows by using "Get Max Grid Rows". It will return the number of grid lines u have in the grid.
While (VACounter<Max Grid Rows-1)
{
Get Grid Row (FC Grid,"VACounter") //*Whic will select the Grid which will be 1st or 2nd or 3rd etc depending on the value we will give in "VA Counter " variable.//
Now u can do the validation here.
VACounter++;
}

Write this whole logic in a push button and press this button in which u want to use this.
 
Back
Top