Hello -
I've used xd:preserve to change the font size and colour of the "Insert Item" link under a repeating table. The repeating table has two fields, a drop down and a text field.
The Insert Item text is working as it should be, but the fields have disappered from the table row. You can still add more rows, but they're all blank.
Here is the code:
Table:
</tbody><tbody xd:xctname="RepeatingTable">
<xsl:for-each select="my:Case_Details/my:Issue">
<tr style="MIN-HEIGHT: 26px">
<td style="BORDER-BOTTOM: #000000 1pt; BORDER-LEFT: #000000 1pt; BORDER-TOP: #000000 1pt; BORDER-RIGHT: #000000 1pt">
<div>
<xsl:apply-templates select="my:Type_of_Issue_dropdown" mode="xd:preserve"/>
</div>
</td>
<td style="BORDER-BOTTOM: #000000 1pt; BORDER-LEFT: #000000 1pt; BORDER-TOP: #000000 1pt; BORDER-RIGHT: #000000 1pt"><span hideFocus="1" class="xdTextBox" title="" tabIndex="0" xd:CtrlId="CTRL68" xd:xctname="PlainText" xd:binding="my:Other">
<xsl:attribute name="style">WIDTH: 100%;<xsl:choose>
<xsl:when test="my:Type_of_Issue != "Other"">DISPLAY: none</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="my:Other"/>
</span>
</td>
</tr>
</xsl:for-each>
</tbody>
Then the template:
<xsl:template match="my:Type_of_Issue_dropdown" mode="xd:preserve">
<select style="WIDTH: 100%" class="xdComboBox xdBehavior_Select" title="" size="1" xd:CtrlId="CTRL71" xd:xctname="dropdown" xd:binding="my:Type_of_Issue" xd:boundProp="value" value="" tabIndex="0">
<xsl:attribute name="value">
<xsl:value-of select="my:Type_of_Issue"/>
</xsl:attribute>
<xsl:choose>
<xsl:when test="function-available('xdXDocument:GetDOM')">
<option/>
<xsl:variable name="val" select="my:Type_of_Issue"/>
<xsl:if test="not(xdXDocument:GetDOM("Case Type")/dfs:myFields/dfs:dataFields/dfs:Case_Type[@Column1=$val] or $val='')">
<option selected="selected">
<xsl:attribute name="value">
<xsl:value-of select="$val"/>
</xsl:attribute>
<xsl:value-of select="$val"/>
</option>
</xsl:if>
<xsl:for-each select="xdXDocument:GetDOM("Case Type")/dfs:myFields/dfs:dataFields/dfs:Case_Type">
<option>
<xsl:attribute name="value">
<xsl:value-of select="@Column1"/>
</xsl:attribute>
<xsl:if test="$val=@Column1">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
<xsl:value-of select="@Column1"/>
</option>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<option>
<xsl:value-of select="my:Type_of_Issue"/>
</option>
</xsl:otherwise>
</xsl:choose>
</select>
</xsl:template>
Can anyone see what the problem might be?
TIA