on 03-23-2006 6:50 AM
Hai ,
How to use A MOdalWindow in webdynpro application.
just give me some step by step po=rocedure.
regards,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.