2017 October Release

FormatPermanent link for this heading

FormatValuePermanent link for this heading

The customization point FormatValue allows formatting values. For the defined object class, the action COOSYSTEM@1.1:ObjectPrepareCommit will be overwritten implicitly.

Syntax

customize FormatValue<objectclass, trigger> {
  build = expression {...}
}


Description:

  • objectclass
    Defines the object class of the object that contains the value that should be formatted.
  • trigger
    Defines the property that should be formatted.
  • build
    Defines a Fabasoft app.ducx Expression that formats the value.

Example

customize FormatValue<Project, objname> {
  build = expression {
    this.boshortform + " " + Format(this.recnumber, "0000")[4] + " - "
  }
}


Note:
In the Fabasoft Folio Domain the customization gets defined in the administration configuration.

NameBuildPermanent link for this heading

The customization point NameBuild is used to format values. This customization point cannot be used when the customization point FormatValue is used in a base class.

Syntax

customize NameBuild<cfgobjclass> {
  properties = {...}
  build = expression {...}
  format = stringvalue
  namefixed = booleanvalue
}


Description:

  • cfgobjclass
    The customization applies to objects of the defined object class.
  • properties
    The properties, to which the customization applies and used in the build expression.
  • build
    Defines a Fabasoft app.ducx Expression that formats the value.
  • format
    Defines a string object with a multilingual name.
  • namefixed
    Defines if the value is editable.

Example

customize NameBuild <Account> {
  properties = {
    accountnumber,
    usersurname
  }
  build = expression {
    return cooobj.accountnumber + " / " + cooobj.usersurname;
  }
  namefixed = true;
}


Note:
To use this customization point with Fabasoft domains until 2012 Summer Release, it is necessary to implement FSCCONFIG@1.1001:EvaluateGenericNameBuild for the class defined in cfgobjclass with FSCCONFIG@1.1001:MethodGenericNameBuild.