Linking and scripting gadgets : Scripting linked gadgets : Reading and writing linked values

Reading and writing linked values

Dashboard developers can read and write values before a linking gadget process them. Scripts can modify the value and execute JavaScript code. For example, to see what value is arriving at a gadget, add the following script to the link:

alert("Published value: " + data.value.get(key).values[0]);

This script takes the selected values published by the linked gadget and sends them to a JavaScript alert when the selection occurs.


(c) Copyright Actuate Corporation 2011