Not sure if this thread is the appropriate spot for this question, but I figured I would try here so I might get Robert's assistance. I have Widget A, which when its processing is complete opens Widget B. Using the recommendations from Robert's great Widget Communication document I use the following code to accomplish this. From Widget A var id_B:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("B");
var baseWidget_B:IBaseWidget = ViewerContainer.getInstance().widgetManager.getWidget(id_B, true) as IBaseWidget;
This works correctly and Widget B opens. However, with a new requirement, when Widget A has completed its processing I also need to open Widget C. I use the following codevar id_B:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("B");
var baseWidget_B:IBaseWidget = ViewerContainer.getInstance().widgetManager.getWidget(id_B, true) as IBaseWidget;
var id_C:Number = ViewerContainer.getInstance().widgetManager.getWidgetId("C");
var baseWidget_C:IBaseWidget = ViewerContainer.getInstance().widgetManager.getWidget(id_C, true) as IBaseWidget;
Now, Widget C opens correctly, but Widget B no longer does. It seems that I can only dispatch a single WIDGET_RUN event from Widget A. If I comment out the code for opening Widget C, Widget B opens correctly. I'm fairly new at developing with the Viewer so any insight on this behavior would be greatly appreciated.