Um eine Vorschau - vor dem Versenden/Einreichen - anzuzeigen, muss eine separate Seite / ein eigener Schritt eingefügt werden.

Die Vorschau kann über ein Element mit dem Typ "Anzeigetext" eingefügt werden. Dazu wird der Hilfetext als "Formel" verwendet. Dieser Script wird dort eingefügt.

Script

getFormPreview(node("/"))

Tipp

Mit der direkten Auswahl eines Nodes (Elementes) können individuelle Vorschau-Seiten / Vorschau Ansichten erstellt werden. 

Eine Seite hat die ID "Page_Personendaten" > getFormPreview(node("Page_Personendaten")) > so werden nur die Elemente der Seite "Personendaten" bei diesem Aufruf ausgegebnen.

Kann auf Gruppen, Tabellen oder einzelnen Elementen angewendet werden. 

Die Ausgabe ist jedoch immer eine HTML-Tabelle.

Beispiel

ISDS-Checkliste im Kanton Bern.

XML - Code als Beispiel die 1. Gruppe

Beispiel
   <group name="g_formPreview_1">
    <config css="printOnly" notSerializable="false">
     <title/>
     <description/>
     <type>n</type>
     <visibility useSyntax="true"/>
     <collapsible>false</collapsible>
     <collapsed/>
     <layout>sequence</layout>
     <printing>
      <pageBreakMode>after</pageBreakMode>
     </printing>
    </config>
    <element name="fp_t1">
     <config>
      <title>
       <content lang="de"><![CDATA[<h2>1. Allgemeine Angaben</h2>]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility visibleAndSerializable="false"/>
      <properties>
       <property>
        <key>forcePreviewOutput</key>
        <value>true</value>
       </property>
      </properties>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_author">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_author")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(g_author)</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_gauthor">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA[getFormPreview(node("g_author"))]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_VerantwortlichePerson">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_verantwortlichePerson")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(g_verantwortlichePerson)</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_gVerantwortlichePerson">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA[getFormPreview(node("g_verantwortlichePerson"))]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_1.3">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_1.3")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(formPreview_gService) && nodeValue(c_basisdienst) != null</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_gService">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA[getFormPreview(node("g_basisdienst"))]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_1.4">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_1.4")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(g_applikationen) && nodeValue(serviceID) != NULL</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_gApplikationen">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA[getFormPreview(node("g_applikationen"))]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_1.5">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_1.5")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(node("g_1.5.Anwendungsfall"))</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_gAnwendungsfall">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA["<div id='rootPrevievCustom5555555'><table class='jax-preview-table jax-group jax-preview-header-exclude'><tbody><tr><th name='useCaseDescription'>" + nodeLabel("useCaseDescription") + "</th><td>" + displayValue("useCaseDescription") + "</td></tr></tbody></table></div>"]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_1.6">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_1.67")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(node("g_1.6.weitereAngaben"))</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_gWeitereAngaben">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA[getFormPreview(node("g_1.6.weitereAngaben"))]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_g16_workaround">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA["<div id='rootPrevievCustom777777'><table cellspacing='0' id='PREV_IDg_1.6.weitereAngaben' class='jax-preview-table jax-group jax-preview-header-excluded'><tbody><tr><th name='deploymentDate' class='jax-th-first'>" + nodeLabel("deploymentDate") + "</th><td>" + formattedNodeValue("deploymentDate") + "</td></tr></tbody></table></div>"]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>nodeValue("deploymentDate") == NULL</expression>
      </visibility>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_g16b_workaround">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA["<div id='rootPrevievCustom777777bbb'><table cellspacing='0' id='PREV_IDg_1.6b.weitereAngaben' class='jax-preview-table jax-group jax-preview-header-excluded'><tbody><tr><th name='remarks' class='jax-th-first'>" + nodeLabel("remarks") + "</th><td>" + formattedNodeValue("remarks") + "</td></tr></tbody></table></div>"]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>nodeValue("remarks") == NULL</expression>
      </visibility>
     </config>
     <value>
      <simple/>
     </value>
    </element>
   </group>
   <group name="g_formPreview_2">
    <config css="printOnly" notSerializable="false">
     <title/>
     <description/>
     <type>n</type>
     <visibility useSyntax="true"/>
     <collapsible>false</collapsible>
     <collapsed/>
     <layout>sequence</layout>
     <printing>
      <pageBreakMode>after</pageBreakMode>
     </printing>
    </config>
    <element name="fp_t2">
     <config>
      <title>
       <content lang="de"><![CDATA[<h2>2. Schutzbedarf der bearbeiteten Informationen und Personendaten</h2>]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <properties>
       <property>
        <key>forcePreviewOutput</key>
        <value>true</value>
       </property>
      </properties>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_2.1">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_2.1")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(node("g_2.1"))</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_g21">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA[getFormPreview(node("g_2.1"))]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_g21_workaround">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA["<div id='rootPrevievCustom999999'><table cellspacing='0' id='PREV_IDg_2.1' class='jax-preview-table jax-group jax-preview-header-excluded'><tbody><tr><th name='c_personendatenSchutzbedarf' class='jax-th-first'>" + nodeLabel("c_personendatenSchutzbedarf") + "</th><td>" + formattedNodeValue("c_personendatenSchutzbedarf") + "</td></tr></tbody></table></div>"]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>(nodeValue("c_personendatenSchutzbedarf") == "0")</expression>
      </visibility>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_22">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_2.2")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(node("g_2.2"))</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_g22">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA[getFormPreview(node("g_2.2"))]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_23">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_2.3")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(node("g_2.3"))</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_g23">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA[getFormPreview(node("g_2.3"))]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_g23_workaround">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA["<div id='rootPrevievCustom888888'><table cellspacing='0' id='PREV_IDg_2.3' class='jax-preview-table jax-group jax-preview-header-excluded'><tbody><tr><th name='c_geheimhaltungspflichten' class='jax-th-first'>" + nodeLabel("c_geheimhaltungspflichten") + "</th><td>" + formattedNodeValue("c_geheimhaltungspflichten") + "</td></tr></tbody></table></div>"]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>(nodeValue("c_geheimhaltungspflichten") == "0") || (nodeValue("besondereGeheimhaltungspflicht") == NULL)</expression>
      </visibility>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="pt_2.4">
     <config css="printOnly">
      <title>
       <content isFormula="true" lang="de"><![CDATA[nodeLabel("t_2.4")]]></content>
      </title>
      <description/>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>isVisible(node("g_2.4"))</expression>
      </visibility>
      <layoutProps colSpan="4"/>
     </config>
     <value>
      <simple/>
     </value>
    </element>
    <element name="formPreview_g24">
     <config css="printOnly" notSerializable="true">
      <title>
       <content isFormula="true" lang="de"><![CDATA["<div id='rootPrevievCustom666666'><table class='jax-preview-table jax-group jax-preview-header-exclude'><tbody><tr><th class='jax-th-first' name='c_ahvNumberProcessing'>" + nodeLabel("c_ahvNumberProcessing") + "</th><td>" + displayValue("c_ahvNumberProcessing") + "</td></tr></tbody></table></div>"]]></content>
      </title>
      <description>
       <content evaluateFormulaOnlyOnVisualize="true" lang="de"/>
      </description>
      <type>
       <displayText/>
      </type>
      <visibility useSyntax="true">
       <expression>nodeValue("c_ahvNumberProcessing") != NULL</expression>
      </visibility>
     </config>
     <value>
      <simple/>
     </value>
    </element>
   </group>




Hilfetext

Fragetyp (Element)


Verwandtes Thema

Element ausblenden aus der Vorschau


  • Keine Stichwörter