TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > NumericUpDown > Method >

 

SetInputValue

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > NumericUpDown > Method >

 

SetInputValue

 

 

Sets the value of Input Component, Label and FixedTableLabel.

 

 

 

Prototype :

 

void SetInputValue

(

       string ComponentName,

       string Value

)

 

 

 

Arguments :

 

ComponentName

Component Name

Value

Value

 

 

 

Reference :

 

If there is a component of the same FormID, the value of the first component is set.

 

If Input Component has no FormID, name of component is applied as FormID. But Button and VideoPlayer have no input value and are not be applied to SetInputValue function.

To get text of Label and FixedTableLabel as the input value, it must set FormID.

 

If you set the NumericUpDown input value to an empty value using this function, depending on the "Allow Empty Value" property value and Viewer running environment is displayed as shown below.

?? ϕορματ-χηαρσετ=Execute in PC

If the "Allow Empty Value" property value is "true" NumericUpDown is displayed as empty.

If the "Allow Empty Value" property value is "false" NumericUpDown is displayed as 0. In this condition, when the focus of the NumericUpDown is returned, the value will be changed to minimum value.

 

?? ϕορματ-χηαρσετ=Execute in Mobile

If the "Allow Empty Value" property value is "true" NumericUpDown is displayed as empty. In this condition, if you touch a NumericUpDown will be maintained an empty value.

If the "Allow Empty Value" property value is "false" NumericUpDown is displayed as empty. In this condition, if you touch a NumericUpDown will be displayed as 0. Clicking the [Next] or [OK] button, change the value to minimum value and the [Pre] or [Cancel] button, does not change the value.

 

?? ϕορματ-χηαρσετ=Dial type NumericUpDown running on the iOS

If the "Allow Empty Value" property value is "true" NumericUpDown is displayed as empty. In this condition, if you touch a NumericUpDown will be selected to "Do not enter" dial item.

If the "Allow Empty Value" property value is "false" NumericUpDown is displayed as empty. In this condition, if you touch a NumericUpDown will be changed to minimum value. Clicking the [Next] or [OK] button, change the value to minimum value and the [Pre] or [Cancel] button, does not change the value.

Note, if "Maximum value" property value of the NumericUpDown is less than or equal to 5000, NumericUpDown is displayed in dial type. In the dial type, "Do not enter" will be added automatically on the first dial item.

 

 

 

Example :

 

This.SetInputValue("FormID", "10");

 

 

 

Available Events :

 

OnAddToPage,  OnEndBind,  OnValueChanged