Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Error "Function '...' ... unknown" shows up when used in ::calculate event

Avatar

Former Community Member

Hi guys,

i have a user-defined FormCalc function which is propagated to all fields in the form.

It does the calculation for the value of some price-field in my form, quite a simple job / code.

Whenever that function is called in, e.g., an "enter", "exit" oder "change" event, everything

works like expected.

Though, when I try to use the function in a "calculate" event, it says "Function 'blabla' in

line x, column z is unknown". (Don't know the error message in the english version. The

Message was translated from german.)

Has anybody an idea about this issue?

Best regards

Daniel

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Thanks, this helped!

Surprisingly , propagating the defined function to other fields, subforms etc. using ref="$form" listen="refAndDescendents" is not helpful when needed in a calculate event (as well as in other process events, I guess),

but instead...

Simply defining the function in the calculate event (see below) makes it available to all other fields:

View solution in original post

4 Replies

Avatar

Level 10

Daniel,

lad mal einen Screenshot der Fehlermeldung hoch oder schreib die deutsche Fehlermeldung hier hin.

Und bitte auch das FormCalc-Skript mit angeben...

Avatar

Former Community Member

Hallo radzmar,

ich habe das Dokument jetzt doch in einer englischsprachigen Version geöffnet.

Bis Montag steht mir wiederum keine deutsche zur Verfügung, deshalb jetzt

der Fehler in englisch:

Danke schonmal für Dein Interesse!

Nachfolgend einfach mal der komplette Code aus dem Dokument. Übrigens sind

die Funktionen gerade mal in einem Test-Stadium und alles noch sehr unausgereift,

das bitte berücksichtigen, denn es ging erstmal um das Testen grundsätzlich

möglicher Prinzipien, die ich in so einem Formular anwenden könnte. (Anfänger

in LC Designer und FormCalc)


<?xml version="1.0" encoding="UTF-8"?>

<?xfa generator="AdobeLiveCycleDesignerES_V9.0.0.2.20101008.1.734229" APIVersion="3.1.20001.0"?>

<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" timeStamp="2011-11-05T21:02:53Z" uuid="58f135de-0049-43e2-bd40-1e9804680ee2">

