TreeINFO-For-M365 documentation
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Properties

    configuration: AdvancedTable
    currentPage: number

    Gets or sets current page. If set to -1, the last page is displayed

    description: string

    Gets or sets default field description.

    hidden: boolean

    Gets or sets a value that specifies whether the field is hidden on form.

    internalName: string

    Gets the internal name that is used for the field.

    originalValue: any

    Gets original field value

    readOnly: boolean

    Gets or sets a value that specifies whether the value of the field is read-only.

    required: boolean

    Gets or sets a value that specifies whether the field requires a value.

    rows: AdvancedTableRow[]

    Gets all table rows

    selectedRows: AdvancedTableRow[]

    Gets selected rows

    title: string

    Gets or sets default field title.

    typeAsString: FieldType

    Gets the type of the field.

    value: any

    Gets or sets the value of the field. Optionally, the setValue method can be used for advanced setting value.

    const { form } tisa;
    const { myField1, myField2 } tisa.form;
    if (form.isNewForm){
    // copies the value of field1 when changed to field2
    myField1.onChange((value)=>{
    myField2.value = value;
    });
    }

    Methods

    • Sets a field value and waits for the value to be evaluated or rendered in the UI. Also allows disabling the trigger onChange event.

      Parameters

      • value: any

        the value you want to set in the field

      • OptionaldisableTriggerChange: boolean

      Returns Promise<any>

      const { form } tisa;
      const { myField1, myField2 } tisa.form;
      if (form.isNewForm){
      // sets a field value and waits for the value to be evaluated or rendered in the UI
      await myField1.setValue(1);
      await myField2.setValue(2);
      }

    Events

    • The event is triggered whenever the field value changes. The event can be suppressed by calling the setValue method with disableTriggerOnChange set true.

      Parameters

      Returns void

      const { form } tisa;
      const { myField1, myField2 } tisa.form;
      if (form.isNewForm){
      // copies the value of field1 when changed to field2
      myField1.onChange((value)=>{
      myField2.value = value;
      });
      }