Form Template Aborts Validator - InfoPath Dev
in

InfoPath Dev

Form Template Aborts Validator

Last post 03-09-2011 10:20 AM by cfernald. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-09-2011 10:20 AM

    Form Template Aborts Validator

    I have an InfoPath 2007 form that causes an "object reference not set to instance of an object" when I perform a "stsadm -o verifyformtemplate -filename "InfoPath Form Template.xsn".  The problem goes away when I remove one specific Option Button from the form.  In fact, if I merely unbind the Option Button from its data source, the problem goes away (i.e. verifyformtemplate does not abort).

    Here's the offending table cell from the view's xsl file:

    <td style="BORDER-BOTTOM: #000000 1pt solid; PADDING-BOTTOM: 1px; BACKGROUND-COLOR: #ebf0f9; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; VERTICAL-ALIGN: bottom; PADDING-TOP: 1px">
       <font size="2" face="Verdana">
          <div align="center">
             <input class="xdBehavior_Boolean" title="" type="radio" name="{generate-id(my:ae_pt_cert_nohosp)}" tabIndex="0" xd:xctname="OptionButton" xd:CtrlId="CTRL2923_5" xd:binding="my:ae_pt_cert_nohosp" xd:onValue="1" xd:boundProp="xd:value" style="MARGIN-BOTTOM: 0px">
                <xsl:choose>
                   <xsl:when test="my:ae_pt_cert != 1 or my:ae_pt_hosp != 1">
                     <xsl:attribute name="disabled">true</xsl:attribute>
                   </xsl:when>
                </xsl:choose>
                <xsl:attribute name="xd:value">
                   <xsl:value-of select="my:ae_pt_cert_nohosp"/>
                </xsl:attribute>
                <xsl:if test="my:ae_pt_cert_nohosp=&quot;1&quot;">
                   <xsl:attribute name="CHECKED">CHECKED</xsl:attribute>
                </xsl:if>
             </input>
          </div>
       </font>
    </td>

    If anyone's interested, I can email you the xsn file.

    Too wierd...

    \cbf 

     

     

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.