Gridcheckbox
From Plex-XML
The gridcheckbox template generates a check box at be beginning of a gridrow.
Hint: Inherit your XML-Entity from XML_ListShell to store hooked grid rows temporarily in the user session on the server
Contents |
Element
<gridcheckbox>
Attributes
- name: optional name
- id: should be a unique id that could be used for action by jscript
- label: Text that should appear on the right side of the box
- title: Text that appears if you hover over the box. Should contain a hint what happens if you hook the box.
- checked: 0/1 value 1=checked mark is set
- disabled: 0/1 value to disable a box
- minRight: 0-9 value of the minimum right that a user needs for that function to see the button (1=view, 5=update, 8=delete)
Hints
- if you won't to return anything to your web page you could use as response:
<webrequest name="YourRequest" usedefault="false"> <request name="YourRequest"/> <response> <error type="default" name="DEFAULT" /> <reaction type="DEFAULT" target="DISPLAY" name="/WEB-INF/resources/@common_html@/Nothing.xslt" usedefaultstyle="false" localized="false" /> </response> </webrequest>
- If you like get the "chaecked" row highlighted wirh the "aaSelected" CSS-Class you must give each table row the same id as your checkbox plus an r_. before. The easiest way to do this is with an attribute in the gridRowOnClick element:
<xsl:template name="gridRowOnClick">
<xsl:variable name="identcode" select="returnvalue[@implname='FooName']/@unformatted"></xsl:variable>
<xsl:attribute name="id">r_<xsl:value-of select="$identcode"/></xsl:attribute>
...
<gridcheckbox name="listselect" id="{$identcode}">
...
Example
<gridcheckbox name="listselect" id="{$chkboxid}" minRight="5" title="Hook to see what happens :-)">
<xsl:attribute name="checked">
<xsl:value-of select="$vInList='1'" />
</xsl:attribute>
<xsl:attribute name="disabled">
<xsl:value-of select="$DontUseIt!='0'" />
</xsl:attribute>
<onclick>
<checkboxaction>
<formName>FooRequestName</formName>
<param value="{$FooParm}">FooIdentCode</param>
</checkboxaction>
</onclick>
</gridcheckbox>
