Calling Transaction Launcher in custom popup window

Hello Experts,
I am facing a issue. I have to call transaction launcher in custom popup window.
It is working when i am calling transaction launcher in main window. but it is not working when i am trying to call transation launcher in popup window.
I have written the code to call the transaction launcher in DO_PREPARE_OUTPUT method of popup view.
Please let me know do i need to do anything extra? I am using CRM 6.0.
Thanks in Advance
Rajeev Singh.
Edited by: Rajeev Singh on Feb 9, 2012 1:08 PM

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.

Similar Messages

  • Unable to Pass Parameters to Custom PopUp Window ??

    Hi
    Please help in passing Data from an MXML  file to my POPUp window mxml
    MainMXML File :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" horizontalAlign="left" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
                import mx.events.FlexMouseEvent;
                import MyPopUpWindow;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
                private var popup:MyPopUpWindow;
                private function openPopUpWindow():void {
                    popup = PopUpManager.createPopUp(this,MyPopUpWindow,true) as MyPopUpWindow;
                    PopUpManager.centerPopUp(popup);
            ]]>
        </mx:Script>
        <mx:Canvas width="288" height="177">
           <mx:HBox id="jai">
            <mx:Image source="images/canvas.png" visible="true" height="100%" width="100%"/>
            <mx:Label id="kkk" text="Ravi"/>
            <mx:Button label="Edit" click="openPopUpWindow()"/>
        </mx:HBox>
        </mx:Canvas>   
    </mx:Application>
    =======
    MyPopuWindow.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <!-- custom popup window component - comps/MyPopUpWindow.mxml -->
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            title="My Custom PopUp Window"
            showCloseButton="true"
            close="PopUpManager.removePopUp(this)">
            <mx:Script>
                <![CDATA[
                    import mx.managers.PopUpManager;
                ]]>
            </mx:Script>
            <mx:Form>
                <mx:FormHeading label="User"/>
                <mx:FormItem label="Username">
                    <mx:TextInput id="un" />
                </mx:FormItem>
            </mx:Form>
    </mx:TitleWindow>
    On to the TextInput i need to have the value of Label kkk value . I tried with inline  binding but it didn't worked
    <mx:TextInput id="un"  text= {kkk.text}/> isn't working . please help

    Thanks for the idea, I did this way . Its working but worried as what happens if its not present inside Main Appliction.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" horizontalAlign="left" verticalAlign="middle">
        <mx:Script>
            <![CDATA[
                import mx.events.FlexMouseEvent;
                import MyPopUpWindow;
                import mx.events.FlexEvent;
                import mx.managers.PopUpManager;
                private var popup:MyPopUpWindow;
                [Bindable]
                public var str:String ;
                private function openPopUpWindow():void {
                    popup = PopUpManager.createPopUp(this,MyPopUpWindow,true) as MyPopUpWindow;
                    str = kkk.text;
                    PopUpManager.centerPopUp(popup);
            ]]>
        </mx:Script>
        <mx:Canvas width="288" height="177">
           <mx:HBox id="jai">
            <mx:Image source="images/canvas.png" visible="true" height="100%" width="100%"/>
            <mx:Label id="kkk"  text="Pavan"/>
            <mx:Button label="Edit" click="openPopUpWindow()"/>
        </mx:HBox>
        </mx:Canvas>   
    </mx:Application>
    ========
    <?xml version="1.0" encoding="utf-8"?>
    <!-- custom popup window component - comps/MyPopUpWindow.mxml -->
    <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            title="My Custom PopUp Window"
            showCloseButton="true"
            close="PopUpManager.removePopUp(this)">
            <mx:Script>
                <![CDATA[
                    import mx.core.Application;
                    import mx.managers.PopUpManager;
                ]]>
            </mx:Script>
            <mx:Form>
                <mx:FormHeading label="User"/>
                <mx:FormItem label="Username">
                    <mx:TextInput id="un" text="{Application.application.str}"/>
                </mx:FormItem>
            </mx:Form>
    </mx:TitleWindow>
    please sugest correct approach .

  • Show the custom popup window on clicking the people name in sharepoint people search result

    Show the custom popup window on clicking the people name in sharepoint people search result
    We are doing the below code to open a popup but while clicking on name link its postback the page and not opening the popup in first click but opening in second click.The same issue occurs while navigate to second page using pagination
    The below code used to show name in item template
    <button id="NameFieldLink" class="temp" style="font-size: 12px;text-decoration:none;color:#0072c6;border:0px solid #fff;background:transparent;margin-left: 1px;height: 15px;padding: 0 10px 17px 0px;text-align: left;cursor:pointer;font-family:
    Arial, Helvetica, sans-serif;" title="">_#= DisName =#_</button> 
    The below jquery code used to open popup in control search template
    ctx.OnPostRender = []; 
    ctx.OnPostRender.push(function () {
    $(".temp").on("click", function(event)
    event.preventDefault();
    $('#fadeout').show();
    $('#pop1').find('.tab-content-people').html($(this).closest('.emp-card').find('.pop-content').html());
    $('#pop1').show();
    return false;

    I believe the issue is that you are not actually searching against the result source you made in step #1.
    It's not enough to make a result source, you have to tell the search results web part to use it.
    Try this:
    1. Go to the Pages library of Search Center
    2. Create a new Search Results page
    3. Edit the page, then edit the search results web part
    4. Change the source for the search results web part to your source
    5. Add the page to your Search Center navigation
    6. Run the search on that page
    Scot
    Author,
    Microsoft SharePoint 2013 App Development
    Author,
    Professional Business Connectivity Services
    Author,
    Inside SharePoint 2013
    Blog, www.shillier.com
    Twitter, @ScotHillier
    SharePoint Trainer, Critical Path Training

  • How to make a custom popup window conditional

    I reviewed the how-to doc to create custom popup pages. It uses a javascript function in the HTML Header of the popup page:
    <script language="JavaScript" type="text/javascript">
    function callMyPopup (formItem1,formItem2,formItem3) {
    var formVal1 = document.getElementById(formItem1).value;
    var formVal2 = document.getElementById(formItem2).value;
    var formVal3 = document.getElementById(formItem3).value;
    var url;
    url = 'f?p=&APP_ID.:2:&APP_SESSION.::::P2_ENAME,P2_JOB,P2_SAL:' + formVal1 + ',' + formVal2 + ',' + formVal3 ;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    I don't know javascript -- is there a way to have the page be a popup page conditionally based on the page it's invoked from? I want to use an existing report page that's a tab page as a popup page with a conditional column link that is displayed based on if it was invoked from a specific page that's used for the pass back values. Is this all possible?

    Hi Denes,
    Thanks so much for your help. I have everything working, it's great! I'm trying to enhance this by having the Select column in my popup page (P57) be conditionally displayed based on the page it was invoked from. I've tried a couple different things. One is I have a page item on the popup page that gets set to the page it's invoked from by setting the page item in the href defined in the Post Element Text for the link in the calling page. What I can't figure out now is how to set it to null after the user selects a value from the popup page, or if they close the window without selecting a value. To make it work in all cases, the P57_FROM_PAGE page item needs to be set to null by the calling page.
    Can you give me some pointers on how to do this?
    Karen

  • Calling Transaction Launcher :

    Hi Experts,
    I have called my Z transaction from transaction launcher by BOR method. I have completed this
    properly. My requirement is to call Interction record creation Screen in webui when i press save button in Z transaction launcher.
    I tried getting flag as return parameter through "PROCESS_RETURN" method. but its not working.
    Can anybody can help me with some code for PROCESS_RETURN.
    Transaction launcher is getting called from my Custom component.
    Also, Is it possible to call webui screen using that flag ??.
    Thanks,
    Chitrakant

    Anybody any idea on this ??

  • How to call method of parent in popup window

    i hav one.mxml file which consist of getData() method
    and two.mxml which is popup window having one button i want to call getData() method on button click.
    waiting for reply.

    Usually you would dispatch an event and parents will listen for certain events.
    If you are dispatching an event yourself, you can set it to bubble up all the way so whoever is interested will act upon.
    In your case, the button click will generate MouseEvent with type of MouseEvent.CLICK.
    All you need to do is listen for it.
    private function showPanel():void {
         var dlg:Panel = new Panel();
         var btn:Button = new Button();
         dlg.addChild(btn);
         dlg.width = 300;
         dlg.height = 200;
         dlg.addEventListener(MouseEvent.CLICK, sayHello, true);
         PopUpManager.addPopUp(dlg, this, true);
         PopUpManager.centerPopUp(dlg);
    private function sayHello(event:MouseEvent):void
         trace("button in panel clicked");

  • Baseline date mesg not appear when call transaction FB60 in custom tcode

    Hi Experts,
    One of the custom tcode which calls the standard tcode FB60.
    If we give the last month date in payment date, it should shows the 'Due date is in the past' message and if we give next year as payment date i.e, more than 365 days, then show 'Baseline date foe pmnt is 700 days after the document date : check'.. These messages are coming when we call the standard tcode FB60 directly.
    But if call it in the custom tcode, these messages are not appear.
    Thanks,
    Mani.

    Hi Experts,
    One of the custom tcode which calls the standard tcode FB60.
    If we give the last month date in payment date, it should shows the 'Due date is in the past' message and if we give next year as payment date i.e, more than 365 days, then show 'Baseline date foe pmnt is 700 days after the document date : check'.. These messages are coming when we call the standard tcode FB60 directly.
    But if call it in the custom tcode, these messages are not appear.
    Thanks,
    Mani.

  • Short Dump GETWA_NOT_ASSIGNED while calling Transaction launcher in IC_WEB

    Hi Folks,
    We have a problem with Transaction Launcher profile in IC web client , after support pack implementation when i launch few R/3 transaction in Web client profile getting short dump.
    when i check ST22 transaction , i found these information in Dump.
    !) Error in ABAP application program.
    The current ABAP program "CL_CRM_IC_ABOX_ABSTRACT_URL===CP" had to be
    terminated because one of the
    statements could not be executed.
    we came to know below method not executing properly .
    CL_CRM_IC_ABOX_ABSTRACT_URL method IF_CRM_IC_ACTION_HANDLER~GET_ACTION_PROPERTY
    and also for
    CL_CRM_IC_ABOX_CONSTANTS => Object_type
    Any could you please advice on the same ....
    Regards
    raju....

    Hello Raju,
    Please apply the note 1101443. This should help you resolve the issue.
    Thanks and Regards,
    Varsha

  • Launching a centred popup window in flash cs3

    I have followed the tutorial for doing this exact thing here:
    http://www.kirupa.com/developer/mx/centered_popup.htm
    Unfortunately this is for flash 8 and the whole way buttons
    work in flash has changed. How ould you go about replicating this
    in flash cs3?
    Thanks

    Ah yes, the javascript:function call in getURL.
    This change started happening in player 9, and was completely gone in player 10.
    This type of getURL call can easily be used to perform an injection attack on the users computer, and as such has been deemed a security risk and locked down.
    No fear, there is a new method to do this same thing. (New-er actually, as this class has existed since player 7)
    ExternalInterface.call(closeWin());
    Of course, you are using Flash MX, which can only publish to player 6 or lower.... so you may need the Flash-Javascript gateway scripts to do this: http://www.communitymx.com/content/article.cfm?cid=D7491

  • Customizing Popup Windows - 'close' and 'minimize' buttons

    I am using RoboHelp 7, and while using 'Insert Image Map', I have successfully created and linked pop up windows. The code shows something as: javascript:BSSCPopup('add_order.htm',300,250). At present, it opens up on mouse click (I used <a href...></a> and it disappears on mouse click outside it, with of course drag or resize as required.
    However, how I can customize the pop up window such as adding the toolbar, or ability to 'minimize' or 'close' it, when required (the default _ and x hat we have in UI screens?  I want the control to close or minimize the pop up to remain with the user,
    Thanks
    Niti

    You can try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    You need to close and restart Firefox after toggling this setting.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can also try a different Windows theme to see if there is one that works better.

  • Transaction Launcher - External URLs

    Hello,
    I've created a link to an external URL using transaction launcher and the actual link itself works fine, but I have a couple small issues that I'd like to fix if anyone has any advice:
    First, I have it set to launch the URL in a new window, and the window pops up behind the Webclient.  Is it possible to have it pop up on top?
    Second, once the user clicks this link, in the webclient itself, they're taken to a screen that says:
    The object you have selected is starting in a new browser window. You can continue working normally in the current application. However, you may have to navigate back to the page you were working on.
    ...and then they have to click the back button to return to the screen they were on before they clicked the link.  Does anyone know how to keep the web client on whatever screen the user was already on and just launch the link in a new window without having it navigate anywhere else?
    Thanks!

    Hi TOM,
    If your requirement is to open some URL say google.com etc in a now window, then there are only 2 ways
    1) Use Transaction Launcher
    2) Use PopUp Window.
    1) If you use transaction launcher, and created the link in your direct link group then on click of the link, the URL will open in new window but you cant avaoid the message that you get in the current window. Also, if users POPUP Blocker is ON, user will never come to know why the new window has not launch.
    2) This is very simple and straight forward approch for opening URL. However, POPUP windows in WEB UI are modal windows, so say on click on a button on Account Overview Screen, i open google.com in a popup then unless i close this popup , i can not work on the account overview screen .  However, you can see the account overview screen as it is and you can resume back when the popup is closed. Also you can define the even handler on close event of pop up so you can pass the data to & fro between the webclient view and the pop up.
    to open some extrenal URL in a PopUp , You will need to create a blank view and attach it to a window. In .htm file of the view, you can use  tag IFRAME and call your external URL here.
    I have done this to open a dotNet application through web ui and it works excellently !!
    Hope its helpful.
    Thanks & Rregards
    Suchita
    PS : the popup blocked problem will still be there however, it flashes a message like pop up blocker is ON in case of using popup window

  • Transaction launcher: open URL in new window

    Dear all,
    I know many threads have already been posted about "stateful URL" created with transaction launcher, that open a new browser window AND navigate to an empty screen with the following text (which is more than useless):
    "The requested page has been opened in a new window, please press back button to go back to the last page."
    Carsteen gave some useful hints already in the following thread:
    Transaction Launcher in a new window
    But maybe someone found something new since then... At the moment I'm thinking about "simulating" a clic on the BACK button (like mentioned in this useless message), with something like :
      DATA:
      history TYPE REF TO if_bsp_wd_history_manager_disp.
      history = view_manager->get_history_manager_display( ).
      history->go_back( ).
    Any better idea ?
    Thanks & regards,
    Nicolas Busson.

    Hi Nicolas !
    How are you? :-)
    I assume that since then you have found a way to fix your issue, but as the post is not answered I can tell you that SAP has taken into account this point in SAP 702 EHP1, with a new attribute in the customizing of the transaction launcher called "Keep Work area" :
    Keep Work Area When Opening Launch Transaction in New Window
    This indicator defines whether the work area content is kept when you open a launch transaction in a new window.
    Use
    If this indicator is not set and a launch transaction opens in a new window, then the main window loads the base page of the transaction launcher into the work area.
    If this indicator is set and a launch transaction opens in a new window, then the main window keeps its current content in the work area.
    Dependencies
    This indicator is only evaluated if you have also set the indicator for using a new window.
    Imed.

  • Transaction Launcher starts popup in Background

    Hi,
    i´m using the transaction launcher to start a external URL in the CRM WebUI.
    I selected to option "Statefull" which means the transaction launcher opens a popup.
    That works fine so far.
    But the popup always starts in the background.
    Which means i have a new IE-window with my launch transaction but not directly available. It starts in the background and my SAP CRM WebUI stays in the visible session.
    Does anybody know how to change this?
    My IE version is IE6.0 SP2.
    thank you
    Best regards
    Manfred

    Hy Brian,
    thank you.
    This note seems to be the right one for this issue.
    But the note is not available for CRM 7.0.
    I opened a message for this and i hope that the note will be available for CRM 7.0 soon.
    Best regards
    Manfred

  • Opening Date Picker in popup window

    Hi All,
    I'd like to be able to use a Date Picker in a custom popup window that I've developed. When I open the date picker however, because I'm already in a popup window the date picker fills the whole of the custom popup, rather than opening in its own window.
    Is there a way to force the date picker into using a new window?
    Thanks,
    Mike

    Hi Mike;
    Thanks for the responce. My Tabular (Popup) form is wizard generated. This is the code I use to call the Popup:
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>
    <script language="JavaScript" type="text/javascript">
    function callACNEPopup (formItem1) {
    var formVal1 = document.getElementById(formItem1).value;
    var url;
    url = 'f?p=&APP_ID.:60:&FLOW_SESSION.::::P60_ACAC_UID:' + formVal1;
    wACNE = open(url,"winLov","Scrollbars=1,resizable=1,width=675,height=300");
    if (wACNE.opener == null)
    wACNE.opener = self;
    wACNE.focus();
    </script>
    The Calendar is simply a date picker.

  • How do I get a popup window to stay open with a validation failure?

    Environment:
    APEX 3.1.1.00.09 on AIX 5.3
    Oracle 10.2.0.2 EE on AIX 5.3
    Sample app on apex.oracle.com:
    Workspace: galway
    User: gwicke
    Pass: gwicke
    Steps:
    1- run Page 3
    2- select J & B Marketing from drop down
    3- select only contract from drop down
    4- click on Edit Existing Contract
    5- click on Add New Builder
    6- Enter the same builder from calling page: Builder Name: Alvarez Construction City: Baton Rouge State: LA
    7- click Add Builder
    The original version of this page would add the new builder to the database, pass the information back to the calling page and close the popup window. Cool.
    I have added a validation on the popup page (Page 4) to check for an existing builder with the same name and city.
    What I'd like to have happen is the popup window stay open so the user can see the error message with the instructions for them to click on the CANCEL button and then select the builder from the drop down list. When they click the CANCEL button I need to have the window close.
    What is happening is the window is closing as soon as the Add Builder button is clicked.
    This is because there is a region called 'scripts' that contains javascript to submit the page and close the window and the condition on the region is only that the Builder Name is not null. So, the good news is that I understand why the window is closing but I'm not sure the best way to keep it open when the error condition happens.
    Thanks very much for your help. I'm sure you recall everything about this app you helped me with many months ago. NOT!! :-)
    -gary

    Gary, I think I've got it working the way you want.
    1. I added a conditional branch to page 4 which fires on the not exists builder condition condition.
    2. I disabled the reset page process. With that running, the conditional branch to page 4 woul always fire because the builder name and city were always cleared by the time the branch executed.
    3. I noticed that the new builder did not show up in your select list until I refreshed page 2. I haven't had a chance to look at that. Maybe a branch back to page 2 from page 4 after successfully loading a new builder will take care of that.
    Bob

Maybe you are looking for