on 06-28-2007 1:29 PM
In my window there is a button when i click on that i want to close that window how can i do that?
Hi shanto,
see the below link,In that they mentioned how to create window and close the window.(creating external window)page no:11 onwards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1. Go to your Webdynpro component Interface View (<Your Webdynpro project> - WebDynpro - Web Dynpro Components - <your component> - Component Interface - Interface Views - <component>InterfaceView)
create a outbound plug (CloseWindow) of type exit with parameter "Url"(name it in the same manner 'U'-uppercase and 'rl' - lower case) as String
2. Go to your view controller and in the action to close the window
try{
String Url = WDURLGenerator.getWebResourceURL (wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
wdThis.wdGet<your component>InterfaceViewController().wdFirePlugCloseWindow(Url);
}
catch(WDURLException WDURLe){
}
3. Create a html file with following content and place it in the src --> mimes --> Components --> <your component> -- > close.html
<html>
<head>
<script langauage="javascript">
function closeWindow()
{
var currWindow = window.top;
currWindow.opener = window.top;
currWindow.close();
}
</script>
</head>
<body onload="javascript:closeWindow()">
</body>
</html>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi shanto..
wdThis.wdGet<your interface view controller>().wdFirePlug<your exit plug's name>("javascript:void(window.close())");
Urs GS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shanto,
Check this threads steps are given.
Steps to create "close.html" file.
Step 1: Select Your Component(src/mimes/components/<ur webdynpro component>) from Navigrator
right click =>New =>
Step2: A wizard will appear select "Simple" from left and "File" from the right
Then Click Next button.
Step3: Give the File Name "close.html" and Finish.Close.html File will be created
Step4: select the "source" tab and paste the code.
Then select the "Preview" tab it will give you the option to "Save" the file.
Regards,
Mithu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.