<template xmlns="http://www.xfa.org/schema/xfa-template/3.0/">

   <?formServer defaultPDFRenderFormat acrobat9.1dynamic?>

   <?formServer allowRenderCaching 0?>

   <?formServer formModel both?>

   <subform name="topmostSubform" layout="tb" locale="de_DE">

      <pageSet>

         <pageArea id="PageArea1" name="PageArea1">

            <contentArea name="ContentArea1" x="0pt" y="0pt" w="595.276pt" h="841.89pt"/>

            <medium short="595.276pt" long="841.89pt" stock="custom"/>

            <?templateDesigner expand 1?></pageArea>

         <?templateDesigner expand 1?></pageSet>

      <desc>

         <text name="version">9.0.0.2.20101008.1.734229</text>

      </desc>

      <subform name="Page1" x="0pt" y="0pt" w="595.276pt" h="841.89pt">

         <breakBefore targetType="pageArea" target="PageArea1"/>

         <bind match="none"/>

         <draw name="R3" x="263.622pt" y="122.165pt" w="62.362pt" h="28.346pt">

            <value>

               <rectangle>

                  <edge presence="hidden"/>

                  <fill>

                     <color value="240,240,240"/>

                  </fill>

               </rectangle>

            </value>

         </draw>

         <draw name="R5" x="337.323pt" y="122.165pt" w="62.362pt" h="28.346pt">

            <value>

               <rectangle>

                  <edge presence="hidden"/>

                  <fill>

                     <color value="240,240,240"/>

                  </fill>

                  <corner radius="5.08mm"/>

               </rectangle>

            </value>

         </draw>

         <draw name="R7" x="411.023pt" y="122.165pt" w="62.362pt" h="28.346pt">

            <value>

               <rectangle>

                  <edge presence="hidden"/>

                  <fill>

                     <color value="240,240,240"/>

                  </fill>

               </rectangle>

            </value>

         </draw>

         <draw name="T55" x="13.995mm" y="43.383mm" w="13.226mm" h="7.761mm">

            <value>

               <text>Tinte</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="papier[4]"/>

            </traversal>

         </draw>

         <draw name="T61" x="3.661in" y="1.187in" w="0.677in" minH="0.161in">

            <value>

               <text>Enthaltene</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T62[0]"/>

            </traversal>

         </draw>

         <draw name="T62" x="3.661in" y="1.381in" w="0.762in" minH="0.161in">

            <value>

               <text>Menge in ml</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T63[0]"/>

            </traversal>

         </draw>

         <draw name="T63" x="4.685in" y="1.187in" w="0.346in" minH="0.161in">

            <value>

               <text>Preis</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T64[0]"/>

            </traversal>

         </draw>

         <draw name="T64" x="4.685in" y="1.381in" w="0.605in" minH="0.161in">

            <value>

               <text>pro Farbe</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T65[0]"/>

            </traversal>

         </draw>

         <draw name="T65" x="5.708in" y="1.187in" w="0.768in" minH="0.161in">

            <value>

               <text>Kosten je ml</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="papier[3]"/>

            </traversal>

         </draw>

         <traversal>

            <traverse operation="first" ref="T53[0]"/>

         </traversal>

         <draw name="T68" x="171.018mm" y="83.34mm" w="0.781in" minH="0.161in">

            <value>

               <text>Kosten je m²</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

         </draw>

         <draw name="T66" x="145.008mm" y="83.34mm" w="0.911in" minH="0.161in">

            <value>

               <text>Preis pro Rolle</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

         </draw>

         <draw name="T67" x="145.008mm" y="88.268mm" w="0.807in" minH="0.161in">

            <value>

               <text>(inkl. MwSt.)</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T68[0]"/>

            </traversal>

         </draw>

         <draw name="T59" x="119.024mm" y="83.34mm" w="24.141mm" h="7.761mm">

            <value>

               <text>Rollenlänge</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T60[0]"/>

            </traversal>

         </draw>

         <draw name="T60" x="119.024mm" y="88.268mm" w="23.081mm" h="7.761mm">

            <value>

               <text>in Meter</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T67[0]"/>

            </traversal>

         </draw>

         <draw name="T58" x="93.014mm" y="88.268mm" w="18.661mm" h="7.761mm">

            <value>

               <text>in Meter</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T59[0]"/>

            </traversal>

         </draw>

         <draw name="T57" x="93.014mm" y="83.34mm" w="24.491mm" h="7.761mm">

            <value>

               <text>Rollenbreite</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T58[0]"/>

            </traversal>

         </draw>

         <draw name="T54" x="14.02mm" y="88.268mm" w="32.305mm" h="6.985mm">

            <value>

               <text>der Papiersorte</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T55[0]"/>

            </traversal>

         </draw>

         <draw name="T53" x="14.02mm" y="83.34mm" w="26.225mm" h="6.985mm">

            <value>

               <text>Bezeichnung</text>

            </value>

            <ui>

               <textEdit/>

            </ui>

            <para vAlign="middle"/>

            <font typeface="Unit-Medium" size="8pt">

               <fill>

                  <color value="34,34,32"/>

               </fill>

            </font>

            <traversal>

               <traverse ref="T54[0]"/>

            </traversal>

         </draw>

         <subform w="193.092mm" h="106.334mm" name="papier">

            <field name="papiersorte" y="96.333mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="96.333mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="96.334mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="96.334mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="96.334mm" x="171mm" w="62.362pt" h="28.346pt">

               <value>

                  <decimal/>

               </value>

               <calculate override="warning">

                  <message>

                     <text name="override"/>

                  </message>

                  <script>PapierkostenUpdate($)</script>

               </calculate>

               <format>

                  <picture>num{$ zzzz9.99}</picture>

               </format>

               <event activity="enter" name="event__enter">

                  <script>//$.rawValue = PapierkostenUpdate($)</script>

               </event>

               <bind match="none"/>

            </field>

            <?templateDesigner expand 1?></subform>

         <subform y="12mm" w="193.092mm" h="106.334mm" name="papier">

            <field name="papiersorte" y="96.333mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="96.333mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="96.334mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="96.334mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="96.334mm" x="171mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <?templateDesigner expand 1?></subform>

         <subform y="0mm" w="193.092mm" h="202.335mm" name="papier">

            <field name="papiersorte" y="120.333mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="120.333mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="120.334mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="120.334mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="120.334mm" x="171mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

               <traversal>

                  <traverse ref="papier[9].papiersorte[0]"/>

               </traversal>

            </field>

            <?templateDesigner expand 1?></subform>

         <subform y="36mm" w="193.092mm" h="106.334mm" name="papier">

            <field name="papiersorte" y="96.333mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="96.333mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="96.334mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="96.334mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="96.334mm" x="171mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <traversal>

               <traverse operation="first" ref="papiersorte[0]"/>

            </traversal>

            <?templateDesigner expand 1?></subform>

         <subform y="48mm" w="193.092mm" h="130.335mm" name="papier">

            <field name="papiersorte" y="96.333mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="96.333mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="96.334mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="96.334mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="96.334mm" x="171mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <traversal>

               <traverse operation="first" ref="papiersorte[0]"/>

            </traversal>

            <?templateDesigner expand 1?></subform>

         <subform y="60mm" w="193.092mm" h="106.334mm" name="papier">

            <field name="papiersorte" y="96.333mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="96.333mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="96.334mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="96.334mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="96.334mm" x="171mm" w="62.362pt" h="28.346pt">

               <value>

                  <decimal/>

               </value>

               <calculate override="warning">

                  <message>

                     <text name="override">Vorsicht! Automatisch berechneter Wert wird hiermit überschrieben.</text>

                  </message>

               </calculate>

               <format>

                  <picture>num{$ zzzz9.99}</picture>

               </format>

            </field>

            <?templateDesigner expand 1?></subform>

         <subform y="72.001mm" w="193.092mm" h="106.334mm" name="papier">

            <field name="papiersorte" y="96.333mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="96.333mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="96.334mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="96.334mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="96.334mm" x="171mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <?templateDesigner expand 1?></subform>

         <subform y="84.001mm" w="193.092mm" h="106.334mm" name="papier">

            <field name="papiersorte" y="96.333mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="96.333mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="96.334mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="96.334mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="96.334mm" x="171mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <?templateDesigner expand 1?></subform>

         <subform y="96.001mm" w="193.092mm" h="106.334mm" name="papier">

            <field name="papiersorte" y="96.333mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="96.333mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="96.334mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="96.334mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="96.334mm" x="171mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <?templateDesigner expand 1?></subform>

         <subform w="193.092mm" h="215.075mm" name="papier">

            <field name="papiersorte" y="204.554mm" x="14mm" w="212.598pt" h="28.346pt"/>

            <field name="papierbreite" y="204.554mm" x="93mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierlaenge" y="204.555mm" x="119mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>null{}|num{zzzz9.zzz}</picture>

               </ui>

               <format>

                  <picture>num{zzzz9.99}</picture>

               </format>

            </field>

            <field name="papierrollenpreis" y="204.555mm" x="145mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <field name="papierkosten" y="204.555mm" x="171mm" w="62.362pt" h="28.346pt">

               <ui>

                  <numericEdit/>

                  <picture>num{zzzz9.zz}</picture>

               </ui>

               <format>

                  <picture>num{$zzz9.99}</picture>

               </format>

            </field>

            <traversal>

               <traverse operation="first" ref="T53[0]"/>

            </traversal>

            <?templateDesigner expand 1?></subform>

         <event activity="enter" name="event__enter" ref="$form" listen="refAndDescendents">

            <script>

               func PapierkostenUpdate(sourceField) do

                  var result = 0

                  if (sourceField.parent.papierbreite.rawValue &gt; 0 and sourceField.parent.papierlaenge.rawValue &gt; 0 and sourceField.parent.papierrollenpreis.rawValue &gt; 0) then

                     var squareMeters = sourceField.parent.papierbreite * sourceField.parent.papierlaenge

                     result = sourceField.parent.papierrollenpreis / squareMeters

                  endif

                     result

                  endfunc

