<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to access context variables in custom widget templates? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-context-variables-in-custom-widget-templates/m-p/313321#M322</link>
    <description>&lt;P&gt;I have a widget template and i want to display a String message in it. The String message is set in the custom operation using the  OperationContext.put() method. How can i access this context variable in my custom widget template to display the message? I have tried the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; alert("#{operationContext["VariableName"]}");
 alert("@{Context["VariableName"]}");
 alert("#{Context["VariableName"]}");
 alert("#{operationContext.VariableName}");
 alert("#{operationContext.get("VariableName")}");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Dec 2012 10:55:33 GMT</pubDate>
    <dc:creator>Ansel_Andrew</dc:creator>
    <dc:date>2012-12-12T10:55:33Z</dc:date>
    <item>
      <title>How to access context variables in custom widget templates?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-context-variables-in-custom-widget-templates/m-p/313321#M322</link>
      <description>&lt;P&gt;I have a widget template and i want to display a String message in it. The String message is set in the custom operation using the  OperationContext.put() method. How can i access this context variable in my custom widget template to display the message? I have tried the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; alert("#{operationContext["VariableName"]}");
 alert("@{Context["VariableName"]}");
 alert("#{Context["VariableName"]}");
 alert("#{operationContext.VariableName}");
 alert("#{operationContext.get("VariableName")}");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Dec 2012 10:55:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-access-context-variables-in-custom-widget-templates/m-p/313321#M322</guid>
      <dc:creator>Ansel_Andrew</dc:creator>
      <dc:date>2012-12-12T10:55:33Z</dc:date>
    </item>
  </channel>
</rss>

