N
Nirav
I am facing a strange issue with Textbox control with multiline and paragraph
break property enabled. I am using Infopath 2007. The first time Infopath
Form gets opened the textbox works perfectly fine as multiline textbox but
after I close it for all subsequent times it doesn't work as multiline
textbox. It doesn't add a new line when I press enter. all text is shown in
single line only. Can someone please help me?
Here is the code
manitest.xsf:
<xsf:xmlToEdit name="value_85"
item="/cp:domain/cp:config/cp:sources/cp:source/cparameters/cparameter/cp:value" viewContext="CTRL174">
<xsf:editWith type="plainMultiline"
component="xField"></xsf:editWith></xsf:xmlToEdit>
View1.xsl:
<div>
<span class="xdTextBox" hideFocus="1" title="" xd:xctname="PlainText"
tabIndex="0" xd:CtrlId="CTRL174" xd:binding="cp:value"
xd:datafmt=""string","plainMultiline""> <xsl:attribute
name="style">OVERFLOW-Y: auto; OVERFLOW-X: auto; WIDTH: 100%; WHITE-SPACE:
normal; WORD-WRAP: break-word; HEIGHT: 50px;<xsl:choose>
<xsl:when test="@cp:type !=
"System.Collections.Specialized.StringCollection"">DISPLAY: none;</xsl:when>
</xsl:choose></xsl:attribute><xsl:choose>
<xsl:when
test="function-available('xdFormatting:formatString')"><xsl:value-of
select="xdFormatting:formatString(cp:value,"string","plainMultiline")"
disable-output-escaping="yes"/></xsl:when>
<xsltherwise><xsl:value-of select="cp:value"
disable-output-escaping="yes"/></xsltherwise>
</xsl:choose></span>
</div>
I am blocked on this strange behaviour. Kindly guide me if any of you have
faced such issue.
break property enabled. I am using Infopath 2007. The first time Infopath
Form gets opened the textbox works perfectly fine as multiline textbox but
after I close it for all subsequent times it doesn't work as multiline
textbox. It doesn't add a new line when I press enter. all text is shown in
single line only. Can someone please help me?
Here is the code
manitest.xsf:
<xsf:xmlToEdit name="value_85"
item="/cp:domain/cp:config/cp:sources/cp:source/cparameters/cparameter/cp:value" viewContext="CTRL174">
<xsf:editWith type="plainMultiline"
component="xField"></xsf:editWith></xsf:xmlToEdit>
View1.xsl:
<div>
<span class="xdTextBox" hideFocus="1" title="" xd:xctname="PlainText"
tabIndex="0" xd:CtrlId="CTRL174" xd:binding="cp:value"
xd:datafmt=""string","plainMultiline""> <xsl:attribute
name="style">OVERFLOW-Y: auto; OVERFLOW-X: auto; WIDTH: 100%; WHITE-SPACE:
normal; WORD-WRAP: break-word; HEIGHT: 50px;<xsl:choose>
<xsl:when test="@cp:type !=
"System.Collections.Specialized.StringCollection"">DISPLAY: none;</xsl:when>
</xsl:choose></xsl:attribute><xsl:choose>
<xsl:when
test="function-available('xdFormatting:formatString')"><xsl:value-of
select="xdFormatting:formatString(cp:value,"string","plainMultiline")"
disable-output-escaping="yes"/></xsl:when>
<xsltherwise><xsl:value-of select="cp:value"
disable-output-escaping="yes"/></xsltherwise>
</xsl:choose></span>
</div>
I am blocked on this strange behaviour. Kindly guide me if any of you have
faced such issue.