Select to view content in your preferred language

Opening widget from another widget programatically

723
1
07-03-2017 04:52 PM
bobpark
Deactivated User

Hello,

I have been working on a project to generate report for few weeks now, and I encountered some problem when I am opening widget from another widget programmatically.

The code I used is this,

var generateReportWidget = this.appConfig.getConfigElementsByName('GenerateReport');
var widgetId = generateReportWidget[0].id;
this.openWidgetById(widgetId);

I got this code from widget Sample folder(widget to widget communication). 

I works great but when I open widgetA from widgetB programmatically, then if I open widgetB, the tab is blank.

here is the before and after screenshot of the widget. 

    before                                           after

Thank you.

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Bob,

what do you mean by "then if I open widgetB"? Programmatically or from the widget link?

0 Kudos