Dear All,
My requirement is to reload the Documentum D2 4.6 external widget URL on event D2_EVENT_OBJECT_SELECTED.
I have :
1. configured EXT_WIDGET_TEST with bidirectional check box checked.
2. Mentioned widget URL http://localhost:8080/myWidget?Id=$value("r_object_id")
My widget is loaded in the workspace. However when I select any object in Doclist widget, my widget does not reload with selected r_object_id of object selected.
myWidget is getting connected and is :
- subscribing channel ["D2_EVENT_OBJECT_SELECTED"]
- publishing actions to channel ["D2_ACTION_REFRESH_WIDGET"]
I can see that I am passing oam_id:d2Ajaxhub.getWidgetId() and widget_type as d2Ajaxhub.getWidgetType() and is passed properly as is seen in console and also in alert which I have put. Where d2Ajaxhub has been initialized inside myWidget html file which is displayed in the widget while loaded in workspace.
Can someone please tell me how do I reload my widget with $value("r_object_id") being dynamically passed to the URL being called.
Also one more point is when I don't select widget config with bidirectional, and simply mention widget url:
http://localhost:8080/myWidget?id=$value("r_object_id") and subscribe to D2_EVENT_OBJECT_SELECTED event:
it reloads the widget with proper r_object_id passed.
So my query is how does internal widget is able to reload my widget on select of object?
Also what am I doing wrong while writing bidirectional D2OAH script?
What should I publish so that my widget is reloaded with r_object_id in URL.
Many thanks in advance.
Tridib