Field

From Zymonic

Fields are probably the most used object in Zymonic - as such, there are several classes of field. This page explains those classes.

Classes[edit]

SubFilter[edit]

These allow you to place a filter within a form.

  <Field sequence="10" class="SubFilter">
    <ZName>ts_f_purchasehistory</ZName>
    <DisplayName>Purchase History</DisplayName>
    <StandardField>false</StandardField>
    <ClassOptions>
      <Filter>
        <ZName>ts_fil_purchaserecords</ZName>
      </Filter>
      <FieldMap>
        <ZName>ts_fm_purchasehistory</ZName>
      </FieldMap>
    </ClassOptions>
    <FieldGroup>
      <ZName>ts_fg_purchasehistory</ZName>
    </FieldGroup>
  </Field>

LinkedField[edit]

These allow you to extract data from selected fields in another table by a common field.

  <Field sequence="100" class="LinkedField">
    <ZName>ts_f_customerphone_linked</ZName>
    <SQLFieldType>varchar</SQLFieldType>
    <Base>ts_f_customerid</Base>
    <ReadOnly>true</ReadOnly>
    <FieldGroup>
      <ZName>ts_fg_customeraccount</ZName>
    </FieldGroup>
    <LinkedField>
      <Filter>
        <ZName>ts_fil_customeraccounts</ZName>
      </Filter>
      <SourceField>
        <Field>
          <ZName>ts_f_customerid</ZName>
        </Field>
      </SourceField>
      <DisplayField>
        <Field>
          <ZName>ts_f_customerphone</ZName>
        </Field>
      </DisplayField>
    </LinkedField>
  </Field>

CurrentState[edit]

Displays the current state of a record.

  <Field sequence="100" class="CurrentState">
    <ZName>ts_f_currentstate</ZName>
    <DisplayName>Current State </DisplayName>
    <ClassOptions>
      <HideState>ts_s_createnew</HideState>
    </ClassOptions>
  </Field>

MultipleChoice[edit]

Displays a multiple choice list box. The current state field class uses this, but defines it in Zymonic core to allow for easy usage.

MultipleChoiceLinkedField[edit]

Displays a list, similar to a linked field, however you can select more than one value.

SubForm[edit]

Displays a form within a form. Very useful when wanting to make an undefined number of records on one page that are editable without opening a separate process.

HTML[edit]

Displays a large text box with advanced formatting options - can also type the HTML source code directly. Useful for large lumps of text, however restrictions are set and characters have to be 'allowed' to use them, defined in the XML.

Choice[edit]

Displays a drop down menu to select a single value from.

DateTime[edit]

File[edit]

Glob[edit]

Email[edit]

Barcode[edit]

DecryptorEncrypted[edit]

Stylesheet[edit]

PAN[edit]

FileChooser[edit]

FileUpload[edit]

SystemOptionField[edit]