2022 April Release

Customization Point FSCCONFIG@1.1001:CPStateDisplay Permanent link for this heading

This customization point allows defining visualizations for objects depending on the object state.

Example:
customize CPStateDisplay<ContentObject> {
  cfgstatedisplayexpression = expression {
    Content $cont;
    object $obj = this.object;
    $obj.DirectAttributeGet(#content, &$cont);
    if (null != $cont) {
      EncryptionKind $contencryption = $cont.contencryption;
      if (null != $contencryption) {
        string $encryptstr=#EncryptionKind.typeenumvalues[typeenumval ==
          :>$contencryption].GetAttributeString(cootx, #typeenumtext);
        ObjectStateDisplay $encdisplaystate = coort.CreateAggregate(#ObjectStateDisplay);
        if ($encdisplaystate) {
          $encdisplaystate.objectstatedisplaysymbol = #UISymbolEncrypt;
          $encdisplaystate.objectstatedisplaydescription=encryptstr;
        }
        return $encdisplaystate;
      }
    }
  }
}

any FSCCONFIG@1.1001:CPStateDisplay(
  key ObjectClass cfgobjclass,
  out retval any cfgstatedisplayexpression,
  Object object,
  Object parent,
  AttributeObjectDef view,
  boolean important,
  Object context)

Name

Description

cfgobjclass

applies to objects of the defined object class

cfgstatedisplayexpression

defines an expression to get the ObjectStateDisplay

object

parent

view

important

context

Additional Information