Custom widget and Application Data

Hi @avinash.kumar,

what I still don’t get is the point of the console. Do you really want to throw the value in the console, or do you want to output values into the app or use them to achieve functionality of the widget?

However, the use case is key. There are several ways to get connector output values into the widget.
JSON is only text, So you could simply put the whole JSON in one text variable, and push it into a prop of a custom widget.
Then you can do whatever you want with the JSON using Javascript.

More common would be to output the Object Variable in the HTTP connector and use this variable as prop in the widget.

Where exactly is your point you are stuck? What did you try? Do you get error messages? What is the exact target?

So I still suggest reading the Knowledge base on HTTP connectors and Custom Widgets.
Then precise your question. It is very generally formulated so it is hard to figure out your exact problem.


edit:
your question was to put a value of x=5 from the application to console.log in custom widget.

I exactly answered the question in the linked post:

image

The only difference was, I used -12 instead of 5 and I output the value * 2 instead of directly…

Did you try this? where did you stuck or got unexpected results?