• rajasabhai rajasabhai
    February 9, 2018 at 7:27 am #4975

    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
    February 9, 2018 at 9:19 am #4977

    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.

    https://support.salientprocess.com/docs/enterprise/Table.html

    Regards,

    Stephen P.

    rajasabhai rajasabhai
    February 9, 2018 at 11:00 am #4979

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search