on 08-09-2010 7:27 AM
Hi, experts,
I create a application using WDJ with the "close" button and put it into the EP portal.
I logon the portal. I can open the iview of the portal and run the application.
I hope the ivew is closed after I click the "close" button. How can I do it?
Best regards,
tao
Hi,
Can u please provide more information about what u are trying to achieve? do you want to close a new window opened from your application?
Regards,
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Poojith,
Thanks a lot for your quickly reply.
I want to close the iview of the application after I click the button in the iview in the EP.
There is not other window in the application.
The action is:
1. I create a view with a "close" button in the WDJ.
2. I create a application with the view and put put the application in the EP.
3. I logon the EP, and click the application link. The window is opend in the EP.
4. I click the "close" button, I hope the iview of the application is closed. But I don't know how to code it.
Do you give me some hint?
Thanks a lot.
Best regards,
tao
Hi,
Why do u want to close the view in first place when there is no external window which u are opening? write this piece of code on action of the close button and check if it works for you:
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("<name of the window in ur application>");
IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
//Check for either of one
window.destroyInstance();
window.destroy();
Hope this helps u.
Regards,
Poojith MV
Hi, Poojith,
Thanks a lot for your reply.
I have know the way your word.
I think the way is incorrept.
Because the window has been opened, and I don't want to create a NEW WINDOW using the "createModalWindow(windowInfo)" method.
I want to close a exsiting iview with the window that the window is opened by click the link in the portal.
I think I need to get the iview object after get the EP object. But I don't know how to do this.
Otherwise, Do you give me other way?
Do you give me some hint?
Best regards,
tao
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.