on 2008 Mar 28 4:48 PM
Hi,
I have 2 separated components in 2 projects. Comp A is using Comp B. And Comp B has an interface view through which data can be passed.
In comp A, somewhere I would like to open a new modal window containing view of comp B. For such I'm using the method createModalWindow (or is there another way ?) But createModalWindow needs IWDWindowInfo windowInfo as parameter and windowInfo can only be gotten from view on same component. I tryed to cheat this by sending windowInfo via interface, but no way.
Any other idea ?
Thanks and regards
Request clarification before answering.
Hi Marie,
I think we can do this; Create a context node of type IWDWindowInfo in Component B view and map that with the interface Controller element of same type. Create a context element of same type in Component A and Map the three elements and hence you can access the reference of IWDWindowInfo in Component A. Rest of the things you know how to use them.
In component A (view)
IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows( "PopupWindow");
wdContext.currentContextElement().setWindowInf( windowInfo);
In Comonent B (View)
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow( (IWDWindowInfo) wdContext.currentContextElement().getWindowInf());
window.show();
Don't forget to map the interface context element with the component context elements and the type must be of IWDWindowInfo ( Java native Method)
Regards
- Vinod
*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
74 | |
22 | |
9 | |
8 | |
7 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.