cancel
Showing results for 
Search instead for 
Did you mean: 

Accepted Solutions (1)

Accepted Solutions (1)

arun_srinivasan
Contributor
0 Kudos

hi,

First create a new window and embed a new view in it. create the value attribute of type com.sap.tc.webdynpro.services.session.api.IWDWindow in view1 , popup view and component controller .

Add the component controller in the properties of both the view. Map the value attribute from view1 to cc and cc to popup view.

Attribute win_inst is of type type com.sap.tc.webdynpro.services.session.api.IWDWindow

In the action of handler of button

{

IWDWindowInfo inf=wdComponentAPI.getComponentInfo().findInWindows("Your window name");

//the name of the webdynpro window which you want as popup model window

IWDWindow win= wdComponentAPI.getWindowManager().createModalWindow(inf);

//for creting modal window

wdContext.currentContextElement().setWin_inst(win);

// setting win instance to value attribute and mapping to cc and then to that view context.

win.open();

// for opening the model window

win.setWindowSize(380,250);

// for setting size of model window

win.setWindowPosiion(500,200);

for closing the model window create a action in that

for closing the popup window

map win instance from view1 to cc and cc to popup view

public void onActionOK(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionOK(ServerEvent)

IWDWindow w=wdContext.currentContextElement().getWin();

w.destroy();

//@@end

}

hope this helps,

Regards,

Arun

Former Member
0 Kudos

Hi,

See the link

Hope this helps you

Regards

Rohit

Answers (0)