rajasabhai rajasabhai
Hi Team,
I am validating attributes on screen using DataChange on coaches (setting coachvalidationerrors)& isValid function to confirm if no error is there on screen. but however there is a tab which has a table element, when i try to do a is Valid on the table attributes, I face the error that isValid cannot be performed on undefined element.(when there is no record/row onthe table). So how do I confirm the validation only when there is any data on it?
Thanks,
Raja.
SPARK Support
Hi Raja,
The Table control provides and available getRecordCount() method. This could be used in the logic to first check for a Table with greater than zero records.
http://support.salientprocess.com/docs/enterprise/Table.html
Regards,
Stephen P.
rajasabhai rajasabhai
Thank you Stephen.
I did get it working at the table level, but the attributes mapped to the column is still throwing an exception isValid on undefined,(when i add a new row on the empty table). So the table had a list object mapped to it and the columns are attributes of the list object under currentItem.
Regards,
Kanagavel.