Problems w/Button events in Forms

All,
its me again. Having tried all which way to use a Popup, I thought I would write a custom JavaScript event handler for a field. I added a button. The first time around I did not add any event. Then, I went back and for the onClick event of the button, I wrote the following code
w=window.open("http://technet.oracle.com","Test","toolbars=no,scrollbars=no");
The problem is that the default code do_event(...) is not overwritten. As a result, the javascript does not work.
Pls.help
Sanjay

All,
its me again. Having tried all which way to use a Popup, I thought I would write a custom JavaScript event handler for a field. I added a button. The first time around I did not add any event. Then, I went back and for the onClick event of the button, I wrote the following code
w=window.open("http://technet.oracle.com","Test","toolbars=no,scrollbars=no");
The problem is that the default code do_event(...) is not overwritten. As a result, the javascript does not work.
Pls.help
Sanjay

Similar Messages

  • Problem wiht added button on invoice form

    I have added a custom button on invoice form.
    Scenario 1:
    I open the invoice form then the custom button is added and the et_ITEM_PRESSED event on custom button in catched. All is ok!
    Scenario 2
    I open a custom form and after close it.
    After I open the invoice form then custom button is added but et_ITEM_PRESSED event on custom button in not catched!!
    Could somebody please help me?
    Thanks

    Hi Domenico,
    It could be that the custom form gets an exception and then no other events might be caught. Try and put try...catch clauses around all your code and show messages when an error is received. This might be the cause of the problem - an unhandled exception.
    Hope it helps,
    Adele

  • How to show a message in a form 'PL/SQL Button Event Handler'

    We need validate the sal of an employee, and if it is bigger the value musts
    not be inserted.
    We trying a code like the one shown in the note 134312.1 'HOW TO PASS A
    PARAMETER FROM A PORTAL FORM TO A STORED PROCEDURE' and it works in the insert event of the insert button (using 'PL/SQL Button Event Handler') and it works, but we need to show a message that says the data wasn't inserted. How can we do this?
    The code we used is:
    declare
    v_deptno scott.emp.deptno%type;
    v_empno scott.emp.empno%type;
    v_sal scott.emp.sal%type;
    mySal scott.emp.sal%type;
    v_string varchar2(256);
    blk varchar2(10):='DEFAULT';
    begin
    select sal into mySal from scott.emp where empno=7369;
    v_deptno:=p_session.get_value_as_number(p_block_name=>blk,
    p_attribute_name=>'A_DEPTNO');
    v_empno:=p_session.get_value_as_number(p_block_name=>blk,
    p_attribute_name=>'A_EMPNO');
    v_sal:=p_session.get_value_as_number(p_block_name=>blk,
    p_attribute_name=>'A_SAL');
    v_string:='You just inserted empno: '||to_char(v_empno) ||'to deptno ->
    '||to_char(v_deptno);
    if mySal < v_sal then
    doInsert;
    else
    -- We want to display a message here, when mySal > v_sal
    end if;
    end;
    ----------------------------------

    I did something similar but wasn't using a stored procedure. Couldn't you set a flag variable once you know you're not doing the insert and in the "before displaying the form" section put an IF to check if your flag was set, and if so do an HTP.Print('You are overpaid buddy!');
    Then just reset your flag.

  • How to get a form field valud in delete PL/SQL Button Event Handler

    Hi Friend,
    I have a form. when user clicks delete button. we want to remove system dodelete function
    and add a delete script
    Under delete-top category,
    how can I get value of form EVENT_NUMBER field in form at delete PL/SQL Button Event Handler?
    DELETE FROM PTEAPP.PTE_EVENTS WHERE eventnumber = EVENT_number
    But when I try to save this form and get message as
    1721/15 PLS-00201: identifier 'EVENT_NUMBER' must be declared
    Thanks for any help!
    newuser

    I did something similar but wasn't using a stored procedure. Couldn't you set a flag variable once you know you're not doing the insert and in the "before displaying the form" section put an IF to check if your flag was set, and if so do an HTP.Print('You are overpaid buddy!');
    Then just reset your flag.

  • Problem with Submit Button in Adobe Forms Central

    I have a PDF form that I uploaded to Adobe Forms Central.  I created the fillable fields & the submit button in Forms Central.  I have several documents like this.  All have worked in the past.  Today on my latest file, the submit button doesn't always work.  I am getting some submissions, but some people have reported to me that the submit button does not work.  I tested it myself to see.  I had to create a Digital ID for myself, which seemed to work fine.  But when I click on submit, the form says "Submission Failed.  This form can no longer be submitted. Please contact the author."  I'm the author & don't know what the problem is.  Anyone know what the problem could be?

    The form is open. I should have mentioned that I made sure to check that first.  The form was created by uploading an existing PDF file that I created from a MS Word file to Adobe FormsCentral. Once the form was completed, I had a coworker test it & it worked.  We sent the form out & I have received some back, but have also received reports of the form not working.  I downloaded the form to my computer & tested it using Adobe Acrobat 9.0 Standard.  I use a Windows environment on a Dell laptop.  The form does not work for me.

  • I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    I have problems with buttons and Forms in my trial proof of Indesign CC, how can I fix it?

    Moved to InDesign forum.
    You can start by telling us what the problem is.

  • Problems in capturing the button event

    Hi
    I have created a BSP page with some buttons on it.
    I am trying to execute some code on click of the button, I am capturing the button in OnInput processing event using the following code
    event_data = cl_htmlb_manager=>get_event( runtime->server->request ).
    however the event_data is not getting populated with the button event and i am getting a null reference dump...
    can you tell me if i need to anything else apart from adding the above code.
    Thanks
    Bharath Mohan B

    Hi Bharrie,
    the online documentation describes this very clearly. You access it by double-clicking on the BSP Extension element in the Tag Browser.
    A brief snippet from the doco....
      DATA: event TYPE REF TO CL_HTMLB_EVENT.
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
          DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
          button_event ?= event.
      ENDIF.
    Cheers
    Graham Robbo

  • Standard backend service data vanishes on click of a button in HCM Forms

    Hi,
    I have a form which displays data from standard backend service SAP_PA and also from custom generic service.
    When I click on a button in the form, the data from SAP_PA is disappearing.
    Error message 'Please enter Personnel Number' is displaying.
    Please help me to resolve the issue.

    Hi Aravind,
    Thanks for your reply...
    Data is from standard backend service which is independent of user events..
    Data is displaying for the first time when form is dispalyed on the portal but when user clicks on any button, data is disappearing...
    Can you tell us the patch level of the system required for ESS MSS ??
    As of now our system patch level is 11,,
    This might be a  problem for data vanishing?

  • Setting the webservice url at run time for a execute button in adobe form

    Hi,
    I am using Data connection from the wsdl file to interact with the backend, the button generated from the data connection is of type execute which has the url of the webservice in the object property "Webservice URL" and name of the FM in the interface name. My problem is at present the form is working fine but when the same form transported to QA and PRD them the url of the webservice gets change. hence the same button wont function.
    The solution is either we do the changes manually in all the system or pass the url at run time. Please proide me the solution if there is a way to set this url in the execute button at runtime.
    Thanks in advance.
    Pooja

    Why don't you pass in the URL via an XML input file and bind a hidden text field in your form to that element in your XML? Then use javascript to modify the docReady event of the submit button to something like this:
    var url = textFieldWithURL.rawValue;
    this.event__click.submit.target = url;

  • Submit to SAP Button in Adobe Forms

    Hi,
    I have an adobe form and i have embedded it in to a Web-dynpro view.Now i have placed a "submit to sap " button on this form so that when the user clicks on this i save the contents of this form as an attachment.
    My Issue is that the control does not come back to my web-dynpro event handler after this button has been pressed.I have tried re-installing the ACF also but of no use.
    Regards
    Santosh

    Hi Santosh ,
    I do face the same problem. Did you solve your issue?. If so, please suggest me how to do it
    Thanks & regards
    Bala

  • Multiple Submit buttons on one form

    I'm developing an application that will have 4 buttons at the bottom of the form to do various things with the form information. One of the buttons will link to a separate web page for confirmation of the action. I tried to set a global variable and place an onclick event for the button which assigns a specific value for that variable. I then placed a <jsp:forward tag in my code that would be included if the global variable was the specific value which the button changes it to. I"m not sure if I'm being clear here. There is the forms page with the 4 buttons. It possesses all of this code. So the global variable is declared at the top. The variable is set if the 'Delete' button is clicked. And further down there is an if statement used to include the <jsp:forward tag when the 'Delete button has been pressed and this form is again being drawn up.
    What I describe doesn't work. The global variable I guess is reset when this form is drawn up a second time after the 'Delete' submit button is pressed. I''m not married to the way that I'm solving this problem at this point so I'll take any suggestions. But basically I want the Web Forms fields to be sent to this delete jsp so that I can confirm the command to delete the indicated record from the database. The three other buttons on this form are 'Add/Update', 'Rename', and 'Cancel'. The Add/Update and Rename buttons should also be submit buttons but they should link back to the same page as they are located on. The cancel button is to return the user to the index page. I have this working using a document.location.href command in the onclick event for that button.
    Brian

    Hi Brain. If I'm following your thoughts, you may want to consider replacing the four sumbit buttons with four radio control buttons and one submit button.
    I would suggest that you set your form action via a radio control button then, thru the form action, pass the form to a Servlet or JSP that contains some logic.
    <!doctype html public "-//w3c//dtd html 3.2 final//en">
    <html>
    <head>
    </head>
    <body>
    <!-- set your action here to go against a Servlet or JSP.  The
         Servlet or the JSP will contain the logic to Delete, Add/Update, Rename or Cancel
         based on the formAction value.
    -->
    <form action='ServletOrJSPNameHere' method='post'>
    <br> <input type='radio' name='formAction' value='Delete'>Delete
    <br> <input type='radio' name='formAction' value='Add/Update'>Add/Update
    <br> <input type='radio' name='formAction' value='Rename'>Rename
    <br> <input type='radio' name='formAction' value='Cancel'>Cancel
    <br> <input type='submit' value='submit'>
    <form>
    </body>
    </html>
    // this code would go into your Servlet, JSP, or worker class
    String formAction = request.getParamger("formAction");
    // test for null value  
    if ( formAction == null ) { 
         // reload the page with a message to pick a radio button
    else if ( formAction.equals("Delete") {
       doTheDeleteProcessing();
    else if ( formAction.equals("Add/Update") { 
       doTheAdd/UpdateProcessing();
    else if ( formAction.equals("Rename") {
       doTheRenameProcessing();
    else {
       doTheCancelProcessing();
    }I hope this helps.

  • Newsletter form activating event registration form

    I have a newsletter form in a content holder that is part of my template. When a user signs up for the newsletter while on the event registration page, it activates the event registration autoresponder email saying that they signed up for the seminar.
    Is there a bubble issue within the BC js? Any suggestions would be appreciated.
    Thanks!

    Hi,
    We want to give the customer the option of either paying by credit card on our own site (which is seamless) but we also want to give them the option of going to the paypal site which is why we have that radio button option. It seems that if the submit button is pressed but they don't go through with the payment on the paypal site that the event booking still takes place. I know about the "Pay Now" buttons that are used with Paypal standard but the option to insert the paypal payment method is available from the web forms sections of BC. I created the form using the e-commerce part of the web forms section so the option seems to be built into the form code by the BC developers. I'm just wondering whether this is a limitation of using a form with a paypal option on an event booking form. Do you know if there is a workaround, ie. whether there is any code that could check to see if the payment went through before creating the event booking?
    There's also another problem that I ran into when I did a complete test, by clicking the paypal option, and then going through with a payment on the paypal site. The payment went through successfully but then when the browser tried re-directing back to our site, I got the following error:
    ERROR: An unknown error occurred. This is most likely due to the merchant profile not being set up correctly. Please contact your system administrator for help
    I spoke to Paypal about this and they said that this was a problem with the BC code. Do you know what causes this error and what the workaround is?
    Really appreciate any further help.

  • Multiple payment option on event web forms

    I would like to be able to allow for a 1 pay and 3 pay option on a web form where it would charge the customer 3 equal payments and then turn off automatically if they choose the 3 payment option.  Has anyone figured out a way to do this form inside of BC?

    Hi,
    We want to give the customer the option of either paying by credit card on our own site (which is seamless) but we also want to give them the option of going to the paypal site which is why we have that radio button option. It seems that if the submit button is pressed but they don't go through with the payment on the paypal site that the event booking still takes place. I know about the "Pay Now" buttons that are used with Paypal standard but the option to insert the paypal payment method is available from the web forms sections of BC. I created the form using the e-commerce part of the web forms section so the option seems to be built into the form code by the BC developers. I'm just wondering whether this is a limitation of using a form with a paypal option on an event booking form. Do you know if there is a workaround, ie. whether there is any code that could check to see if the payment went through before creating the event booking?
    There's also another problem that I ran into when I did a complete test, by clicking the paypal option, and then going through with a payment on the paypal site. The payment went through successfully but then when the browser tried re-directing back to our site, I got the following error:
    ERROR: An unknown error occurred. This is most likely due to the merchant profile not being set up correctly. Please contact your system administrator for help
    I spoke to Paypal about this and they said that this was a problem with the BC code. Do you know what causes this error and what the workaround is?
    Really appreciate any further help.

  • 'Call' in PL/SQL button event handler

    I have created a form with only one 'Custom' button on it.
    In the PL/SQL button event handler, in 'Custom' event item, I
    inserted some PL/SQL code and, at the end, a call like the
    following:
    my_url:= 'PORTAL30.wwv_component_control.run_as_portlet?'
    || 'p_module_id=' || '2836550185';
    call(my_url,return_url);
    I have a compilation error:
    "PLS-00201: identifier 'CALL' must be declared"
    I also tried to put this code in 'On successful submission of a
    form'. I have no compilation error but it doesn't work.
    Anybody knows hw to solve this problem?
    Thanks.

    Hello Antonnella,
    I have a good tip for you:
    write the next scirp in the 'On successful submission of a
    form'field in the form where you want to call the component:
    declare
    l_url varchar2(2000);
    begin
    l_url := 'the url of the component you want to call' ;
    PORTAL30.wwa_app_module.set_target(l_url,'CALL');
    end;
    you can get the url from:
    develop -> call interface:show -> Example of Call from URL .
    Success,
    Haseeb

  • Button Text on Form not Displaying

    The following was posted by PGMR1998 at 09:58am on Feb 22, 2008 (Pacific) but got no response:
    I am using Adobe Acrobat Pro 8, and I have added a button to reset the form fields. The button has some text on top, but the text on the button does not display until I click down on the button in the preview pane. How can I make the button text visible always? Thanks in advance for your support..
    I'm having the same problem with the submit button on a form in Acrobat 9 Pro Extended. No matter what I do, the button text does not display. Any ideas?

    What font are you using? What is the font color set to? What font size? Can you post a sample somewhere?
    You specify the label text for a button using the Options tab of the Button Properties dialog. Describe each of the settings on this page. In particular, you can have a different label for the Up, Down, and Rollover states.
    George

Maybe you are looking for

  • Purchased movies and tv shows won't show up in iTunes on my Macbook Air

    So, I have recently begun purchasing movies and TV shows through iTunes in an attempt to further enrich my Apple ecosystem (and to have awesome movies to watch on a 5.5" screen ). I have had mixed experiences with this transition and am still having

  • Wacom pen pressure sensitivity with PS elements 9

    I was just using the free trial with CS6 and was able to get  it to ignore the pen pressure sensitivity, so that it was the same size no matter how hard i pressed down. In elements I'm having a hard time in getting it to ignore the pressure sensitivi

  • Disabling EAP-TLS

    User uses EAP-TLS - he installed certificate but now we dont want to permit him access to our wi-fi network. How to disable his access????

  • GOS objects SAP Archive Link

    Hello Experts, In transaction such as IW21, VA01, etc when we attach documents ( Excel, word, PDf's) in GOS ( Generic Services Objects) the document is stored in the Content repository and has a SAP Archive Link for e.g '&SO_KProObjectID=SOFFLOIO  4A

  • Bind DMA handle fails with Solaris 10 x86

    Our device driver and device uses no scatter gather and we have always set the sgllen filed of the DMA_ATTR to 1. Even so, ddi_dma_buf_bind_handle() would often result in more than one dma cookie for a transfer on most x86 systems. We handle this in