Select to view content in your preferred language

Communication between 2 Widgets

349
1
11-14-2019 01:05 AM
KafilBaig
Regular Contributor

I have created 2 custom widgets for retrieving data from oracle database.

First widget is retrieving data and binding in dgrid. Here i have a column on click of that i am opening second widget.

It is working perfectly as needed for first time

I am facing problem is when i close the second widget and then click a column in first widget the second widget doesn't open.

Can anyone please guide me what needs to be done to resolve this.

this is my code which i calling to open a widget.

toOpenWidget: function() {

 var widgets = this.appConfig.getConfigElementsByName('WidgetA');

var widgetId = widgets[0].id;

this.openWidgetById(widgetId).then(lang.hitch(this, function(widget){

}));

}

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Kafil,

What does your openWidgetById function look like?

Once a widget opened the WidgetManager's openWidget function will try to make the widget visible if the widgets state is closed or if the widget has never been opened then it will startup the widget.

0 Kudos