How to Redirect to a URL on Button Click

Hi all,
I am new to Apex and have a following Requirement
On the page I have a Field P3_CASE_ID and a Button P3_SUBMIT.
When I click the Submit Button, It should Open a new window
https://customer.peoplesoft.com/psp/C1PRD_2/EMPLOYEE/CRM/c/CALLCENTER.RC_CASE_SW.GBL?Page=RC_CASE_SW&Action=U&CASE_ID=
Above String should be Concatneted with value from P3_CASE_ID.
Say if I enter P3_CASE_ID as 123456 then a new window should be opened with following URL
https://customer.peoplesoft.com/psp/C1PRD_2/EMPLOYEE/CRM/c/CALLCENTER.RC_CASE_SW.GBL?Page=RC_CASE_SW&Action=U&CASE_ID=123456
How to do it...?
I tried following in Optional URL Redirect for the button.
javascript:popupURL('
https://customer.peoplesoft.com/psp/C1PRD_2/EMPLOYEE/CRM/c/CALLCENTER.RC_CASE_SW.GBL?Page=RC_CASE_SW&Action=U&CASE_ID=&P3_CASE_ID.');
But the P3_CASE_ID is not appended to the URL.
Thanks and Regards
Kesav
Message was edited by:
user619016

Here is some code I think you will find helpful.
http://www.oracle.com/technology/products/database/application_express/howtos/how_to_create_custom_popups.html

Similar Messages

  • How to open a Filechooser on a button click from jsp page

    can anyone tell me how to open a Filechooser on a button click from a jsp page.
    Thanks

    <input type="file" name="myfile">

  • How to display swf in full screen mode and how to redirect to a url

    Hi,
    I have 2 questions :
    Question 1 - I have a flash swf file and I want to display it in the browser in full mode meaning it should fit the browser, I have tried adding
    fscommand("fullscreen", "true");
    in the first frame of a lyaer but it does not work.
    Question 2 - How to redirect to another page at the end of the swf movie, I have tried adding :
    stop(); 
    navigateToURL( new URLRequest("*www.microsoft.com*"), "_self");
    in the last frame but it does not work.
    Thank you very very much for your assitance !!
    Terry

    "fscommand("fullscreen", "true");" only works for self-running executables, not embedded SWFs in a web page.
    To get the swf to fill the browser page, the best thing to do would be to adjust the publish settings of the "HTML Wrapper" page and copy the necessary pieces from the resultant HTML file into the HTML file you are putting the swf into.
    I have had some successes dealing with similar navigation issues by breaking up the code into multiple tasks:
    var url:String = "http://www.microsoft.com";
    var urlReq:URLRequest = new URLRequest(url);
    navigateToURL(urlReq);
    I can't guarantee that will help, but at least I tried.  :-)

  • How to call a dynamic URL on 'button press' event, in MVC-based BSP

    Hi,
    My requirement is as below:
    On selecting a row in table view, and pressing a button, I need to open a browser.
    The Browser URL depends on the row selected.
    The key field from table view, is added at the end of the URL string.
    Shortly, I can say that, I am getting a value on row selection & want to pass it to button event.
    In Views Section, there are 2 tags- (1)table view & (2)button.
    Right now, I have put the code for getting the key field, in DO_HANDLE_DATA method.
    In Button's OnClientClick method, I have called the Javascript to open the browser.
    If I now write the code to concatenate the key field value to form the dynamic URL in 'OnClick' method,
    it will be called only after the browser is opened.
    (as OnClick event is executed only after OnClientClick event is executed)
    Could anyone please tell me what event (and in which tag) can be used to solve this.
    Is there any event which is triggered, as soon as the row is selected, &  before the button press event is triggered ?
    Would really appreciate responses made to this query.
    Thanks,
    Nisha Vengal.

    Hi Nisha,
    The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
    function fn_button()
               htmlbSL(this,2,'b_row_selection:onInputProcessing()');
               window.open("new_page",target="BLANK");
    Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
    Try this out and let us know if it works for you.
    Regards,
    Saurabh

  • How to open multiple report windows on button click without losing session?

    Hi,
    JDev : 11.1.1.2.0
    I am trying to open multiple discoverer plus report windows using my ADF application.
    My requirement is that user has to select multiple reports from the screen and by clicking on submit button all the reports should be opened in different windows.
    1) Below link provided me the the first solution but I can't go with it because my page is jsff and in jsff it doesn't support form tag.
    http://andrejusb.blogspot.com/2007/07/opening-report-window-in-adf-faces.html
    2) RichGoButton also provide targetFrame property but there is not action property in it so I can't call backing bean method with RichGoButton
    3) I have tried to open report windows using javascript window.open with ExtendedRenderKitService but on discoverer side it giving error message that Discoverer Plus cannot attach same session to multiple request.
    4) I have created one jsp page in the same folder where my jsff is kept in my ADF application and on submit button click I have launch this jsp page using afConetxt.launchDialog and in jsp scriplet I have written response.sendRedirect to report url but here all report are getting open properly to seperate windwos but my ADF application session is getting timeout so after clicking on submit button it will automatically goes to login page it cann't stay with the current page.
    Hoe you have understnad my problem and please provide me if you know any other solution aprart from above mentioned 4 solutions
    Regards,
    DevD

    sURL is query parameter value that I want to pass on jsp page. It is used to set some value on jsp page.
    If this is not a right approach then let me know how to pass the parameter in jsp page.

  • CRM5.2 UI-Call a dynamic URL on button click

    Hi all, 
               My requirement is to call a dynamic url on the click of a button in the overview page. I have added a custom button in  the method  IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS , and the related code in do_handle_event.I have created a custom method for the button event. I have enhanced a custom controller and created an attribute.In the custom method created for the button event, I have written the code for retrieving the parameters to be passed to the url.
    In the layout of the view associated with the display view , I have written the following code for calling the URL in a new window.
    <%
    DATA: lr_cuco_EMA TYPE REF TO ZL_BP_CONT_BPCONT_IMPL,
          lv_url TYPE string,
          lv_url1 type string,
          lv_count type i.
      lr_cuco_EMA ?= controller->get_custom_controller( 'ZBP_CONT/BPCONT' ).
      check lr_cuco_EMA is bound.
      if lr_cuco_EMA->gv_VALUE is not initial.
      if lr_cuco_EMA->gv_COUNT IS NOT INITIAL.
      clear lr_cuco_EMA->gv_COUNT.
      endif.
      LV_URL = lr_cuco_EMA->gv_VALUE.
      Concatenate 'http:/' LV_URL  into LV_URL1.
      Concatenate '"http:/' LV_URL '"' into LV_URL.
        lv_count = lr_cuco_EMA->gv_COUNT mod '2'.
        if lv_count Ne 0.
      lv_url = lv_url1.
    endif.
      %>
         <scrpt language="Javascript">
            window.open(<%= lv_url%>).focus();
          </script>
       <%
             lr_cuco_EMA->gv_COUNT = lr_cuco_EMA->gv_COUNT + 1.
             clear lr_cuco_EMA->gv_value.
             clear lv_count.
             clear lv_url.
             clear lv_url1.
             ENDIF.
    %>
    But here my URl is getting called alternate times.If I do not write the code  by using the variable GV_COUNT the url is getting called only the first time of the button click  and to call the URL again you need to navigate back to the search page and again back to the overview page and click on the button.
    Can anyone help me regarding this? I want the URL to be called in a new page on every button click.
    Thanks in Advance,
    Chandana

    Hi Nisha,
    The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
    function fn_button()
               htmlbSL(this,2,'b_row_selection:onInputProcessing()');
               window.open("new_page",target="BLANK");
    Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
    Try this out and let us know if it works for you.
    Regards,
    Saurabh

  • How to call web service on a button click in Web UI

    Hi Experts,
    I have a requirement to call/consume external web service on a button click in CRM web UI. Can someone help me with the code sample for invoking web service from crm web ui?
    Thanks in advance.
    Cheers,
    Sumit Mittal

    Consuming external web service directly without xi system in between.
    u2022     SE80
    u2022     Create Enterprise Service-> Choose object type as u201CService Consumeru201D
    u2022     Select URL HTTP destination in the next step
    u2022     Give the WSDL url in the url point
    u2022     Give any package name or store it in the local object.
    u2022     Corresponding proxies and data types will be generated inside the enterprise service tag
    Code sample for invoking the service via report.
    u2022     Create an object of the client proxy type here itu2019s io_clientproxy.
    u2022     Declare input and output parameters as per the structure of the service input/output parameters.
    u2022     Fill in input parameters what your service expect and call the object methods for relevant task.
    REPORT  ZWEBSERVICE_CREATNUPDATE.
    DATA: io_clientproxy TYPE REF TO zzco_user_data_service .
    DATA: output_crnup TYPE zzcreate_or_update_user_data1,
          input_crnup TYPE zzcreate_or_update_user_data_1.
    DATA :
           ls_param_crnup_in TYPE zzcreate_or_update_user_data, " CU input
           ls_param_crnup TYPE zzcreate_or_update_user_data_r, "CU Response
           ls_return_crnup  TYPE zzcrm_user, " CU Response
           ls_arg0 TYPE zzcrm_user.
    ls_arg0-first_name = 'shashank'.
    ls_arg0-last_name = 'testw/ouserid'.
    ls_arg0-org_name = 'Test_Org'.
    "ls_arg0-USER_ID = '369713'.
    ls_param_crnup_in-arg0 = ls_arg0.
    input_crnup-parameters = ls_param_crnup_in.
    TRY.
        CREATE OBJECT io_clientproxy
          EXPORTING
            logical_port_name = 'LP4'.
      CATCH cx_ai_system_fault .
    ENDTRY.
    TRY.
        CALL METHOD io_clientproxy->create_or_update_user_data
          EXPORTING
            input  = input_crnup
          IMPORTING
            output = output_crnup.
      CATCH cx_ai_system_fault .
      CATCH cx_ai_application_fault .
    ENDTRY.
    ls_param_crnup = output_crnup-parameters.
    ls_return_crnup = ls_param_crnup-return.
    IF ls_return_crnup IS INITIAL.
      WRITE : 'User creation failed'.
    ELSE.
      WRITE :  'Process Status : ',ls_return_crnup-process_status,
               /'User Id : ',ls_return_crnup-user_id,
                       /'First Name :',ls_return_crnup-first_name,
               /'Last Name :',ls_return_crnup-last_name,
               /'Org Name : ',ls_return_crnup-org_name.
    ENDIF.

  • How to popup a menu when rigth button clicked?

    Hi, i have a mouse listener on a Jtree, it is working fine and now i want that when the user clicks in the right button of the mouse, a popUp menu appears with diferent options depending on the type of node....i only need to know how do make the menu to appear...
    thanks

    I have had this same problem. For me it always occurs on Mandrake (I've only tried 8.0 and 8.1), but I have never had it occur on other Linux distributions such as Red Hat or Debian.
    Quick caveat: Although Sun says that this is not a
    bug I have installed Java on 5 different computers
    with various versions of Mandrake Linux (7.1, 8.0, and
    8.1) In these installations a left click (the main
    button click) will return a mouse event with a button
    mask of BUTTON1_MASK + BUTTON3_MASK instead of simply
    BUTTON1_MASK. This makes your popup window appear on
    every mouse click instead of just right button click.
    The solution (until this bug is fixed) is to see if
    the int returned from the getModifiers() method on
    mouse event == BUTTON1_MASK + BUTTON3_MASK and if it
    does then DONT popup the window.
    Oddly enough, I've had other people test this and they
    tell me that the mouse events return the proper button
    mask but every time I've tested it I get this bug.
    Just a FYI. If you see that behavior then this is how
    to fix it.

  • Trouble with opening url on button click

    I have a project that has a button that needs to go to a url
    when i click it and it doesnt. I read the topic posted in the forum
    with the same problem...and i had already tried that....it still
    doesnt work...it work well when i preview it but when i publish
    it...it doesnt work..the url takes to a page containing a pdf
    file...the project is about 10 min long and has a size of 97MB...i
    built on a mac with a windows virtual machine...i guess that should
    not be a problem.

    Hi ksugra and welcome to our community
    The fact you built the project on a Mac running a Windows
    Virtual Machine should not factor in. From Captivate's view, it was
    running in Windows.
    What happens when you click the link? Nothing, or does a
    browser window open and attempt to display the contents but it's
    blank?
    I know you said it doesn't work when published. But where are
    you running the published file from? Your local PC or from a web
    site or a network drive?
    And lastly, you said you “read the topic posted in the
    forum with the same problem...and i had already tried that....it
    still doesnt work...”. Without a link to see which of the
    many “other topics“ you may be referring to here, it's
    impossible to know what was attempted.
    Cheers... Rick

  • How to return java objects on the button click

    hello all,
    i wonder if any body let me know ,how to return java objects on button click,
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    class base
         base()
              JFrame frame = new JFrame("Base class Message Dialog Box");
              JPanel panel = new JPanel();
              JButton buttonchildone = new JButton("Child class one");
              buttonchildone.addActionListener(new ActionListener(){
                   public actionPerformed(ActionEvent e)
                        childone ch1=new childone();
                   return ch1;
              JButton buttonchildtwo = new JButton("Child class two");
              buttonchildtwo.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e)
                        childtwo ch2=new childtwo();
                        return ch2;
              panel.add(buttonchildone);
              panel.add(buttonchildtwo);
              frame.add(panel);
              frame.setSize(300, 300);
              frame.setVisible(true);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         void show()
              System.out.println("Base class show() method");
    public class mainmethod
         public static void main(String[] args)
              base baseobj=new base();
    here my aim is to achieve dynamic polymorphism by button click's ,where based on the button click i can send back an object of childone or childtwo classes
    thanks and regard
    Mac
    Message was edited by:
    LoveOpensource

    You probably need to rethink your design. Where are these child classes going? What is using or consuming them? I agree with the message above about a button instantiating a parent field variable to one child or the other depending on which button is pressed.
    Message was edited by:
    petes1234

  • HOW TO CALL APPROVAL WORK FLOW ON BUTTON CLICK EVENT OF VISUAL WEB PART?

    Hiall,
    I created an OOB an approval work flow I want to start that approval work flow through visual web  part button click event
    In work flow Settings I selected to manually start .Is this possible ? if possible please guide me how to do this
    Thanking you,
    Arun  kumar

    Hi,
    If you have an instance of SPListItem, and know the workflow association name, you can start it. First you need to find workflow assocation instance and tell SPSite.SPWorkflowManager to start your workflow.
    See this for more information:
    http://blog.mmasood.com/2012/06/programatically-start-workflow.html
    Please remember to up-vote or mark the reply as answer if you find it helpful.

  • How to hide / unhide text baxes on button click in JSF page using javascrip

    Hi,,
    I want to hide/unhide text boxes on a button click.
    How to do it in .jspx page using javascript.

    Hi,
    refer this
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" title="#{lcRes['page.title']}">
         <af:resource type="javascript">
            function hide(evt){
                evt.findComponent('itToHide').setVisible(true);
         </af:resource>
          <af:form id="f1">
            <af:commandButton partialSubmit="true" id="cb1">
                <af:clientListener method="hide" type="action"/>
            </af:commandButton>
            <af:inputText id="itToHide" value="xx" label="this will hide" clientComponent="true"/>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>

  • How to generate .xls file on a button click in Forms 10g

    Hi
    I am using forms 10g.
    On a button click I want to generate a .csv or .xls file (data in these file should be fetched form database).
    Could you please tell me how can I do this?
    Regards

    Hello 576726,
    where do you want to store the file?
    On the client? If it uses Windows as OS and has Excel installed you can use CLIENT_OLE2, otherwise you can write files using CLIENT_TEXT_IO.
    On the server? You can use utl_file or a package that allowes to write formatted/multiple worksheets like
    https://xml-spreadsheet.samplecode.oracle.com/ or
    https://exceldocumenttype.samplecode.oracle.com/
    Another solution by Friedhold Matz is linked at Re: Gride in Oracle Formns 6i
    Regards
    Marcus
    Edited by: Marwim on 17.11.2010 07:18

  • How to diplay table row dynamically  by button click

    Hi All,
    I had a table with  with visible row count '3',   i want to display dynamic row  by a button click, mean a 4 th row need to  be added to the table with same like  row '3'.
    please help me ..
    Thanks,
    Raj.

    Hi Raju,
    while click the Add Button,
    Get the all the Rows from the Table  and Put it in to one internal table . after that append the one empty record to that internal table. then again bind to that node.
    Like following code.
      DATA lo_nd_sales TYPE REF TO if_wd_context_node.
      DATA lo_el_sales TYPE REF TO if_wd_context_element.
      DATA ls_sales TYPE wd_this->element_sales.
      DATA lt_sales TYPE wd_this->elements_sales.
    navigate from <CONTEXT> to <SALES> via lead selection
      lo_nd_sales = wd_context->get_child_node( name = wd_this->wdctx_sales ).
    get element via lead selection
      lo_el_sales = lo_nd_sales->get_element(  ).
      CALL METHOD lo_nd_sales->get_static_attributes_table
    EXPORTING
       from   = 1
       to     = 2147483647
        IMPORTING
          table  = lt_sales
      IF lt_sales IS NOT INITIAL.
        CLEAR ls_sales.
        APPEND ls_sales TO lt_sales.
        lo_nd_sales->bind_table( lt_sales ).
      ENDIF.
    Regards,
    Vijay.

  • How to load a UIView when a button clicked ? With a UIViewController ?

    Hi,
    I have a view controller which is loaded in a Window at the launch of the application. But I would like to load a UIView when I click on a button.
    I have the files below :
    - simpleAppDelegate.h
    - simpleAppDelegate.m
    - mainViewController.h
    - mainViewController.m
    How can I do with Xcode and IB ?
    Thank you a lot !
    Message was edited by: @pocalyps0

    If you want to display a second, full-screen view which has its own view controller I would recommend studying the Utility Application template (Xcode File->New Project...). This is a very instructive template and your time will be well spent even if your goal requires a different behavior.
    If you just want a smaller subview to appear on your main view, you can add a UIView in IB just as you would add a UILabel or UIButton, and change its hidden property in your code. If you'd rather not create the subview until it's needed and/or you want it to have it's own view controller, you may want to define it in a separate nib file and your study of the Utility template will probably help you see how to do this.

Maybe you are looking for

  • Multiple iTunes accounts with iPad2.

    I have the following scenario: We have purchased several iPads for our employees and we are trying to find the best way to administer them. We would like to be abble to: 1. Users to use their home computer and personal iTunes account to purchase apps

  • HT1918 delete an account

    How can i delete an itunes account?

  • How do I hook up a PC monitor to my Mac?

    Five years ago, when I was young and foolish, I bought a PC. Last evening I dismantled it and the thought struck me that maybe I could use the perfectly good monitor as an adjunct to my FCE movie making. Perhaps I could display the browser on it and

  • Script for changing InCopy assignment locations globally

    I have a book with multiple documents with hundreds of separate stories. I need a script to change the assignment locations globally within the ID document to a single folder. As it stands now, I can only change them one by one using their individual

  • Cannot copy files from mac via smb

    I have a very strange effect since I went from 10.6 to 10.7. (I am on 10.7.2 now). My Windows 7 PC can no longer copy files via SMB from the Mac to Windows. I first thought this has to do with McAfee Endpoint Encryption, since the error message is "C