OnclickRefresh

From Plex-XML
Jump to: navigation, search

The onClickRefresh template generates all the code you need to call a Plex-XML function, "forget" the response and reload the current view

since the response is not displayed your request can have a "dummy" xslt for the response:

<reaction type="DEFAULT" target="DISPLAY" mime="text/xml" usedefaultstyle="false" name="/WEB-INF/resources/@common_html@/Nothing.xslt"/>

Contents

Properties

<formName>

Name of the web request that should be executed.

<formName>MyWebRequest</formName>

<container>

optional: the name of another view which will be refreshed instead of the direct parent view

sometimes useful when you have some sort of cascaded views and want to refresh the whole hierarchy

<container>ext_content_content</container>

Example

<xsl:call-template name="onClickRefresh">
  <xsl:with-param name="param">
    <formName>FormDeExcl</formName>
    <container>ext_content_content</container>
    <param value="{$parFunction}">frmFunction</param>
    <param value="{$parFormat}">frmFormat</param>
    <param value="{$parVariable}">frmVariable</param>
    <param value="{$parFieldID}">FieldID</param>
    <param value="ShowF">webFieldID</param>
    <param value="E">webValue</param>
    <action>U</action>
  </xsl:with-param>
</xsl:call-template>
Personal tools