Skip to Content
author's profile photo Former Member
Former Member

Transaction Launcher in a new window

Hi All,

As we know, depending on whether the transaction launcher is stateful or not, it opens up in same window or a new window.

We have a button in a view. On click of it we call a transaction launcher. So if it is a stateful transaction launcher, then it opens in the same window. If it is not stateful, then it opens up in a new browser window independently.

My problem is with the one which opens in a new window. When we click on the button, the new window opens up but at the same time, the view which has the button also gets navigated to a new view which shows the text, that "The requested page has been opened in a new window, please press back button to go back to the last page."

In this scenario, it should not go to this page, rather it should stay in the same page.

Please let me know if any one of you have any work around which can solve this problem.

Regards,

Manas.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Aug 12, 2008 at 10:08 AM

    Hi Manas,

    I implemented a PopUp component some time ago for this task. There was a tutorial written for something similar here on SDN the link is: https://wiki.sdn.sap.com/wiki/display/CRM/OpeninganURLthroughpop-upfromWEBUIofCRM2007

    In the PopUp you do a followup navigation to the transaction you would like to call:

    data: lr_navigation TYPE REF TO if_crm_ui_navigation_service.

    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).

    lr_navigation->navigate( iv_link_id = 'your_logical_link'

    iv_data_collection = lr_col ).

    lr_col is a BOL collection of any kind of navigational data you need, can be kept empty as well.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2008 at 08:11 AM

    Hello Manas,

    If you are trying to open an External URL use instead a JavaScript function window.open(URL)

    or if you need it as modal window use window.showModalDialog(URL)

    you can trigger this event onClientClick attribute of your button.

    Good Luck

    Eli Steklov

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 07:25 AM

    Thanks a lot Carsten. This solves my problem.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.