Passing data from one widget to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2016 12:10 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2016 02:43 AM
Hi Parul,
Follow the two links given below:
How to communicate between widgets in Service Portal
Using $rootScope to share data in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2016 08:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2016 10:22 AM
In workbench, use ng-bind-html to bind HTML with an element.
<div ng-bind-html="data.value"></div>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2016 06:43 AM
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.