Other Parts Discussed in Thread: CCSTUDIO
Hi,
I'd like to modify the app.js file to pass a value from a widget to a target variable when I click a button.
For this reason, I attached on "button" events> onClick: settext
on app.js
require(["dojo/ready"], function(ready){
ready(function(){
// logic that requires that Dojo is fully initialized should go here
});
});
function settext() {
var y = dijit.byId('widget_137').get('value');
targetVariable = y;
};
It does not work....
It does not set the value of y to the trarget variable "targetVariable".
What i'm missing?
I think my fault is on the calling of the targetVariable...
One solution that I found was to create a GUI VAR y and bind it to the targetVariable, but I'd like to have a solution in app.js file