cancel
Showing results for 
Search instead for 
Did you mean: 

Validation in Matrix

Former Member
0 Kudos

Hi All,

I select a data from a field using query in that i have five records Example A,B C,D,E. Here before i press add button All this 5 Records should be loaded in the matrix if only 3 records are added then it should validate and give the error msg to add remaining 2 records.

Madhavi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

In matrix load event after , add records just count no of matrix row using omat.rowcount() & check with no of retrive query no.

or if u want to even compare with with matrix value also then u have to write two loop conditions.

in matrix load event after data added , just again run for loop or record set & in between that for loop run another for loop for matrix & use flag for identified.

Regards,

Avijit

Former Member
0 Kudos

Hi,

Just write a conditon with the matrix row count. If the matrix Row Count is less than 5 (for A,B,C,D,E) then u show an error msg to add the remaining.

Hope it helps,

Vasu Natari.