
Saturday, December 20, 2003
Received the following question that I thought would make a good posting.
Question
I'm starting to learn InfoPath & I've run across something that maybe you can help me with. I've created an 'expression box' with a formula that works fine. Now I want to take the results of the 'expression box' & use it along with a 'text box' value to be displayed in another 'expression' box elsewhere on the form. I don't see how to capture the value of the first 'expression box' & use it elsewhere. I've looked at 'binding' in the Help text but that doesn't look like what I want it to do either.
Answer
Unfortunately, the answer to this is no. There is no way to actually capture the value that I can find. The expression is actually only present on the View and has no corresponding data element on the form. If you take a look at the view.xsl you can see the following XSL that is used.
<xsl:choose>
<xsl:when test="function-available('xdFormatting:formatString')">
<xsl:value-of select="xdFormatting:formatString(my:Number1 + my:Number2,"number","numDigits:auto;negativeOrder:1;")"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="my:Number1 + my:Number2"/>
</xsl:otherwise>
</xsl:choose>
4:34:25 PM
|
|