clarification in xslt
Hi All,
My requirement is like when I select one checkbox then others
should get cancelled means that it has to act like a radio button.
so did like that but it reflects on other pages also.
since i'm new to this xslt i am not able to identify that segrigation
between the pages.
I think that multiple pages are calling the same function.
can you help me out in this regard.
The following is the code segment which does the function.
<xsl:choose>
<xsl:when test="$nbsummaryfalse!=0 or $checkboxes='true'">
<TD>
<input id="{concat('chckbox_', position())}" type="checkbox" name="rowselection" value="{position()}"/>
<xsl:if test="$submit='ap' and ./Field[@name='AvailabilityStatus']='Offline'">
<xsl:element name="Script">{getObj('chckbox_'+'<xsl:value-of select="position()"/>').disabled=true;}</xsl:element>
</xsl:if>
<xsl:if test="$submit='ap' and $nbdelbut!=0 and $nbEntry>1 and ./Field[@name='AvailabilityStatus']!='Offline'">
<xsl:element name="Script">{document.forms.tableview.elements.a llrow.disabled=false;}</xsl:element>
</xsl:if>
</TD>
<Script>
var o = getObj('chckbox_'+'<xsl:value-of select="position()"/>');
</Script>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
I just added one function selectOne in that input tag,
<input id="{concat('chckbox_', position())}" type="checkbox" name="rowselection" value="{position()}" onClick="selectOne(this.value)"/>
then i wrote a function defintion is java script.
its working fine but samething is reflecting on other pages also.
i want to prevent the same.
Thanks and Regards
|