rajasabhai rajasabhai
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.
Raja.
SPARK Support
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()
Regards,
Stephen P.
rajasabhai rajasabhai
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.