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.

Hierarchy

  • Browser

Methods

Methods

  • Get the value from the given control.

    Parameters

    • element: string | HTMLElement

      Reference to a HTML element or the GUID of an element.

    • Optional attr: BrowserGetValueAttr

      Additional information for target control, depends on target control.

    Returns string | boolean

    Example

    // 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.

    Parameters

    • control: IxControl

      Reference to a HTML element or an Intrexx control object, whose value is to be set.

    • value: string | number | boolean | object | Date

      Control value to set.

    • Optional attr: BrowserGetValueAttr

      Additional information for target control, depends on target control.

    • Optional fireEvent: true

      Trigger the onchange event (default: true).

    Returns boolean

    Example

    General

    Browser.setValue(ix.api.dom.getHtml("<ELEMENT-GUID>"), "Hello World!");
    

    Example

    Multiselect

    // strModus: append | replace
    Browser.setValue(ix.api.dom.getHtml("<ELEMENT-GUID>"), ["GUID1", "GUID2"], {
    bAsync: false,
    strModus: "append"
    });

    Example

    Integer- | Currency- | Float

    Browser.setValue(ix.api.dom.getHtml("<ELEMENT-GUID>"), 1.5);
    

    Example

    Operator Filter

    Browser.setValue(ix.api.dom.getHtml("<ELEMENT-GUID>"), {
    datafield: "datafieldGUID",
    operator: "contains",
    search: "test"
    });