Get the value from the given control.
Reference to a HTML element or an upControl
object.
Optional
attr: BrowserGetValueAttrAdditional information for target control, depends on target control.
Browser.getValue(ix.util.getHtml("<ELEMENT-GUID>"));
Set the value for the given control.
Reference to a HTML element or an upControl
object, whose value is to be set.
Control value to set.
Optional
attr: BrowserGetValueAttrAdditional information for target control, depends on target control.
Optional
fireEvent: trueTrigger the onchange
event (default: true
).
General
Browser.setValue(ix.util.getHtml("<ELEMENT-GUID>"), "Hallo Welt!");
Distribution-/Multiselect-Control
// strModus: append | replace
Browser.setValue(ix.util.getHtml("<ELEMENT-GUID>"), ["GUID1", "GUID2"], {
bAsync: false,
strModus: "append"
});
UpIntegerControl | UpCurrencyControl | UpFloatControl
Browser.setValue(ix.util.getHtml("<ELEMENT-GUID>"), 1.5);
upFilterCtrlRangeof | upFilterCtrlCalendar
// set from current date - 5 days until now
Browser.setValue(ix.util.getHtml("<ELEMENT-GUID>"), {
from: Helper.dateAdd("d", 5, new Date()),
to: new Date()
});
Browser.setValue(ix.util.getHtml("<ELEMENT-GUID>"), {
from: ",,-5,,,",
to: ",,,,,"
});
upFilterCtrlOperator
Browser.setValue(ix.util.getHtml("<ELEMENT-GUID>"), {
datafield: "datafieldGUID",
operator: "contains",
search: "test"
});
Encapsulates cross-control methods as a convenient wrapper.
This methods will use the target controls internal functions, that can also be used directly (check the documentation of the target control).