Submit form to same page?

how to submit form to same page.
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
     import="java.sql.*" errorPage=""%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script>
function sample()
     document.form_Configure.submit();
</script>
</head>
<body bgcolor="#FFFDF3">
<FORM name="form_Configure">
<center>
          <p align="center"><br />
          <% String[] serverNames={"Server1", "Server2", "Server3"};%>
          DataBase Type     : <select name="DatabaseTypes"
               ONCHANGE="sample()" style=" width:211; height:211">
               <% for(int i = 0; i < serverNames.length; i++)
                %>
               <option><%=serverNames%></option>
               <% }     %>
          </select>
</center>
</FORM>
</body>
</html>
cheers
rasmi

Put the name of the page in the action attribute of the form, just like you always would :s
Or perhaps you mean that you want to submit to a different frame or something? In that case you use the target attribute and give it the name of the frame you want to submit to.

Similar Messages

  • Two forms on same page..save state of one form while submitting other.

    Hi....
    I have 2 form on same page....
    first is form on table....
    nd another is tabular form.....
    now if I make an entry in both table ,,,,and after entering data in tabular form if click on submit button of tabular for the data of tabular form get submitted,,but the data I have been enter in first form get erased.....
    now my question is how can I save state of my first form even after clicking on submit button...........
    pls,help.

    Hi Shirish,
    in your scenario you can write manual process for one form in your both forms, using this way you can achieve you functionality.
    do the above and for that manual process keep the button name as your second form button means, for two forms saving with only one button.
    i am not sure in this, but you can try something.
    Thanks
    Chandran
    Edited by: Chandran on Nov 28, 2011 2:21 AM

  • How to create a master detail form on same page in apex 4.2.1

    Hi All,
    i need to design a master detail form on same page i am not finding an option in wizard from where i can do that.
    will appreciate your suggestions.
    Thanks

    Hi James,
    I think that Mike is suggesting that you create a SQL View over the table and join together the individual primary key values into a single, unique, pseudo primary key. You can still include the individual columns in the SQL but you can then use this new column as the primary key on a form. However, you would also need to create INSTEAD OF triggers to handle inserts/updates/deletes as SQL will not allow you to update tables through a view. (See: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/create_trigger.htm#i2064426] for the Oracle details on this or Re: How to update view resp. table for an example within Apex).
    Ideally, though, you should only really need one key column - is there any need for four?
    Andy

  • Using spry select on multiple forms in same page

    Greetings-
    My apologies if this has already been answered but after a few searches I've not found my solution....
    I have a web page with 2 different forms (completely different open form and close form tags) that I'm trying to get the Spry Select Widget to work in.
    Both forms' Spry Select widgets interact as expected with the user with one exception; the second form continues to submit to the action page even if the user is trying to submit an invalid value (the docs suggested using the value of -1 so that's what I'm using). The appropriate error gets displayed to the user but the form continues to submit, which I don't want. Is there a limitation that I missed regarding the use of multiple forms in the same web page with the Spry Select Widget?
    FWIW, I'm running the app on ColdFusion and even the cfform/cfselect won't work with the Spry Widget.... I've named and id'd all forms and form elements and still no luck.
    Any ideas?
    Thanks in advance,
    Rich

    Hi Brad,
    The preamble looks reasonable.  I would like to make sure you are clear on the process.
    The data needs to be rendered twice (i.e. a 2 step job).  In the first step you create a trace file with the page count for each document in it...\trace"^define User:PageCountForTrans_@:TransCount. @$page.@LF."."
    In the second step, that trace file is brought back in as a preamble file.
    Please confirm that you are in fact passing the data twice.
    cheers
    Chris

  • On button click to fill out form on same page as report

    Hi,
    I have a report that contains a name that I want to pass in to a field in a form on a different region on the same page.
    My button located on the report is has its own column called ADD_LINK. Here is the button. <button id="apexir_btn_ADD" class="apexir-button" type="button" value="Add" onclick=""><span>Add</span></button>
    Once that button is clicked, I have the form region fade in. The region is called Add Tag to Employee, which has P4_ROWID, P4_EMPLOYEE_ID, and P4_TAG_ID.
    Once the region is displayed, I want the #NAME# to show in the P4_EMPLOYEE_ID.
    I did copy this form from another page, where I had it working before. It made more sense to move it to this page for interface purposes, so maybe that tidbit will help as well.
    If anyone has an answer to that, awesome. I am new so thanks for the help.
    Thank you.
    Jeremy

    Similar to that, except I have a button on the right-most column that I want to use. There is a button for each row, and I want that to send the name on that row into the form, so it is very similar. Also the region I am sending it to is hidden until the button is clicked, which I created a dynamic action to show it on click.
    ID Name Skills Add_Link Delete_Link
    1 Jeremy Java [Add] [Del]
    That's what 1 row of data would look like..
    So when the [Add] button is clicked the Employee_Add form should update the P4_Employee_ID with the name corresponding with the button on that row.
    Edit: It turns out that since my form item P4_Employee_ID was a popup LOV so when I changed it to a Display Only, it seems to have worked.
    Now I am just having trouble getting this form on the same page to submit the data, by clicking Create on the form. The name is showing, but then I select a Skill and then Create, and it doesn't update my table.
    It is probably because I am not getting a rowID in my form, but I am not sure.
    Thanks
    Jeremy

  • Two forms at same page

    1st my sincere thanks for all the help and suggestions so far from apex group of friends.
    I have a very critical dilevery to submit by tommorow and i am stucked on this, so please try to help me out with this...
    I have a requirement like to fill up a form and once i click the submit button the fields data will be updated in the database table DIM_INDICATOR whose structure is like this.
    CREATE TABLE  "DIM_INDICATOR"
       (     "DIMENSION_KEY" NUMBER NOT NULL ENABLE,
         "DESCRIPTION" VARCHAR2(2000),
         "INDICATOR_CODE" VARCHAR2(16) NOT NULL ENABLE,
         "INDICATOR_STATUS" VARCHAR2(3),
         "REVISION" VARCHAR2(7),
         "ID" NUMBER,
         "INDICATOR_NAME" VARCHAR2(100) NOT NULL ENABLE,
         "FORMATSTRING" VARCHAR2(20) DEFAULT '999G999G990D99',
         "FORMATSUFFIX" VARCHAR2(1) DEFAULT '%',
         "SCFA_SUBDOMAIN_ID" NUMBER,
         "PLANNED_DELIVERY" VARCHAR2(20),
         "PLANNED_DELIVERY_COMMENT" VARCHAR2(200),
         "QIX_INCLUDE_REQUESTOR" VARCHAR2(100),
         "INDICATOR_NAME_ARB" VARCHAR2(100),
         "DESCRIPTION_ARB" VARCHAR2(2000),
         "UNIT_ENG" VARCHAR2(100),
         "UNIT_ARB" VARCHAR2(100),
         "REMARKS" VARCHAR2(2000),
         "SCFA_DOMAIN_ENG" VARCHAR2(100),
         "SCFA_SUBDOMAIN_ENG" VARCHAR2(100),
         "SCFA_DOMAIN_ARB" VARCHAR2(100),
         "SCFA_SUBDOMAIN_ARB" VARCHAR2(100),
         "CREA_USER" VARCHAR2(30),
         "CREA_DATE" DATE DEFAULT sysdate,
         "MODI_USER" VARCHAR2(30),
         "MODI_DATE" DATE DEFAULT sysdate,
         "AGGREGABLE" VARCHAR2(1) DEFAULT 'N',
         "SORT_ORDER" NUMBER(5,0),
          CONSTRAINT "DIM_INDIC_DIMENSION_KEY_PK" PRIMARY KEY ("DIMENSION_KEY") ENABLE
    ALTER TABLE  "DIM_INDICATOR" ADD CONSTRAINT "DIM_INDICATOR_STATUS_FK" FOREIGN KEY ("INDICATOR_STATUS")
           REFERENCES "VPD"."ADM_INDICATOR_STATUS" ("INDICATOR_STATUS") ENABLE
    CREATE OR REPLACE TRIGGER  "DIM_INDICATOR_BFI"
      before insert or update on dim_indicator 
      for each row
    begin
      IF inserting AND :new.dimension_key IS NULL THEN
        select seq_indicators.nextval into :new.dimension_key from dual;
      :new.id := :new.dimension_key; 
      END IF;
      IF inserting THEN
        :new.crea_user := nvl(v('APP_USER'),USER);
        :new.crea_date := sysdate;
      END IF;
      IF updating THEN
        :new.modi_user := nvl(v('APP_USER'),USER);
        :new.modi_date := sysdate;
      END IF;
    end dim_indicator_bfi;
    ALTER TRIGGER  "DIM_INDICATOR_BFI" ENABLEAt the same time in the same page i have to make a tabular form (We wan to use tablular form here because we will get the functionality of add rows here) which will ask the user to fill the DESCRIPTION_ENG and DESCRIPTION_ENG columns which will update in ADM_INDICATOR_PROVIDER table whose structure is like this.
    CREATE TABLE  "ADM_INDICATOR_PROVIDER"
       (     "INDICATOR_PROVIDER_ID" NUMBER NOT NULL ENABLE,
         "INDICATOR" NUMBER NOT NULL ENABLE,
         "DATA_SOURCE" NUMBER NOT NULL ENABLE,
         "EQUATION_ENG" VARCHAR2(2000),
         "EQUATION_ARB" VARCHAR2(2000),
         "DESCRIPTION_ENG" VARCHAR2(2000),
         "DESCRIPTION_ARB" VARCHAR2(2000),
         "CREA_USER" VARCHAR2(30),
         "CREA_DATE" DATE DEFAULT sysdate,
         "MODI_USER" VARCHAR2(30),
         "MODI_DATE" DATE DEFAULT null,
          CONSTRAINT "ADM_INDICATOR_PROVIDER_PK" PRIMARY KEY ("INDICATOR_PROVIDER_ID") ENABLE,
          CONSTRAINT "ADM_INDICATOR_PROVIDER_UQ" UNIQUE ("INDICATOR", "DATA_SOURCE") ENABLE
    ALTER TABLE  "ADM_INDICATOR_PROVIDER" ADD CONSTRAINT "ADM_INDICATOR_PROVIDER_IND_FK" FOREIGN KEY ("INDICATOR")
           REFERENCES "DWH"."DIM_INDICATOR" ("DIMENSION_KEY") ENABLE
    ALTER TABLE  "ADM_INDICATOR_PROVIDER" ADD CONSTRAINT "ADM_INDICATOR_PROVIDER_PROV_FK" FOREIGN KEY ("DATA_SOURCE")
           REFERENCES "DWH"."DIM_DATA_SOURCE" ("DIMENSION_KEY") ENABLE
    CREATE OR REPLACE TRIGGER  "ADM_INDICATOR_PROVIDER_TRG"
    BEFORE INSERT OR UPDATE  ON adm_indicator_provider
    FOR EACH ROW
    BEGIN
      IF inserting AND :new.indicator_provider_id IS NULL THEN
        SELECT adm_indicator_provider_seq.nextval
        INTO :new.indicator_provider_id
        FROM dual;
      END IF;
      IF inserting THEN
        :new.crea_user := nvl(v('USER'),USER);
        :new.crea_date := sysdate;
      END IF;
      IF updating THEN
        :new.modi_user := nvl(v('USER'),USER);
        :new.modi_date := sysdate;
      END IF;
    END;
    ALTER TRIGGER  "ADM_INDICATOR_PROVIDER_TRG" ENABLE
    /NOTE : Here the DIMENSION_KEY column of DIM_INDICATOR is same as INDICATOR column of ADM_INDICATOR_PROVIDER
    So at the same page i have to show two forms,1st for dim_indicator table and other is for adm_indicator_provider table. Once the user clicks the submit button my procedure should check that 1st form is filled and ask him to fill the fields of 2nd form before updating in both the tables.(dim_indicator and adm_indicator_provider)
    I know its a big one favor i am asking for...but i am really looking for a kind reply from someone who could help me out to achieve it for sure
    Regards
    Adi

    Hello,
    I don’t think you’ll be able to find a simple wizard solution for your restrictions, especially not using tabular forms. One reason is that when you add rows to the tabular form you actually submitting the page. Any validation errors in the first table will reset all the updated/new information on the tabular form, and in case of more than one description to a single indicator you might create temporary inconsistency in your database, that might not be acceptable by your application logic restrictions, not to mention potential problems in multi-user environment.
    You should design your form manually, and consider using a view that reflects both your tables. For the long run, it will probably take you less time than forcing the wizards to do what you want (if it's even possible).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More

  • Error when trying to create 2 Forms on same page on 2 tables with ID as PK

    Hi all,
    here's the error message I get: "ORA-20001: Unable to create query and update page. ORA-20001: Unable to create form on table. ORA-20001: Error page=1 item="P1_ID" id="509501514227854745" ORA-20001: Error page=1 item="P1_ID" id="509501514227854745" has same name as existing application-level item. ORA-0000: normal, successful completion"
    What am I trying to do:
    I try to create 2 forms on the same page, each one based on tables that have PK column named "ID".
    From what I understand, HTML DB is trying to create for both forms the same "P1_ID" (P[no_page]_[column_name], right ?) hidden item in order to keep the value of the pk column...
    I think this is not right...what do you think ?
    Thanks,
    Andrei

    You cannot use multiple automated row fetch or automated DML processes on the same page where any table column names are in common between them.
    Scott

  • Report and Form on same page

    I used the wizard to create a report and form on a table. When the user hits the edit link on the report, it brings up the form (so they can edit) on a new page. Instead of this, I want the form to show on the same page as the report. What is the best way to do this? Should I create 2 regions on the same page (1 for the report and 1 for the form)?

    Bob,
    take a look at
    Re: How to get a form to appear on the same page when a button is clicked?
    at the end you can login to a (my) workspace to see how it's done.
    Leo

  • Tabular and normal form on same page

    Hi all,
    need some advice as how to submit both tabular form and a normal form on click of submit button. The tabular form is based on a different table and the normal form and like i said i need to get them to insert into their adjacent tables at the same time..
    thanks guys...

    Hi Stefan,
    You might find it useful to review the behaviour of the Detail page in the Master-Detail form within the APEX Sample Application, where the modifications made to the Forms region (based on Master table) and the Tabular form region (based on Detail table), are saved by clicking one button. If you're working with APEX 4.0, install the Sample Database Application, run it and then select the "Orders" tab. The Orders page, pg 4, is the Master page, displaying information on customer orders. If you click on the edit link for one of the rows, say for example the customer 'Bradley, Eugene', this will branch to the Detail page, pg 29 of the Sample Application. The "Save Changes" button will save changes made to both regions of the page. The Form region changes are saved via an Automatic Page Processing (DML) process, and changes to the Detail region are done via Multi Row Update (MRU) and Multi Row Delete (MRD) processes.
    I hope this helps.
    Regards,
    Hilary

  • Unable to submit form on web page using Invoke-WebRequest

    Looking to automate the Web search on HP's website by serial number to get the warranty data.  I am able to successfully get back the web page, and I can populate the fields in the form. However, when I submit the POST, I don't seem to get back any
    data.
    Please look at the below script and tell me what I'm doing wrong. I am following the FACEBOOK "Example 2" from the Get-Help in PowerShell 3.0.
    $Serial = "CND1076GST"
    $Url = "http://h20566.www2.hp.com/portal/site/hpsc/public/wc/home/"
    $r = Invoke-WebRequest -Uri $Url -SessionVariable HP
    If ($r.StatusDescription -eq "OK" ) {
    Write-Host $r.StatusDescription
    $HP
    $form = $r.Forms.Item("wcFormDataItem")
    $form.Fields["serialNumber0"] = $Serial
    $r2 = Invoke-WebRequest -Uri ($Url + $form.Action) -WebSession $HP -Method POST -Body $form.Fields
    $r2.Content | Out-File c:\temp\test.htm -Force
    Write-Host $r2.StatusDescription
    } Else {
    Write-Host $r.StatusDescription
    Levi Stevens | Technical Consultant Dell Services

    This is how easy it is to lookup the same data from Dell.
    $GUID = "cac8daa8-6699-466b-a3d3-f07e571fba1f"
    $AppName = "Dell Warranty"
    $ServiceTag = "5LCQSY1"
    $WebProxy=New-WebServiceProxy -Uri http://xserv.dell.com/services/assetservice.asmx
    $WarrantyInformation=$WebProxy.GetAssetInformation($GUID,"Dell Warranty",$ServiceTag)
    $WarrantyInformation | Select-Object -ExpandProperty Entitlements
    Levi Stevens | Technical Consultant Dell Services

  • Two tabular form on the same page

    Hi,
    There is a tutorial or a standard way to build two tabular form on same page?
    thanks in advance
    lukx

    Hi,
    You can see this example also.
    http://htmldb.oracle.com/pls/otn/f?p=31517:163:1033737280330848:::RP,::
    Thanks
    Tauceef

  • IF Form region AND report + search tool in same page THEN = problem

    Helllo everybody
    I posted an initial and now the advanced as I received helpful comments but still is unsolved:
    Problem:
    If I have a Form, and a Report With a Search feature on the same page the problem is that when I click on the button of Search to find records in the Report, the page reloads as it goes and returs to the server. Alright, however, that reloading causes the Form to submit data while there is no data because I was not working with the Form. When the report gets the "submission of the Form" it receives all empty data and it complains as it cannot have Null values in its rows.
    Solution:
    The thing would be to tell the form not to submit anything unless expressley pressed the button Create or Save. It seems that these buttons activate when the page is reloaded I mean reloaded by haiving pressed the button Search of the Reports region.
    The helpful comments were in the direction of going to Processes, Automatic Row Processing and then choosing a conditional for processing of the Form, that it, it would only activate (submit itself if that condition is met)
    So I go to PL/SQL Function body Returning a boolean and I paste this: RETURN :REQUEST IN('SAVE','CREATE');
    but the problem continues unsolved, that doesnt help. It must be very close but there is something I am missing
    thank you very much
    Alvaro
    Edited by: user12155340 on 18-Nov-2009 15:04

    Hi,
    I think this is double post.
    BUTTON CLICK ON SEARCH ITEM CAUSES OTHER REGIONS (FORM) IN TABLE TO ERRORS
    Please read my last comment from that link.
    Application express forum might give you better and precise answer.
    You need just figure out how set conditions
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#sthref149
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm#sthref237
    Br, Jari
    Edited by: jarola on Nov 19, 2009 12:51 PM
    BTW, I remember that there was just few days ago same kind question answered in Application Express forum.
    I post link if I find it. You may try find it also

  • How to make a link in a report open a Form in a different region of the same page ?

    Hi,
    I developped a report and a form for the same table. I also created a link and used it in my report so that when I click on the link of one record, the form is opened and display this record.
    My problem is that when I include my report as a portlet and I click on a link, the form is opened in full screen mode by replacing the page containing my report.
    What should I do in order to open this form in another region of the same page ?
    Thanks a lot

    I presume that the two regions are working fine with their individual buttons and your issue is how to make them both save with one button.
    Here is how
    a. You will have 2 ApplyMRU and 1 ApplyMRD processes for each of the regions. Right? Lets say you have 2 "Save" (i.e. label=Save) buttons, one has name SUBMIT and the other SAVE ( SUBMIT and SAVE being the requests that will be sent when they are clicked , respectively)
    b. Make the Display condition on one of the buttons 'Never'. Now it won't show when you run the page. Lets say you made SAVE's conditional Display 'Never'
    c. Go and change the condition on all ApplyMRU and ApplyMRD processes from "When Button Pressed" to "Request is contains in Expression1". In Expression1 enter SUBMIT,SAVERegards

  • Using VO as form and table on same page

    Hi,
    We are facing some issues while using same view object on one page. The view object is dropped as input form and as table on same page. There are few fields in the input form that have autosubmit property set to true. Now while entering the data into form, after clicking any autosubmit field, if we refresh the page, then new row gets created in table with value of the auto submit field. This is in cache only and not created in DB. We tried by exposing two instances of same view object in application module but still same issue. Finally we created two view object, one which is EO based and another ready only through query. Its working fine now. But is there any other possible solution, without creating two view objects?
    Jdev: 11.1.1.6.
    Thanks

    Hey Ami,
    I've tried understanding your problem but i'm not sure if i could.
    The problem is that you can insert via the form but it doesn't update the table ?
    Is that it ?
    Regards,
    Frederico.

  • Form and report on the same page...

    Hi,
    I want to have a form and report on the same page... as soon as user enters the information and submit the form via button then the report should be able to display the addition...
    may I know how to accomplish this...
    Thanks in advance

    Hi
    Can you try like this
    1.First create an empty page and add a html region and template as form region and add the necessary fields to insert into table
    2. create a another region with type as "SQL Query" and template as report region and add the necessary fields for the reports.
    Once u entered the details into form region and created process and insert into table and then automatically the report region query will fetch the recently added row and displays in the report.
    Hopes this might helps you.
    Thanks & Regards
    Srikkanth.M

Maybe you are looking for