TOC : OZ e-Form Extension > OZ e-Form JavaScript API > ReportTemplate > Method >

 

GetInvalidInfoJSON

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : OZ e-Form Extension > OZ e-Form JavaScript API > ReportTemplate > Method >

 

GetInvalidInfoJSON

 

 

Gets information of Input Component that has empty value with Required property set to true.

 

 

 

Prototype :

 

string GetInvalidInfoJSON

(

       No Arguments

)

 

 

 

Reference :

 

If there is a component of the same name, the value of the last component is set.

 

If there is no invalid component, returns a blank value.

 

JSON format that is returned as GetInvalidInfoJSON() function is returned as follows.

[{"FormID":"Value","InvalidType":"Required","PageIndex":"Value","TooltipText":"Value"},...,{"FormID":"Value",...}]

FormID

FormID of Input Component. If there is no FormID, it is replaced by name of component.

InvalidType

Invalid Type. Now it is only supported for Required that indicates Required option.

PageIndex

Page Index(One-Based Index) of Input Component. If RadioButton connects with RadioButtonGroup, it is returned as page index of first RadioButton.

TooltipText

TooltipText of input component. It is possible to use as showing confirmation message window or log.

 

 

 

Example :

 

//If there is Input Component that has empty value with Required property set to true, displays confirmation message window and also moves you to that component.

var strJSON = ReportTemplate.GetInvalidInfoJSON();

var objJSON = JSON.parse(strJSON);

for(i=0; i< objJSON.length; i++) {

  _MessageBox(objJSON[i].TooltipText, "Error", function() {

     var objComp = This.GetInputComponent(objJSON[i].FormID);

     if(objComp != null) {

        objComp.EnsureVisible();

        objComp.SetFocus();

     }

     return false;

  });

}

 

 

 

Available Events :

 

OnCheckValidity,  OnClick,  OnExternalEvent,  OnValueChanged