</script>

         </event>

         <?templateDesigner expand 1?></subform>

      <proto/>

      <?templateDesigner Hyphenation excludeInitialCap:1, excludeAllCaps:1, wordCharCnt:7, remainCharCnt:3, pushCharCnt:3?>

      <?templateDesigner expand 1?></subform>

   <?templateDesigner SavePDFWithLog 0?>

   <?originalXFAVersion http://www.xfa.org/schema/xfa-template/2.5/ v2.7-scripting:0?>

   <?templateDesigner DefaultRunAt client?>

   <?acrobat JavaScript strictScoping?>

   <?PDFPrintOptions embedViewerPrefs 0?>

   <?PDFPrintOptions embedPrintOnFormOpen 0?>

   <?PDFPrintOptions scalingPrefs 0?>

   <?PDFPrintOptions enforceScalingPrefs 0?>

   <?PDFPrintOptions paperSource 0?>

   <?PDFPrintOptions duplexMode 0?>

   <?templateDesigner DefaultPreviewType interactive?>

   <?templateDesigner DefaultPreviewPagination simplex?>

   <?templateDesigner XDPPreviewFormat 19?>

   <?templateDesigner FormTargetVersion 30?>

   <?templateDesigner Zoom 50?>

   <?templateDesigner FormState default?>

   <?templateDesigner Rulers horizontal:1, vertical:1, guidelines:1, crosshairs:0?>

   <?templateDesigner SaveTaggedPDF 0?>

   <?templateDesigner SavePDFWithEmbeddedFonts 0?></template>

