Pass an aggregate row to JavaScript

Pass an aggregate row to JavaScript


I have 

  • a WebBlock which has as one of its input parameters, a row of an aggregate. 
  • JavaScript at the eSpace level.

 In the onblur extended property of a textbox within the WebBlock, I want to pass that input parameter to JavaScript.  Effectively, I want to know how to pass an object to the JavaScript.  

Help is appreciated.

normally, passing objects is not really possible.

however, if you can make it a json or simple text, it's simple.

just an expression in the webblock with something like:

"<script>var myVar = " + someAction.toJSON + ";</script>"