How to access context variables in custom widget templates?

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:

 alert("#{operationContext["VariableName"]}");
 alert("@{Context["VariableName"]}");
 alert("#{Context["VariableName"]}");
 alert("#{operationContext.VariableName}");
 alert("#{operationContext.get("VariableName")}");
0 votes

0 answers

2761 views

ANSWER