<config xmlns="http://www.xfa.org/schema/xci/3.0/">

   <agent name="designer">

      <!--  [0..n]  -->

      <destination>pdf</destination>

      <pdf>

         <!--  [0..n]  -->

         <fontInfo/>

      </pdf>

   </agent>

   <present>

      <!--  [0..n]  -->

      <pdf>

         <!--  [0..n]  -->

         <fontInfo>

            <embed>0</embed>

         </fontInfo>

         <version>1.7</version>

         <tagged>0</tagged>

         <adobeExtensionLevel>5</adobeExtensionLevel>

      </pdf>

      <cache>

         <macroCache/>

      </cache>

      <xdp>

         <packets>*</packets>

      </xdp>

   </present>

   <psMap>

      <font typeface="Unit-Medium" psName="Unit-Medium" weight="normal" posture="normal"/>

      <font typeface="Unit-Light" psName="Unit-Light" weight="normal" posture="normal"/>

   </psMap>

</config>

<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">

   <xfa:data xfa:dataNode="dataGroup"/>

</xfa:datasets>

<sourceSet xmlns="http://www.xfa.org/schema/xfa-source-set/2.8/">

   <?originalXFAVersion http://www.xfa.org/schema/xfa-source-set/1.0/?></sourceSet>

<connectionSet xmlns="http://www.xfa.org/schema/xfa-connection-set/2.8/">

   <?originalXFAVersion http://www.xfa.org/schema/xfa-connection-set/2.1/?></connectionSet>

