7 Replies Latest reply on Oct 21, 2013 5:23 AM by DanielShanahan

    <AccTitle> node in DDR's XML

    DanielShanahan

      In the XML version of the DDR, what is the node <AccTitle></AccTitle>? It is not listed in the FileMaker Pro 12 Advanced Database Design Report XML Output Grammar. One example in the DDR looks like this:

       

      <AccTitle>
       <Calculation>
       <![CDATA["Sort selection"]]>
       </Calculation>
       <DisplayCalculation>
       <Chunk type="NoRef">&quot;Sort selection&quot;
       </Chunk>
       </DisplayCalculation>
      </AccTitle>
      

       

       

      The calculation refers to a field (Expenses::Sort selection) where the field definition is a Global, auto-calc with the following formula:

       

      If ( IsEmpty ( Self ) ; "Monthly" ; Self )
      

       

      So I'm presuming that <AccTitle> is an instance of data that is the field title. Since it is not in the XML Output Grammar document, can anyone verify this?

       

      BTW, this is from the Expenses starter solution in FMP 12.

       

      Thanks.

        • 1. Re: <AccTitle> node in DDR's XML
          nickorr

          Daniel,


          I don't recall this specific node before, but scripts can contain a whole lot of options, depending on the script step, and I've always just gone for a generic algorithm. So it's hard to say without the context.  What's the parent node of this one?


          Cheers,

          Nick

          • 2. Re: <AccTitle> node in DDR's XML
            DanielShanahan

            Thanks for the reply, Nick.

             

            As far as I can tell, the parent node is <Object>.  While most of the nodes are indented, this section is flat (i.e. flush left) which makes it a little harder to read, in my opinion.

             

            Here is the <AccTitle> in context:

             

             

            <Object type="Field" key="54" LabelKey="0" flags="512" rotation="0">
            <ScriptTriggers>
            <Trigger event="OnObjectModify" id="3" triggerFlags="3">
            <Script id="15" name="Trigger | Sort List View">
            </Script>
            <TriggerText>&quot;Trigger | Sort List View&quot;</TriggerText>
            </Trigger>
            </ScriptTriggers>
            <Bounds top="25.0000000" left="131.0000000" bottom="49.0000000" right="298.0000000"/>
            <AccTitle>
            <Calculation><![CDATA["Sort selection"]]></Calculation><DisplayCalculation><Chunk type="NoRef">&quot;Sort selection&quot;</Chunk></DisplayCalculation></AccTitle>
            <FieldObj numOfReps="1" flags="8418" inputMode="0" displayType="2" tableViewVisibility="0" quickFind="0" pictFormat="5">
            <Name>Expenses::Sort Selection</Name>
            <ValueList>Expense List | Sort Selection</ValueList>
            <ExtendedAttributes fontHeight="14" graphicFormat="5">
            <NumFormat flags="2574" charStyle="0" negativeStyle="0" currencySymbol="$" thousandsSep="44" decimalPoint="46" negativeColor="#DD000000" decimalDigits="2" trueString="Yes" falseString="No"/>
            <DateFormat format="0" charStyle="0" monthStyle="0" dayStyle="0" separator="47">
            <DateElement>3</DateElement>
            <DateElement>6</DateElement>
            <DateElement>1</DateElement>
            <DateElement>8</DateElement>
            <DateElementSep index="0"></DateElementSep>
            <DateElementSep index="1">, </DateElementSep>
            <DateElementSep index="2"> </DateElementSep>
            <DateElementSep index="3">, </DateElementSep>
            <DateElementSep index="4"></DateElementSep>
            </DateFormat>
            <TimeFormat flags="143" charStyle="0" hourStyle="0" minsecStyle="1" separator="58" amString=" AM" pmString=" PM" ampmString=""/>
            </ExtendedAttributes>
            <Styles>
            <LocalCSS>
            self&#10;{&#10;&#09;background-image: -webkit-gradient(linear,25% 0%,25% 63.6364%, from(rgba(27.45100021%,36.86270142%,52.54899979%,1)), to(rgba(21.96080017%,29.80389977%,40.78429794%,1)));&#10;&#09;background-color: rgba(0%,0%,0%,0);&#10;&#09;border-top-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;border-right-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;border-bottom-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;border-left-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;color: rgba(95.68630219%,93.72550201%,88.62739563%,1);&#10;&#09;-fm-tab-stops: 18 left;&#10;&#09;-fm-text-vertical-align: top;&#10;}&#10;self:hover&#10;{&#10;&#09;background-image: -webkit-gradient(linear,25% 0%,25.0198% 67.661%, from(rgba(30.98040009%,40%,53.33330154%,1)), to(rgba(21.96080017%,29.80389977%,40.78429794%,1)));&#10;&#09;border-top-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;border-right-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;border-bottom-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;border-left-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;}&#10;self:pressed&#10;{&#10;&#09;background-image: -webkit-gradient(linear,25% 0%,25% 100%, from(rgba(26.27449989%,32.94120026%,43.13729858%,1)), to(rgba(17.25489998%,23.13730049%,28.62750053%,1)));&#10;&#09;border-top-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;border-right-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;border-bottom-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;&#09;border-left-color: rgba(17.25489998%,23.13730049%,28.62750053%,1);&#10;}&#10;self .text&#10;{&#10;&#09;width: 100%;&#10;&#09;height: 100%;&#10;}&#10;self:focus .text&#10;{&#10;&#09;width: 100%;&#10;&#09;height: 100%;&#10;}&#10;</LocalCSS>
            </Styles>
            <DDRInfo>
            <Field name="Sort Selection" id="36" repetition="1" maxRepetition="1" table="Expenses"/>
            <ValueList name="Expense List | Sort Selection" id="13"/>
            </DDRInfo>
            </FieldObj>
            </Object>
            
            • 3. Re: <AccTitle> node in DDR's XML
              steve_ssh

              Hello Daniel,

               

              I believe that the AccTitle node contains the string set for the Accessibility Title of a layout object (set via the Accessibility Inspector).

               

              I just gave a real quick test of this by setting the Accessibility Title of an object to a string that I could easily grep in the DDR output, and, sure enough, the string appeared as the text value of the AccTitle element.

               

              Kind regards,

               

              -steve

              • 4. Re: <AccTitle> node in DDR's XML
                nickorr

                Correct.

                 

                The other possible one is a AccHelp node for the Accessibility help section.

                 

                Cheers,

                Nick

                1 of 1 people found this helpful
                • 5. Re: <AccTitle> node in DDR's XML
                  DanielShanahan

                  Thanks Steve.  That was it.

                  • 6. Re: <AccTitle> node in DDR's XML
                    DanielShanahan

                    Thanks Nick.  That helps.

                    • 7. Re: <AccTitle> node in DDR's XML
                      DanielShanahan

                      Thanks Steve and Nick.  I've sent a feature request to FileMaker Inc. to include these in the DDR XML Grammar.