Destroy Portal Window on click on Logoff button
Hi Experts,
My requirement is a simple one. I simply need to destroy the portal window on click of logoff button. Initially i followed a few blogs and did the following.
Created an HTML KM document and copied its link under the ume.logoff.redirect.url property. But this link is getting appended twice when i click the logoff button.
Please let me know if there is some other way or if I need to make changes in the current approach. We access the portal within our own network i,e intranet.
Hi Kaustubh,
Below is the way we did -
Create a logoff.html and place it inside km at any folder location. make sure everyuser group has full permission to this km folder. below is the code -
use html head and start script language then -
function closeWindow()
window.opener = top;
window.close();
end script language
call onload closewindow
end body and end html.
now, open visual admin and goto propery name - ume.logoff.redirect.url and write property value as -
Property Value =
http://<Server hostname:port>/irj/go/km/docs/.../.../logoff.html
and restart the server.
hope it helps.
Regards,
Sen
Similar Messages
-
How to close main window on click of a button on popup window
Hi All,
I have created a web page which on certain condition display a popup window to to provide information. Wht i want is that when i click on close button on my popup window, my main window should also close.
Can anyone please help with this requierment!!!
Regards,
tusharHi All,
Could anyone of you please help me by answering the thread
WDDOEXIT method not called when the application is closed from the portal
Thanks,
Subash M -
How to open a window on click of a button?
Hi,
I want to open a window(a new browser page) on the click of a button.Can anyone please tell me what i should write in the onAction of the button?
Regards,
Padmalatha.Khi,
1.Declare the following in the implementaion of the component controller
//@@begin others
IWDWindow modalWindow;
//@@end
2.First create a method in the component controller :
public void createExternalWindow( )
//@@begin createExternalWindow()
// create external window
IWDWindow externalWin = wdComponentAPI.getWindowManager().createNonModalExternalWindow
("http://www.google.co.in/", "External");
//Define window position and dimensions according to acreen parameters
externalWin.setTitle("Google");
externalWin.setWindowPosition(WDWindowPos.CENTER);
externalWin.setWindowSize(1280,850);
externalWin.show();
//@@end
3.Create a button in the view, create an action. assign this action to the button . Now call the method in the view controller.
public void onActionexternal(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionexternal(ServerEvent)
wdThis.wdGetPopUpCompController().createExternalWindow();
//@@end
Now to create a modal window
1.Declare the following in the implementaion of the component controller
//@@begin others
IWDWindow modalWindow;
//@@end
2.Create a new window "NewPopWindow".Declare the following in the implementaion of the component controller.
public void createModalWindow( )
//@@begin createModalWindow()
//creating the window
IWDWindowInfo winInfo = wdComponentAPI.getComponentInfo().findInWindows("NewPopWindow");
modalWindow = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
//display window in centre
modalWindow.setWindowPosition(WDWindowPos.CENTER);
modalWindow.setTitle("Modal Window");
modalWindow.setWindowSize(400,100);
//opening the window
modalWindow.show();
//@@end
3. destroy the window
public void destroyModalWindow( )
//@@begin destroyModalWindow()
modalWindow.destroyInstance();
//@@end
4.Create a button in the view, create an action. assign this action to the button . Now call the method in the view controller.
public void onActionmodal(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionmodal(ServerEvent)
wdThis.wdGetPopUpCompController().createModalWindow();
//@@end
regards,
pinki
Edited by: pinki goswami on Apr 17, 2008 11:42 AM -
Closing a Pop Up Window on click of a button
Hi Forum,
In the parent view there is a button, on click of this button a new pop up window is opened.
This pop up window also has a button (Submit). Onclick of the submit button in pop up window I need to performe some code execution and then close this pop up window.
I tried the steps given in the weblog
/people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications
But it does not seem to be working.
Any other way to achieve this or what might I be doing wrong here?
Thanks,
Anubhav.Hi,
I missed a parameter in parent window while calling the pop up window
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window_for_cmp_usage(
interface_view_name = 'WD_VALUE_HELP'
component_usage_name = 'ZUSAGE_FORMNUM'
title = 'Additional Information For Item'
close_in_any_case = abap_true <----Missed this earlier
message_display_mode = if_wd_window=>co_msg_display_mode_selected
lo_window->open( ).
Now it is working fine.
Many thanks to all. -
Close window on click of a button
Hi all,
I am developing an application in which there are some checkboxes with a button on the window. When we choose these checkboxes (one or more) and click on the button it opens another window which has some textfields and one button. These textfields are for taking certain parameter to run a process which will be called when the button on second window is clicked.
Now my problerm is that i want to make the second window closed on click of button on second window. But i m not getting the solution.
This may be a stupid question but as I m new to this field I really need help.
Thanks for any response.i want to make the second window closed on click of button on second window. But i m not getting the solution.Put following in the button action listener:
secondWindow.dispose();
//OR
secondWindow.setVisible(false);Thanks! -
Open new window on click of a button
Dear All,
We are using VC for development of Dashboards.
I have created the related i views.
First page of dashboard shows all the high level graphs.
I intoduced a button on the chart to go into details (another Iview)
I was able to navigate to the next layer on click of button in tool bar and comeback to the first layer again.
I want to open a new window when I click on the button on the tool bar of chart..
Is it Possible in VC? Please help us in this regard.
Points assured in full.
I have already posted this issue in the forum VC 7.1. But I couldn't get the answer.
Please Help us.
Thank You All and Regards
Joga SrinivasaDear All,
Sorry for getting back late.
Thanks for your inputs. Problem is solved using pushbutton. I gave the URL of the second Iview in the hyperlink of the pushbutton system action.
The problem with the Popup window is that it wont allow you to to go back and choose or analyze other parts of dashboard. so we adopted the pushbutton approach which takes you to another window allowing full access to the main window.
Once again, Thank you all.
Points assigned as promised.
Regards
Joga -
How to open a new window on click of a button, for printing stuffs in adf
Hi ADF Experts,
Jdeveloper 11.1.1.7.0 version.
I am having a Print Button. On click of this I want to open a new window? how is it possible. Note it should not be a popup or panelwindow.
Please suggest.
Thanks,
RoyCheck out Frank's article http://www.oracle.com/technetwork/developer-tools/adf/learnmore/95-printable-pages-1501392.pdf which come with a sample at http://www.oracle.com/technetwork/developer-tools/adf/learnmore/95-printable-pages-1501393.zip
Timo -
How to open new browser window on click of command button
Hi,
We have a requirement to open an image in new window when a command button is clicked. Is there any sample explaining how to do that?
Thanks in Advance,
PradeepHi,
I have to load an applet viewer in the new browser window. I have URL to the PDF.
I ma able to load the applet viewer in new browser window using javascript. But I have to load the new PDF if the same window in already opened.
The issue here is , i am loosing the window handle if the parent page is refreshed. I want to store the window handle in session scope variable and use the same.
How do i update the session scope variable using javascript?
Thanks and Regards,
Pradeep -
How can we open a New Window on click of a button
Dear All,
Please can anyone guide me how to open a page in A new pop up window.
Application Express 4.0.1.00.03
Thanks & regards
Arif KhadasAssalamwalkeum Tauceef,
Thanks for your reply.
For the second query where you want to refresh parent window and close the popup window,
Create a html region and give a condition to this region that it should display on a particular request and pass that request on your button click and write this javascript code in your Region SourceAccordingly I created a Region on the Calling Page and have the condition Request = REFRESH.
Now my problem is on the pop-up window how can I pass the Request as the action when button pressed is Submit and I am using an SQL Insert Action.
For such an action for button click the Request field is hidden.
Also please help me through this one for setting the Item values in the pop up window:
I have the following in Execute When Page Loads
var total = 0;
var inv = '';
var selected_inv = '';
total = opener.document.getElementById('P24_PAY_AMOUNT');
selected_inv = opener.document.getElementById('P24_PAY_INV');
$s('P23_RCP_AMOUNT_PAID', total);
//setSessionValue ('P23_RCP_AMOUNT_PAID', total);
$s('P23_INVOICES', selected_inv);
//setSessionValue ('P23_INVOICES', selected_inv);The value that I am getting for the above Items is " [object HTMLInputElement]" in Mozilla Firefox and "[object]" in Internet explorer, not sure why?
Please guide.
Thanks & Regards
Arif Khadas
Edited by: Arif Khadas on Apr 27, 2011 9:51 AM -
Pop Up Window on click of save button
Hi ,
I am very new to WebDynpro Java.
Can somebody plz help me??
My Requirement-
On Click of the Save Button ,a Pop Up window should get displayed with a message saying "SUCCESSFULLY SAVED".
Plz reply soon
Thanks In advance!!
Regards
Smitahi!
1.create a action on the button click
2.create a value node(popup)--> value attribute
set the cardinallity as 1..1 and type as com.sap.tc.webdynpro.
services.session.api.IWDWindow
3.
public void okPopup() {
// @@begin okPopup()
// get the repository content at runtime of the Web-Dynpro-
IWDWindowInfo windowInfo = (IWDWindowInfo) wdComponentAPI
.getComponentInfo().findInWindows("okWindow");//give your window name
// create the u201CokWindowu201D
IWDWindow window = wdComponentAPI.getWindowManager()
.createModalWindow(windowInfo);
// set the WindowPosition on the screen
window.setWindowPosition(300, 150);
// and show the window
window.show();
// Save WindowInstance in Context
wdContext.currentPopupElement().setWindowInstance(window);
// @@end
4.now you can take text views to show the required message in the popup window.for that you can take the message from message pool and also you can directly write the message in the text property of text view.
please get back to me if any further clarification is required.
thanks
vishal -
Which Event is invoked on clicking the Close button of AIR Window
Hello
I am trying to capture the event; which is invoked when we close the AIR window by clicking its Close button (on the top-right corner). I have tried the following; but none of them seems invoked:
Code:
newWin.stage.addEventListener(Event.CLOSING, closeHandler);
newWin.stage.addEventListener(Event.EXITING, closeHandler);
newWin.stage.addEventListener(Event.REMOVED, closeHandler);
newWin.stage.addEventListener(Event.DEACTIVATE, closeHandler);
newWin.stage.addEventListener(Event.REMOVED_FROM_STAGE, closeHandler);
The code for the said problem is something like the following:
Code:
var initOptions: NativeWindowInitOptions = new NativeWindowInitOptions();
initOptions.systemChrome = NativeWindowSystemChrome.STANDARD;
var newWin: NativeWindow = new NativeWindow(initOptions);;
newWin.stage.addEventListener(Event.CLOSING, closeHandler);
Would anybody kindly help!I wonder, no geek came forward for rescue! I am still hopeful to get a response from Adobe AIR wizards.
-
Coding a LOGOFF button for a single Webdynpro Application
Hi Experts,
Can you please help me with the coding for a LOGOFF button for a standalone Webdyn pro Application.
I did do the initial research and have the following in place.
View O/P plug => Calling Window I/P plug => Calling Window O/P plug [Type 1 Exit ].
Also, have the following coding in the Window I/P Plug.
wd_this->fire_op_logoff_plg(
close_window = ABAP_TRUE " wdy_boolean
The Problem is, When I press the LOGOFF button, a Window pops-up with "Do you want to Close this Window?" and Has 2 buttons YES/NO. If the user clicks YES, the window close and ALL IS WELL! But if the user CLICKs "NO" . The Brower is still open with the message "Application was terminated; You can close the Window". Not sure how to take it forward. Please advise.
If am totally fine, if I can close the window w/o any popup or user option.
Cheers in advance!Hi,
What you enumerated above should be all you need to code logoff:
View O/P plug => Calling Window I/P plug => Calling Window O/P plug Type 1 Exit .
Also, have the following coding in the Window I/P Plug.
wd_this->fire_op_logoff_plg(
close_window = ABAP_TRUE " wdy_boolean
Just check your sessions before and after you click the logoff button. You should see the HTTP session only while the WD app is active.
Are you saying it is not working? Did you setup the navigation link between the I->O plugs?
Is there a problem?
Regards,
George -
Headerless Portal window - Same window
Hi ALL,
I want to open a headerless portal window on clicking on a hyperlink in the application .
But I want this to opened in the same window. I do NOT want this window to be opened in a new window.
Please let me know your thoughts.
Thanks in Advance...HI Sona,
You may try this -
1. You have a dynpro application. There is a link to open EP application.
2. On this wd application view, add a ViewContainerUI Element. Add a view2 here
3. While clicking on the link, navigate controls to view2.
4. Do a form submit there, to open your EP application. (you may set this view invisible as per your req.)
5. while creating the iview, set the property of the iview to open the view in content area only.
Hope that will result in what you expect. Thanks,
Best Regards
Chander Kararia -
Opening View in new Portal Window
Hi
I have a requirement to open a new portal window on clicking a link in the portal.
I have done the required setting in 'SPRO' and given the Page ID to the link . But i am not able to make out how to make that page open in new window on clicking the link. I have tried changing the property of view to 'Launch in separate window but it didnt work.
Regards,
PuneetHi Puneet,
I also have the same issue - did you find a solution?
Thanks,
Oloy. -
EP - Logoff button in MASTHEAD
Hi,
I have a requirement to close the window when user hits Logoff button. I was able to download masthead.bak file but not able to find a place where should I put my Javascript.
Can any body help me?
Thanks in advance for your help.
Regards
JitendraHi Jitendra,
Please check openLogoffMsg() javascript function in HeaderView.jsp and check LogoffConfirmMsg.jsp file in Masthead par file and update as per you requirement.
Hope it helps
Regards
Arun
Maybe you are looking for
-
App that stores Excel files on the iPhone
Hi Can anyone recommend any please? A lot of the ones I have looked at on the App Store have bad reviews! Thanks
-
CWMS HA and MDC in the same time
Hi, One of our customer has Main DC and DR. He is required to have CWMS 2.5 in Main DC with HA for 250 ports and in case Main DC is down ,DR will be the backup which contain CWMS 2.5 for 250 without HA. He is required to have both Main DC and DR to w
-
IMac not functioning with Mavericks!!!!
I updated to Mavericks yesterday and system continues to restart as soon as i log on to my account. Says there's an (panic kernel) and just does this over and over. I roaded Mavericks with same outcome. Can i revert back to previous OS without losi
-
When converting a video into GIF, is there a way to automatically trim frames?
I'm trying to reduce the size of my GIFs but it's very time-consuming to delete the frames manually. Is there a way so for example you can"trim 'x' number of frame(s) every 'x' frame(s)"? Thank you for the help! A.
-
Assign :(Colon) to Authorization in BI 7.0
Hi All, I need to assign :(colon) to Authorization RSR_00001074 to Dimension 0CRM_SALORG. Being new to BI , I went to transcation RSECADMIN and tried followed process: RSECADMIN->USER->ASSIGNMENT->USER->change->Authorization->Dimension(0CRM_SALORG)->