<localeSet xmlns="http://www.xfa.org/schema/xfa-locale-set/2.7/">

   <locale name="de_DE" desc="Deutsch (Deutschland)">

      <calendarSymbols name="gregorian">

         <monthNames>

            <month>Januar</month>

            <month>Februar</month>

            <month>März</month>

            <month>April</month>

            <month>Mai</month>

            <month>Juni</month>

            <month>Juli</month>

            <month>August</month>

            <month>September</month>

            <month>Oktober</month>

            <month>November</month>

            <month>Dezember</month>

         </monthNames>

         <monthNames abbr="1">

            <month>Jan</month>

            <month>Feb</month>

            <month>Mrz</month>

            <month>Apr</month>

            <month>Mai</month>

            <month>Jun</month>

            <month>Jul</month>

            <month>Aug</month>

            <month>Sep</month>

            <month>Okt</month>

            <month>Nov</month>

            <month>Dez</month>

         </monthNames>

         <dayNames>

            <day>Sonntag</day>

            <day>Montag</day>

            <day>Dienstag</day>

            <day>Mittwoch</day>

            <day>Donnerstag</day>

            <day>Freitag</day>

            <day>Samstag</day>

         </dayNames>

         <dayNames abbr="1">

            <day>So</day>

            <day>Mo</day>

            <day>Di</day>

            <day>Mi</day>

            <day>Do</day>

            <day>Fr</day>

            <day>Sa</day>

         </dayNames>

         <meridiemNames>

            <meridiem>AM</meridiem>

            <meridiem>PM</meridiem>

         </meridiemNames>

         <eraNames>

            <era>v. Chr.</era>

            <era>n. Chr.</era>

         </eraNames>

      </calendarSymbols>

      <datePatterns>

         <datePattern name="full">EEEE, D. MMMM YYYY</datePattern>

         <datePattern name="long">D. MMMM YYYY</datePattern>

         <datePattern name="med">DD.MM.YYYY</datePattern>

         <datePattern name="short">DD.MM.YY</datePattern>

      </datePatterns>

      <timePatterns>

         <timePattern name="full">H:MM' Uhr 'Z</timePattern>

         <timePattern name="long">HH:MM:SS Z</timePattern>

         <timePattern name="med">HH:MM:SS</timePattern>

         <timePattern name="short">HH:MM</timePattern>

      </timePatterns>

      <dateTimeSymbols>GjMtkHmsSEDFwWahKzZ</dateTimeSymbols>

      <numberPatterns>

         <numberPattern name="numeric">z,zz9.zzz</numberPattern>

         <numberPattern name="currency">z,zz9.99 $</numberPattern>

         <numberPattern name="percent">z,zz9%</numberPattern>

      </numberPatterns>

      <numberSymbols>

         <numberSymbol name="decimal">,</numberSymbol>

         <numberSymbol name="grouping">.</numberSymbol>

         <numberSymbol name="percent">%</numberSymbol>

         <numberSymbol name="minus">-</numberSymbol>

         <numberSymbol name="zero">0</numberSymbol>

      </numberSymbols>

      <currencySymbols>

         <currencySymbol name="symbol">€</currencySymbol>

         <currencySymbol name="isoname">EUR</currencySymbol>

         <currencySymbol name="decimal">,</currencySymbol>

      </currencySymbols>

      <typefaces>

         <typeface name="Myriad Pro"/>

         <typeface name="Minion Pro"/>

         <typeface name="Courier Std"/>

         <typeface name="Adobe Pi Std"/>

         <typeface name="Adobe Hebrew"/>

         <typeface name="Adobe Arabic"/>

         <typeface name="Adobe Thai"/>

         <typeface name="Kozuka Gothic Pro-VI M"/>

         <typeface name="Kozuka Mincho Pro-VI R"/>

         <typeface name="Adobe Ming Std L"/>

         <typeface name="Adobe Song Std L"/>

         <typeface name="Adobe Myungjo Std M"/>

      </typefaces>

   </locale>

   <?originalXFAVersion http://www.xfa.org/schema/xfa-locale-set/2.1/?></localeSet>

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 4.2.1-c043 52.437709, 2010/08/04-17:30:07        ">

   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

      <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" xmlns:xmpGImg="http://ns.adobe.com/xap/1.0/g/img/" rdf:about="">

         <xmp:MetadataDate>2011-11-05T21:02:53Z</xmp:MetadataDate>

         <xmp:CreatorTool>Adobe LiveCycle Designer ES 9.0</xmp:CreatorTool>

         <xmp:Thumbnails>

            <rdf:Alt>

               <rdf:li rdf:parseType="Resource">

                  <xmpGImg:format>JPEG</xmpGImg:format>

                  <xmpGImg:width>256</xmpGImg:width>

                  <xmpGImg:height>256</xmpGImg:height>

                  <xmpGImg:image>/9j/4AAQSkZJRgABAgEASABIAAD/7QAsUGhvdG9zaG9wIDMuMAA4QklNA+0AAAAAABAASAAAAAEA

