ConditionalFormat

From Zymonic
Revision as of 13:13, 10 October 2018 by Jbree (talk | contribs) (Created page and added a class)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A way of applying formatting to an object, only conditional if a condition is added to it. This page explains several classes than can be applied to it.

Classes

OpenFOP

Opens a filter or process when a button that appears by the field is clicked.

Filter

  <ConditionalFormat class="OpenFOP">
    <ZName>ts_cf_purchasecustomerfullnamelookuplink</ZName>
    <DisplayName>Show Orders</DisplayName>
    <ClassOptions>
      <Filter>
        <ZName>ts_fil_purchasehistory</ZName>
      </Filter>
      <ValueDestinationFieldZName>ts_f_customerfullname</ValueDestinationFieldZName>
      <ParameterMap>
        <DestinationParameter>search</DestinationParameter>
        <StaticValue>Show Results</StaticValue>
      </ParameterMap>
      <ParameterMap>
        <DestinationParameter>search_field_button</DestinationParameter>
        <StaticValue>Hide Search Fields</StaticValue>
        </ParameterMap>
      <ParameterMap>
        <DestinationParameter>no_header_options</DestinationParameter>
        <StaticValue>true</StaticValue>
      </ParameterMap>
    </ClassOptions>
  </ConditionalFilter>

Process

  <ConditionalFormat class="OpenFOP">
    <ZName>ts_cf_customeraccount</ZName>
    <DisplayName>Show Customer Account</DisplayName>
    <ClassOptions>
      <Process>
        <ZName>ts_pro_customeraccounts</ZName>
      </Process>
      <FieldMap>
        <ZName>ts_fm_customeraccount</ZName>
      </FieldMap>
      <ParameterMap>
        <DestinationParameter>process_id</DestinationParameter>
        <SourceField>
          <Field>
            <ZName>ts_f_customeraccountppid</ZName>
          </Field>
        </SourceField>
      </ParameterMap>
    </ClassOptions>
  </ConditionalFormat>