Get the value from the given control.
Reference to a HTML element or the GUID of an element.
Optional
attr: BrowserGetValueAttrAdditional information for target control, depends on target control.
// Get the value via HTML element
Browser.getValue(ix.api.dom.getHtml("<ELEMENT-GUID>"));
// Get the value via the GUID of an element
Browser.getValue("<ELEMENT-GUID>");
Set the value for the given control.
Reference to a HTML element or an Intrexx control 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.api.dom.getHtml("<ELEMENT-GUID>"), "Hello World!");
Multiselect
// strModus: append | replace
Browser.setValue(ix.api.dom.getHtml("<ELEMENT-GUID>"), ["GUID1", "GUID2"], {
bAsync: false,
strModus: "append"
});
Integer- | Currency- | Float
Browser.setValue(ix.api.dom.getHtml("<ELEMENT-GUID>"), 1.5);
Operator Filter
Browser.setValue(ix.api.dom.getHtml("<ELEMENT-GUID>"), {
datafield: "datafieldGUID",
operator: "contains",
search: "test"
});
Provides a set of cross-control methods as a convenient wrapper.
These methods utilize the internal functions of the target controls, which can also be directly accessed (refer to the documentation of the respective target control).
Remarks
This functionality is maintained for backwards-compatibility and may not be supported in future versions. It is recommended to use the corresponding functionality of the target control itself.