• rajasabhai rajasabhai
    February 9, 2018 at 11:08 am #4980

    Hi All,

    I am trying to find validity of a attribute in a coach. The attribute is at the following level : Coach>Coach View 1>Coach View 1.1(child to Coach View1)>attribute.

    to find the validity I used the inline java script on CV1.1 to check the validity of attribute(attribute.isValid()) and fire the on change event(Tab switching scenario, call the inline javascript function of the coach view), but on console I got that CV1.1 is not the root error message.

    So I tried the inline script at CV1 level by validating(isValid() function ) on the CV1.1(CV1_1.isValid()), but this didnt work .

    Could you please help on how to achieve the validation for the attribute?

    Thanks in advance.


    SPARK Support
    February 9, 2018 at 1:44 pm #4984

    Hi Raja,

    I would suggest creating an isValid() method for your coach view in the Inline JS which in turn calls each control’s isValid() using

    var control = this.ui.get(“controlName”); if(control.isValid()){ code to execute };

    Then the method for your CV can be called by ${CV1}.isValid()


    Stephen P.

    rajasabhai rajasabhai
    February 10, 2018 at 2:46 am #4985

    Thank you Stephen I was little apprehensive on trying to invoke a function of a nested coachview. As suggeted I tried it now and works smooth.

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