Toolbar
From Plex-XML
The toolbar template is used to define a toolbar for your page.
The template could be overridden in the first filter.
Contents |
Elements
<toolbar>
parameter
Gridtoolbar without PDF/Excel-Export buttons:
<xsl:template name="toolbar"> <toolbar> <xsl:call-template name="gridtoolbar"> <xsl:with-param name="vPDF">false</xsl:with-param> <xsl:with-param name="vXLS">false</xsl:with-param> </xsl:call-template> </toolbar> </xsl:template>
<button>
Attributes
- type : Optional
- smallbutton :
- largebutton :
- otherTemplate : Could be used to embed another template e.g. an Ajax-Combo-Box.
- fullTextSearch : DEPRECATED --> New flexible solution in format-fields.
- separator :
- msgbox :
- text :
- alt :
- image :
- style : Optional style attribute for a button of type msgbox.
- mainButton='true': Highlights the button. Should be used for the default button on a page.
- 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)
Links
Example
<xsl:template name="toolbar">
<toolbar>
<!-- Close Button -->
<button text="{$t_CloseWindow}" alt="{$t_CloseWindow}" image="close.gif">
<onclick><close/></onclick>
</button>
<button type="separator"/>
<!-- Conditional function call in a new window -->
<xsl:if test="/responses/session-attribute[@name='Session-Firma']/@value = $vKS_Firma">
<button text="Change Global GSP" alt="Global" image="financial/new_global.gif">
<xsl:call-template name="onClickNewWindow">
<xsl:with-param name="param">
<formName>KSGG101AE</formName>
<param value="">style</param>
<action>P</action>
<height>280</height>
<width>640</width>
</xsl:with-param>
</xsl:call-template>
</button>
</xsl:if>
<!-- Report in a new Window -->
<button text="General Client Info (Short)" alt="Report" image="view.gif">
<onclick>
<report key="GENERALINFO" title="General Client Info(Short)" width="900" height="700">
<parameter name="p_p_GGFirma" value="{$vGG_Firma}" />
<parameter name="p_p_GGKontoNr" value="{$vGG_Konto_Nr}" />
</report>
</onclick>
</button>
<!-- Message-Box with bold, red text -->
<button type="msgbox" style="float:left;font-weight:bold;color:#cc0000;;font-size:larger">
<xsl:attribute name="text"><xsl:value-of select="$t_ActiveGSP"/></xsl:attribute>
</button>
</toolbar>
</xsl:template>
