Inhalt anzeigen / ausblenden

    Global Configurations

    In the Global Configurations all information and configurations are stored divided into groups, which are used in several templates. The advantage is that the texts and configurations only have to be changed in one place. If, for example, the configuration for the address providers were built into each layout template, each layout template would have to be edited individually when an adjustment was made.

    References

    The information is located in data sets (data tag), which in turn are located in groups (group tag). The content in a data set is linked in a configuration according to the following pattern: {[GroupName.DataName]}.

    Example 1 – Text

    • Example 1 – Image
    • Example 1 – XML behind

    The globally stored record "Config.Depth" contains the value 5:

    Global Configurations – Depth

    The globally stored record "Config.Depth" contains the value 5:

    <KeywordMap>
      <group name="Config">
        <data name="Depth">
          <value><![CDATA[5]]></value>
        </data>
        [...]
      </group>
      [...]
    </KeywordMap>
    

    The record can now be linked in all XML configurations of the document functions. For example, in the XML configuration of the document function Scripts:

    <?xml version="1.0" encoding="utf-8"?>
    <Configuration>
      <Script engine="XSL" version="2" depth="{[Config.Depth]}">
        
        <!-- Insert scripts here -->
        
      </Script>
    </Configuration>
    

    {[Config.Depth]} is now replaced with 5 each time. The script results are calculated 5 times. If this value needs to be adjusted, this can be done once in the Global Configurations. Consequently, this change will be automatically adjusted in all templates that contain {[Config.Depth]}.

    Example 2 – Whole script

    • Example 2 – Image
    • Example 2 – XML behind

    The globally stored record "Salutation" contains a script:

    Global Configurations – Salutation

    The globally stored record "Salutation" contains a script:

    <KeywordMap>
      <group name="Scripts">
        <data name="Salutation">
          <value><![CDATA[
            
            <CustomDataNode id="Salutation">
              <Line>
                <Element id="Contact.Recipient.Selected.Person.Salutation" />
              </Line>
              <Line>
                <Element id="Contact.Recipient.Selected.AdditionalPerson.Salutation" />
              </Line>
            </CustomDataNode>
            
          ]]></value>
        </data>
        [...]
      </group>
      [...]
    </KeywordMap>
    

    The "Salutation" script is initially used in all customer solutions as the default script for the salutation in a letter. Therefore, it is linked in correspondence templates in the "Scripts" document function:

    <?xml version="1.0" encoding="utf-8"?>
    <Configuration>
      <Script engine="XSL" version="2" depth="{[Config.Depth]}">
        
        {[Scripts.Salutation]}
    
        <!-- different references -->
        {[Scripts.Greeting]}
        
        {[Scripts.Signers]}
        {[Scripts.EnclosuresBox]}
        
      </Script>
    </Configuration>
    

    {[Scripts.Salutation]} is now replaced with the corresponding content from the Global Configurations. The content is a script that attracts two Contact elements. So in the document finally the salutation is inserted, which was selected by the user in the recipient dialog.

    Example 3 – Ganzes Skript mit Übersetzungen

    • Example 3 – Image
    • Example 3 – XML behind

    The globally stored record "Enclosures" contains a script with a translation:

    Global Configurations – Enclosures

    The globally stored record "Enclosures" contains a script with a translation:

    <KeywordMap>
      <group name="Scripts">
        <data name="Enclosures">
          <value><![CDATA[
            
            <CustomDataNode id="Enclosures">
              <Condition when="DocParam.Enclosures">
                <Line>
                  <Text>{D[Texts.Enclosures]}:</Text>
                </Line>
                <Line>
                  <Element id="DocParam.Enclosures" linePrefix="&#8211;&#009;" />
                </Line>
              </Condition>
            </CustomDataNode>
            
          ]]></value>
        </data>
        [...]
      </group>
      [...]
    </KeywordMap>
    

    The "Enclosures" script is mainly used in letters, as it creates a list of all enclosures entered in the document parameter. That is why it is linked here in letter templates in the document function "Scripts":

    <?xml version="1.0" encoding="utf-8"?>
    <Configuration>
      <Script engine="XSL" version="2" depth="{[Config.Depth]}">
        
        {[Scripts.Enclosures]}
        
      </Script>
    </Configuration>
    

    {[Scripts.Enclosures]} is now replaced with the corresponding content from the Global Configurations. The content is a script with a translation and the reference to a document parameter field. The translation is fetched from the Global Translations using {D[Texts.Enclosures]}.

    Example 4 – Script with translation

    • Example 4 – Image
    • Example 4 – XML behind

    The globally stored "Translations" dataset contains several scripts with text content:

    Global Configurations – Translations

    The globally stored "Translations" record contains several scripts with text content:

    <KeywordMap>
      
      <group name="Scripts">
        <data name="Translations">
          <value><![CDATA[
            <CustomDataNode id="Texts.Draft">
              <Text>{D[Texts.Draft]}</Text>
            </CustomDataNode>
            <CustomDataNode id="Texts.Date">
              <Text>{D[Texts.Date]}</Text>
            </CustomDataNode>
            <CustomDataNode id="Texts.Enclosures">
              <Text>{D[Texts.Enclosures]}</Text>
            </CustomDataNode>
            <CustomDataNode id="Texts.Page">
              <Text>{D[Texts.Page]}</Text>
            </CustomDataNode>
          ]]></value>
        </data>
        [...]
      </group>
      [...]
    </KeywordMap>
    

    The scripts (e.g. "Texts.Draft") contain translations that can serve in all letters. Therefore the record is linked here in a layout template in the document function "Scripts":

    <?xml version="1.0" encoding="utf-8"?>
    <Configuration>
      <Script engine="XSL" version="2" depth="{[Config.Depth]}">
        
        <!-- Translations -->
        {[Scripts.Translations]}
        
      </Script>
    </Configuration>
    

    {[Scripts.Translations]} will now be replaced with the corresponding content from the Global Configurations. In all templates based on this layout template, these translations can be inserted into the template as a text field. If a word needs to be adjusted, this can be done once in the Global Translations. Afterwards, the change will be applied directly in every template that has this translation linked.

    Back to top | Deutsch | English PrimeSoft AG   I   Bahnhofstrasse 4   I   8360 Eschlikon   I   Switzerland   I   Privacy   I   Legal notice