<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : OZ e-Form Extension > OZ e-Form JavaScript API > Input > DateTimePicker > 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 DateTimePicker 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
Regardless of the "Allow Empty Value" property value DateTimePicker is displayed as today. In this condition, when the focus of the DateTimePicker is returned, the value will be changed to today.
?? ϕορματ-χηαρσετ=Execute in Mobile
If the "Allow Empty Value" property value is "true" DateTimePicker is displayed as empty. In this condition, if you touch a DateTimePicker will be maintained an empty value.
If the "Allow Empty Value" property value is "false" DateTimePicker is displayed as empty. In this condition, if you touch a DateTimePicker will be displayed as today. Clicking the [Next] or [OK] button, change the value to today and the [Pre] or [Cancel] button, does not change the value.
Example :
This.SetInputValue("FormID", "2015-07-25");
Available Events :
OnAddToPage, OnEndBind, OnValueChanged