cancel
Showing results for 
Search instead for 
Did you mean: 

How to close the iview in the portal?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member214651
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member214651
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member214651
Active Contributor
0 Kudos

Hi,

Check if this link could be any help to you:

Regards,

Poojith MV

Former Member
0 Kudos

Hi, Poojith,

Thanks a lot for your help!

The problem has been resolved.

Best regards,

tao

Answers (0)