cancel
Showing results for 
Search instead for 
Did you mean: 

Popup window

Former Member
0 Kudos

Hi experts,

I have created 10 links in my view.In that, I bind the action to call a modalwindow to display the required UI elements.I used only one modal window.As a result,When am clicking as first link am getting the required view.as well as for 3rd,5th, link... butin 2nd,4th,..am not getting the view.

Thanks in advance

regards,

Kiruba R

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Suresh,

When I Click it as first time it is displaying properly.But when i click it for second link or second time (the link),it shows only the title of window.

This is the code i have written for all the links. But the visibility is differ for all the links

wdContext.currentOptionElement().setCompany(WDVisibility.NONE);

wdContext.currentOptionElement().setArea(WDVisibility.NONE);

wdContext.currentOptionElement().setEmpgrp(WDVisibility.NONE);

wdContext.currentOptionElement().setEmpsubgrp(WDVisibility.NONE);

wdContext.currentOptionElement().setPayroll(WDVisibility.NONE);

wdContext.currentOptionElement().setPersubarea(WDVisibility.NONE);

IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("OrgComCode");

IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);

window.setWindowPosition(300, 300);

window.setWindowSize(130,90);

window.setTitle("You can change the CostCenter");

window.show();

wdContext.currentPopupElement().setOrgComWin(window);

regards,

Kiruba.R

srinivas_sistu
Active Contributor
0 Kudos

Hi,

But when i click it for second link or second time (the link),it shows only the title of window.

Is the code for displaying inside pop-up window is in "DoInIt()" method???

If yes, try to place the code inside doModify() and try again..

Regards,

Srinivas.

sureshmandalapu6
Active Contributor
0 Kudos

Hi kiruba raman,

It seems like there is a loop which is running and hiding those even numbered links. Check your code if there is such things. If not please post the code here.

points if useful

Thanks

Suresh

srinivas_sistu
Active Contributor
0 Kudos

Hi,

Post the logic where you are calling the pop-up window..

Regards,

Srinivas.