AQBIAAAAAQAB/+4AE0Fkb2JlAGSAAAAAAQUAArEj/9sAhAAKBwcHBwcKBwcKDgkJCQ4RDAsLDBEU

EBAQEBAUEQ8RERERDxERFxoaGhcRHyEhISEfKy0tLSsyMjIyMjIyMjIyAQsJCQ4MDh8XFx8rIh0i

KzIrKysrMjIyMjIyMjIyMjIyMjIyMjI+Pj4+PjJAQEBAQEBAQEBAQEBAQEBAQEBAQED/wAARCAEA

ALUDAREAAhEBAxEB/8QBogAAAAcBAQEBAQAAAAAAAAAABAUDAgYBAAcICQoLAQACAgMBAQEBAQAA

AAAAAAABAAIDBAUGBwgJCgsQAAIBAwMCBAIGBwMEAgYCcwECAxEEAAUhEjFBUQYTYSJxgRQykaEH

FbFCI8FS0eEzFmLwJHKC8SVDNFOSorJjc8I1RCeTo7M2F1RkdMPS4ggmgwkKGBmElEVGpLRW01Uo

GvLj88TU5PRldYWVpbXF1eX1ZnaGlqa2xtbm9jdHV2d3h5ent8fX5/c4SFhoeIiYqLjI2Oj4KTlJ

WWl5iZmpucnZ6fkqOkpaanqKmqq6ytrq+hEAAgIBAgMFBQQFBgQIAwNtAQACEQMEIRIxQQVRE2Ei

BnGBkTKhsfAUwdHhI0IVUmJy8TMkNEOCFpJTJaJjssIHc9I14kSDF1STCAkKGBkmNkUaJ2R0VTfy

o7PDKCnT4/OElKS0xNTk9GV1hZWltcXV5fVGVmZ2hpamtsbW5vZHV2d3h5ent8fX5/c4SFhoeIiY

qLjI2Oj4OUlZaXmJmam5ydnp+So6SlpqeoqaqrrK2ur6/9oADAMBAAIRAxEAPwCbeU/KflW58q6L

cXGi6fNNNp9rJJJJaws7u0MbMzM0ZJJJ3OKpt/gzyf8A9WHTf+kOD/qnirv8GeT/APqw6b/0hw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WH+U/NnlW28q6Lb3GtafDNDp9rHJHJdQq6OsMasrK0gIII3GKpt/jPyf/1ftN/6

TIP+qmKu/wAZ+T/+r9pv/SZB/wBVMVd/jPyf/wBX7Tf+kyD/AKqYq7/Gfk//AKv2m/8ASZB/1UxV

3+M/J/8A1ftN/wCkyD/qpirv8Z+T/wDq/ab/ANJkH/VTFXf4z8n/APV+03/pMg/6qYq7/Gfk/wD6

v2m/9JkH/VTFXf4z8n/9X7Tf+kyD/qpirv8AGfk//q/ab/0mQf8AVTFXf4z8n/8AV+03/pMg/wCq

mKu/xn5P/wCr9pv/AEmQf9VMVd/jPyf/ANX7Tf8ApMg/6qYq7/Gfk/8A6v2m/wDSZB/1UxV3+M/J

/wD1ftN/6TIP+qmKu/xn5P8A+r9pv/SZB/1UxV3+M/J//V+03/pMg/6qYq7/ABn5P/6v2m/9JkH/

AFUxV3+M/J//AFftN/6TIP8Aqpirv8Z+T/8Aq/ab/wBJkH/VTFXf4z8n/wDV+03/AKTIP+qmKu/x

