How to open URL as a popup window through BRANCH in APEX reports

Hi
I am using APEX 4.0
I have a branch with a target type of URL. The branch is triggered by pressing a button. There is also a plsql process on the same button which fires at the process point of "On Submit-After Computations and Validations". I want to open the branch URL as the popup Window. I tried doing it with javascript, but then the plsql process doesn't execute. Any pointers will be helpful.
Thanks
Hina

You can use the apex.submit javascript function. This function allows to store some item value from session scope to database scope. So that a page process picks the correct item value. Not sure if it works with computations thou.
See the docs: JavaScript APIs
Example
Submits the current page with a REQUEST value of 'DELETE'.
apex.submit({ request:"DELETE", set:{"P1_DEPTNO":10, "P1_EMPNO":5433});
Then add a branch with type "branch to function returning URL" This page branch can be made conditional on the same request as the page process.
The returned url would be either include the javascript popup or window.open function or simply be the url. Important thing here would be to use a function that reads the url item  from database state, since at that moment the computation or page process will have set the item on database level, but it is not directly available on page level.
meaning ":p2_item" or v('P2_ITEM') should work. &P2_ITEM. in the url will probably not work.

Similar Messages

  • [Forum FAQ] How do I display disclaimer message popup window before display the SSRS report?

    Question:
    The requirements is that when you click the report on report manager you will get an popup window with the disclaimer message, only after you read this message you can click the “Agree” button, then you can continue to read the content of the report, if you
    disagree with it, you can click the “Disagree” button to back to the home or other path you want.
    Answer:
    To achieve this goal, we can add some JS or JQuery code in the report.aspx file in the path like:”C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Pages”
    Find the path of the report.aspx file and add these code in to it.
    <script type="text/javascript" src="</script">http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
     $(function() {
            var result = new RegExp('[\?&]ItemPath=([^&#]*)').exec(window.location.href)[1];
    //get the path of the folder which the report exists
            var reportFolder = result.split('%2f')[1];
    //get the report name which you want to add this pop up window.
    var reportName = result.split('%2f')[result.split('%2f').length - 1]; 
     //hide the report before you click the agree button
           document.getElementById("ui_form").style.display = "none";
                //alert(result);
                //alert(reportFolder); //test the report folder name to see if it is correct
           if (reportName == "your report name" && reportFolder=="your folder name") {           
     $("#dialog").dialog({
                    title: "jQuery Dialog Popup",
                    height: "250",
                    modal: true,
                    buttons: {
                        "Agree": {
                            text: "Agree",
                            id: "my-button-id1",
                            click: function() {
                                $(this).dialog('close');
    //display the report after you click the agree button.
    document.getElementById("ui_form").style.display = "block";                         }
                        "Disagree": {
                            text: "Disagree",
                            id: "my-button-id2",
                            click: function() {
                                location.href = '/Reports'
            else {
                document.getElementById("ui_form").style.display = "Block";
    </script>
    <div id="dialog" style="display: none; z-index:20001">
     Please make sure you have read this information and understand clearly before enter the report.
    </div>
    When you click the report you will the popup window as below:
    when you click “Agree” the report will display and when you click “Disagree” it will back to the home page.
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Question:
    The requirements is that when you click the report on report manager you will get an popup window with the disclaimer message, only after you read this message you can click the “Agree” button, then you can continue to read the content of the report, if you
    disagree with it, you can click the “Disagree” button to back to the home or other path you want.
    Answer:
    To achieve this goal, we can add some JS or JQuery code in the report.aspx file in the path like:”C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportManager\Pages”
    Find the path of the report.aspx file and add these code in to it.
    <script type="text/javascript" src="</script">http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
     $(function() {
            var result = new RegExp('[\?&]ItemPath=([^&#]*)').exec(window.location.href)[1];
    //get the path of the folder which the report exists
            var reportFolder = result.split('%2f')[1];
    //get the report name which you want to add this pop up window.
    var reportName = result.split('%2f')[result.split('%2f').length - 1]; 
     //hide the report before you click the agree button
           document.getElementById("ui_form").style.display = "none";
                //alert(result);
                //alert(reportFolder); //test the report folder name to see if it is correct
           if (reportName == "your report name" && reportFolder=="your folder name") {           
     $("#dialog").dialog({
                    title: "jQuery Dialog Popup",
                    height: "250",
                    modal: true,
                    buttons: {
                        "Agree": {
                            text: "Agree",
                            id: "my-button-id1",
                            click: function() {
                                $(this).dialog('close');
    //display the report after you click the agree button.
    document.getElementById("ui_form").style.display = "block";                         }
                        "Disagree": {
                            text: "Disagree",
                            id: "my-button-id2",
                            click: function() {
                                location.href = '/Reports'
            else {
                document.getElementById("ui_form").style.display = "Block";
    </script>
    <div id="dialog" style="display: none; z-index:20001">
     Please make sure you have read this information and understand clearly before enter the report.
    </div>
    When you click the report you will the popup window as below:
    when you click “Agree” the report will display and when you click “Disagree” it will back to the home page.
    Applies to:
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Reporting Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

  • How to open URL iView in new window

    HI,
    We are not able to open the URL iView, which is assigned to page, in new window.
    We set the property "Launch in New Window" to Launch in Separate Window but no use.
    Please let us know the solution
    Thanks

    Hi Tatayya,
    Remove the delta-link that you have done for that iview to the page. Change the necessary settings on the iview level (skip this part if you have already done). Then re-"delta-link"the iview to the page and test if it open in a different window.
    Could also be your cache, so go ..navigate via Sys adm--> Navigation -> clear cache.
    Hope that helps.
    Ray

  • How to open an image in popup window?

    HI,
    In my project there is some text and a small picture. I want
    when I click on this image a window appears with the full picture
    with only close option.
    ANy idea !!
    thanks

    Oops. Sorry bout that... :-)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:HBox width="30%" height="80%" borderStyle="solid"
    borderColor="#fffffc" borderThickness="2">
    <mx:Image source="1.jpg" width="60" height="90"
    click="navigateToURL(new URLRequest('1.jpg'),'_blank')"/>
    <mx:TextArea height="300" width="288"
    horizontalScrollPolicy="off"
    verticalScrollPolicy="off" letterSpacing="1"
    backgroundAlpha="0"
    borderThickness="0" fontSize="12" fontFamily="Times New
    Roman"
    wordWrap="true" textAlign="left" backgroundColor="#869ca7"
    color="#ffffff">
    <mx:htmlText>
    <![CDATA[
    <p>This is cardiovascular medicine.translate the
    extraordinary progress of Promote heart health. At the nucleus of
    SCVI is a richl as it iscardiovascular
    medicine.</p><p>This is cardiovascular
    medicine.translate the extraordinary progress of science and rich
    thing.</p><p>Cardiovascular medicineThis is
    cardiovascular medicine.translate the extraordinary progress.
    </p>
    ]]>
    </mx:htmlText>
    </mx:TextArea>
    </mx:HBox>
    </mx:Application>

  • Open URL in a new window by closing the parent window

    Hi Friends,
    Is there any option to open URL in a new window by closing the parent window on a button click?
    Already implemented the logics suggested in /people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications , the thread ' URL in same window '  and the standard component WDR_TEST_EXIT_PLUG .But button is not triggerring any actions .plz help me  ..............
    Regards,
    Radhika

    hi,
    Do the following steps :
    -> Make an Outbound Plug to the Window.
    ->Make the type of Outbound plug to Exit Type.
    ->Add URL of type String as a parameter to the outbound plug of Window.
    ->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont b possible ).
    To open a new URL with closing the previous one write this Code in OnAction of Button : ( this Code can be get from Code Wizard too ).
    DATA lo_zexit TYPE REF TO ig_zexit .   <zexit is name of my Component>
    lo_zexit =   wd_this->get_zexit_ctr( ).
      lo_zexit->fire_out_window_plg(
        url =   'http://www.google.com'                            " string
    I hope it helps.
    Thanx.

  • How to print preview in a popup window?

    There are couple of websites that I use frequently and they open links up into popup windows that I would like to print using print preview so I don't waste paper. Is there a way to do print preview from a popup window or can I open popup windows in a new tab?
    Please Help,
    jpmtnman

    Thanck you for your answer.
    Unfortunatly, my plugin aim to help debug javascript code. So, it's not my code which directly open popup, it's the code I'm watching. I cannot give argument to window.open.
    Correct me if I did not understand something, but your second option consist in modifying the settings of the user browser. How could I do that from a plugin ?
    Also, I realized that when I open a popup without the plugin tester(cfx run), i.e. in opening firefox the usual way, popup windows have the menubar with plugin buttons. O.o
    Is anyone know why this difference ?

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • How to open attachments in email from windows users

    How to open attachments in email from windows users.

    That would be totally dependent on what type of file has been sent. What is the windows user sending to you?

  • How to stop the Company Code popup window in MIRO!

    Hi,
    When User logs in the system and enters into the MIRO transaction, he is asked to enter the Company Code first in order to proceed further. I know that once you enter the company code then the system does not ask it to enter again during that login, however, it will asks again whenever User login the system again!
    Can someone tell that how to stop this Company Code popup window in MIRO, so that the system should not ask for the Comp Code whenever User logs in and enters into MIRO? I think there are some entries maintained in the User Master for this!
    Thanks.

    Hi,
    It is Necessary for the user to enter the company code for which he need to process the Invoice.
    First think is if the user knows ,that he is only going to do for one company code.then
    in the T code SU3.
    In the parameter TAB
    you can make the Default value for the parameter ID BUK as your Comany Code value ( Eg 1000)
    so that when ever the user does the MIRO ,it comes with that company code only.
    and if he want to do for another comapany code ,he has to use the option of Switching the comapny code.
    so this is user dependent and has to be made for all users.
    Note .the above setting works only you have entered saved and logged off and log in again.
    also ,this value gets defaulted you all the comapny codes in all screen.
    Hope so it helps.
    Regards
    Anjanna.

  • How to open url photoshop on mac OSX ?

    How to open url photoshop on mac OSX ?
    Safari doesn't know internet adress starting by "aam://" please help me...

    http://helpx.adobe.com/creative-cloud/kb/cc-download-button-gives-aam.html

  • Hi, anyone can tell me how to open a CD - ROM FOR windows 2000 and XP Version 1.1b Software by Softwire LTD?

    Hi, anyone can tell me how to open a CD - ROM FOR windows 2000 and XP Version 1.1b Software by Softwire LTD?

    Then you will need a copy of XP running in a virtual machine, or possibly bootcamp depending what Mac OS you're currently on.
    Rather expensive way to do it, but if it's Windows software, you need Windows.

  • XSLT Issue to open URL in new tab and PopUp Window through one custom style

    I have SharePoint Online Custom List that contains two columns
    Name: Single Line of Text
    URL: Hyperlink or pictures
    Using XSLT I have shown Name columns value on my home page by using below custom style in
    Itemstyle.xsl file.
    Custom style to show Link in PopUp window   itemstyle.xsl
    <xsl:template name="OpenApplicationPagePopUp" match="Row[@Style='OpenApplicationPagePopUp']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
    <xsl:call-template name="OuterTemplate.GetSafeLink">
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
    <xsl:call-template name="OuterTemplate.GetTitle">
    <xsl:with-param name="Title" select="@Title"/>
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <div class="item link-item">
    <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
    <a href="{$SafeLinkUrl}" onclick="ShowPopupDialog(GetGotoLinkUrl(this));return false;">
    <xsl:if test="$ItemsHaveStreams = 'True'">
    <xsl:attribute name="onclick">
    <xsl:value-of select="@OnClickForWebRendering"/>
    </xsl:attribute>
    </xsl:if>
    <xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
    <xsl:attribute name="onclick">
    <xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
    </xsl:attribute>
    </xsl:if>     
    <xsl:value-of select="$DisplayTitle"/>
    </a>
    </div>
    </xsl:template>
    My Requirement to show only Suggestion Box in Popup window Other Links Should be open in new Tab So please suggest me what can change in above xslt...
    Thanks
    Deepak Chauhan
    SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI Design

    Hi,
    In SharePoint 2013, we can use JSLink to achieve it.
    1. Save the following code as a js file (URLPopup.js) and upload it into the
    SiteAssets Document Library.
    // List View – Field open modal dialog Sample
    (function () {
    // Create object that have the context information about the field that we want to change it output render
    var linkFiledContext = {};
    linkFiledContext.Templates = {};
    linkFiledContext.Templates.Fields = {
    //Apply the new rendering for URL field on List View
    // "URL" is the column name.
    "URL": { "View": URLFiledTemplate }
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(linkFiledContext);
    // This function provides the rendering logic for list view
    function URLFiledTemplate(ctx) {
    var itemTitle=ctx.CurrentItem.Title;
    var urlLink=ctx.CurrentItem.URL;
    var urlDesc=ctx.CurrentItem['URL.desc'];
    if(urlLink!=null&&urlLink!=""){
    if(itemTitle=="Suggestion Box"){
    return "<a href='#' onclick=\"openModalDialog('"+urlLink+"')\">"+urlDesc+"</a>";
    }else{
    return "<a href='"+urlLink+"' target='_blank'>"+urlDesc+"</a>";
    }else{
    return "";
    function openModalDialog(url)
    var options = {
    title: "Suggestion Box",
    autoSize: true,
    url: url
    SP.UI.ModalDialog.showModalDialog(options);
    return false;
    2.Edit the list view page.
    3.Edit the list web part. Go to Miscellaneous -> JS Link.
    4.Add the following URL into the JS Link textbox.
     ~site/SiteAssets/URLPopup.js
    5.Click "OK" and save the page.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to pass field value from popup window to oninput processing of other pg

    Hi,
    I want to pass a field value from the popup window to oninput processing of main page ( from where popup window is triggered). and need to close the popup window. How to do it ?
    In the popup window's oninputprocessing, im doing some validation checks. If it passes all the validations, then only the control shd come to main page ..else it should stay in popup window only .
    Regards,
    Jothi.

    Hi Jothi,
    you can use java script to pass the value and close your popup window. use the following code.
    in your popup window:
    function passData(h1)
             window.opener.document.getElementById('var1').value = h1 ;
             window.close();
    then call this function when you finish your validations.
    in your main page layout create an input field with id as passed in the function above "var1".
    In the value attribute give it your variable as follow:
    <htmlb:inputField id      = "var1"
                              value   = "<%= var2 %>"
                              visible = "false" />
    "var2" will be assigned the value from your popup window.
    I hope this will help you..
    Regards,
    Husain

  • How to open iview in same browser window

    Hi.
    I am using EP 6.0
    I have created sever iviews of type IAC. All was working fine.
    Now suddenly the iviews have started opening in a new browser window. I have check the iview poperty "Launch in new window " . Its set to "Display in Portal Content Area".
    All I want is, when I click on any iview, a new internet explorer window should not pop up, but the iview shud open in the same window.
    Can anyone advise me how to achieve this ?
    Thanx
    Vikram

    Can you try and check what happens by changing the work protect mode as follows
    Systemadministration -> Systemconfiguration -> Service Configuration -> Applications -> com.sap.portal.epcf.loader -> Services -> epcfloader. Set the "workprotect.mode.default". After you have saved the entry. ricght click on com.sap.portal.epcf.loader in the tree menu and choose "administrate". Click on "restart".
    Check this url might be relevant for u
    ESS Links open in new windows

  • Datepicker PopUp opens in the calling PopUp window

    Hey Guys, I need some help on this...
    I have a button that opens a PopUp window, and in this PopUp I have a "Date Picker" item,
    And when I want to select a date, the calendar shows up in the same PopUp window, and I m loosing the calling PopUp(the first one).
    How can I do so, that to have my PopUp window, and the calendart to show up in another PopUp?
    Thanks in Advance

    Hi,
    that's because of the Window Name you specified. Specify another one or use the popUp2 method which will create a unique name.
    Hope that helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

Maybe you are looking for

  • SeaMonkey v2.0.4's Java applets doesn't work all the time.

    Hello. I use Mozilla's SeaMonkey v2.0.4 (using binary from mozilla.org) in Debian/Linux. I can get Java applets to work on https://eetime11.adp.com/c08e/logon but not on http://javatester.org, http://java.com/en/download/installed.jsp, and http://jav

  • How to install oracle 10g on linux 9.0

    am a student in nigeria and my name is tosin, studing oracle 10g on linux 9.0 with oracle partners NIIT. how do i install 9i and 10g on a linux 9.0.

  • How do I change the time format in the menu bar?

    I've gone to system preferences - language - date and time, and customized the time for 24 hour time with no colon between HH and MM.  The menu bar time display doesn't reflect this:-( There are some 5 year old posts about this not working, but nothi

  • Screen exit for transaction VA41

    dear all, i want to add two fields to the transaction code VA41 contract creation.can anybody tell me screen exit for this or else how to do it? regards, Debesh

  • Disable horizontal scroll bars from TOC

    Hi All, I am a silent member on this form. PLease help me with this issue. I want to disable horizontal scroll bar in the TOC pane in Webhelp. In Flash Help for some reason, it doesnt appear at all. So please can u guys help me out .... It really urg