Passing data from one widget to another

parul_chauhan
Kilo Contributor

Hi Every one,

I want to transfer data from one widget to   another.The requirement goes this way.In one widget I have displayed "Project Number" and as soon as I click on the project Number, I want that the workbench related should get displayed in another widget.

Please tell me some approach to configure it.

Regards,

Parul

8 REPLIES 8

Manoj Kumar16
Giga Guru

parul_chauhan
Kilo Contributor

Hi


I am able to send data but the issue that i am facing now is that in another widget i.e workbench it is showing the response like below:


find_real_file.png


If anyone can tell me the possible reason for this.



Regards,


Parul


In workbench, use ng-bind-html to bind HTML with an element.


<div ng-bind-html="data.value"></div>


Jeet
Tera Expert

Hi,



You are getting whole object in your field because you are passing the predefined object 'c' or 'something', By the way please share some more details about your way of sending data or change no. in the second widget.d



What you can do you can load all the required detail in the first widget itself and on the iteration of each row you can write ng-click="xyz" and on the click event just broadcast the clicked row (ng-click) to other widget and populate the value in corresponding field.




Regards,


Jeet.