n5P/AOr9pv8A0mQf9VMVf//Z</xmpGImg:image>

               </rdf:li>

            </rdf:Alt>

         </xmp:Thumbnails>

      </rdf:Description>

      <rdf:Description xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" rdf:about="">

         <xmpMM:InstanceID>uuid:e9911ab5-8c64-465f-b964-850074c8f9c0</xmpMM:InstanceID>

         <xmpMM:DocumentID>uuid:58f135de-0049-43e2-bd40-1e9804680ee2</xmpMM:DocumentID>

         <xmpMM:OriginalDocumentID>xmp.did:2C10D9C0E9FBE011AC8AF26E825699E0</xmpMM:OriginalDocumentID>

         <xmpMM:RenditionClass>proof:pdf</xmpMM:RenditionClass>

         <xmpMM:History>

            <rdf:Seq>

               <rdf:li rdf:parseType="Resource">

                  <stEvt:action>created</stEvt:action>

                  <stEvt:instanceID>xmp.iid:2C10D9C0E9FBE011AC8AF26E825699E0</stEvt:instanceID>

                  <stEvt:when>2011-10-21T15:40:57+02:00</stEvt:when>

                  <stEvt:softwareAgent>Adobe InDesign 6.0</stEvt:softwareAgent>

               </rdf:li>

               <rdf:li rdf:parseType="Resource">

                  <stEvt:action>saved</stEvt:action>

                  <stEvt:instanceID>xmp.iid:2D10D9C0E9FBE011AC8AF26E825699E0</stEvt:instanceID>

                  <stEvt:when>2011-10-21T16:19:46+02:00</stEvt:when>

                  <stEvt:softwareAgent>Adobe InDesign 6.0</stEvt:softwareAgent>

                  <stEvt:changed>/</stEvt:changed>

               </rdf:li>

               <rdf:li rdf:parseType="Resource">

                  <stEvt:action>saved</stEvt:action>

                  <stEvt:instanceID>xmp.iid:2E10D9C0E9FBE011AC8AF26E825699E0</stEvt:instanceID>

                  <stEvt:when>2011-10-21T16:19:46+02:00</stEvt:when>

                  <stEvt:softwareAgent>Adobe InDesign 6.0</stEvt:softwareAgent>

                  <stEvt:changed>/metadata</stEvt:changed>

               </rdf:li>

            </rdf:Seq>

         </xmpMM:History>

      </rdf:Description>

      <rdf:Description xmlns:idPriv="http://ns.adobe.com/xmp/InDesign/private" rdf:about="">

         <idPriv:DocChangeCount>381</idPriv:DocChangeCount>

      </rdf:Description>

      <rdf:Description xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:about="">

         <dc:format>application/pdf</dc:format>

      </rdf:Description>

      <rdf:Description xmlns:pdf="http://ns.adobe.com/pdf/1.3/" rdf:about="">

         <pdf:Producer>Adobe LiveCycle Designer ES 9.0</pdf:Producer>

         <pdf:Trapped>False</pdf:Trapped>

      </rdf:Description>

      <rdf:Description xmlns:desc="http://ns.adobe.com/xfa/promoted-desc/" rdf:about="">

         <desc:version rdf:parseType="Resource">

            <rdf:value>9.0.0.2.20101008.1.734229</rdf:value>

            <desc:ref>/template/subform[1]</desc:ref>

         </desc:version>

      </rdf:Description>

   </rdf:RDF>

</x:xmpmeta></xdp:xdp>

Avatar

Level 10

Ok,

put this FormCalc script directly into the calculate:event of the field "papierkosten" and delete the other script in the enter:event of "Page".

Avatar

Correct answer by
Former Community Member

Thanks, this helped!

Surprisingly , propagating the defined function to other fields, subforms etc. using ref="$form" listen="refAndDescendents" is not helpful when needed in a calculate event (as well as in other process events, I guess),

but instead...

Simply defining the function in the calculate event (see below) makes it available to all other fields:

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----