Like what you see? Have a play with our trial version.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

Using this function introduces a dependency on gson, which is shipped with Yellowfin, but is not documented on this wiki.

If you're not familiar with gson and wish to avoid using it, an alternative option is to get the String version and then parse it.


...

CodeWidgetResponse
Anchor
codewidgetresponse
codewidgetresponse

This object represents the response that will be sent back to the JavaScript component of the code widget. 

...

The promise will be passed an Object containing a JSON representation of the CodeWidgetResponse that is created by the backend component.

...

In this example, when MyWidget.js is initialized, it will immediately trigger a “hello” request to the code widget’s Java component. It responds by adding the key-value pair “hello”: “Hello JavaScript” to the response. Which is then alerted by the JavaScript. 


Back to top

...