Updating database via form in Jdeveloper

I have an updatable form and a submit button in my jspx page. When I open the page in firefox it gives me the form and i can make changes to the data in the fields. When i click the submit button, it acts like it saved the changes, that is the page form shows the changes but when I go to check in the database everything is the same, and when i turn off firefox and run the page again, it loses the changes.
Any ideas?

Yeh thanks for the replies guys
I am using ADF and there is no code behind the submit button except the one that is automatically generated, when I drop the view into the page i click the create submit button option.
As for the commit button, I tried that, but it will not pop up if you will. It just stands there and cannot be pressed, whitened out and stuff no matter what i change. So any other suggestions?

Similar Messages

  • Not able to insert data in database via forms

    Hi there. i have been trying to insert data into my database, which i am connected to remotely. i have written some sql code for a button.
    INSERT INTO address_repository VALUES('ADD'|| :address.address_id, :address.address_street_num,
    :address.address_street_name, :address.address_suburb, :address.address_postcode, :address.address_state, :address.address_country);
    where the above are the above are textfield items. my code compiles fine, and no errors are displayed on my form, but when i click the button, nothing happens, and the page is busy, and appears to be processing something, but does nothing.

    don't write
    INSERT INTO address_repository VALUES('ADD'|| :address.address_id, :address.address_street_num,
    :address.address_street_name, :address.address_suburb, :address.address_postcode, :address.address_state, :address.address_country);
    write
    INSERT INTO address_repository (address_id, ....., ....., .....
    VALUES('ADD'|| :address.address_id, :address.address_street_num,
    :address.address_street_name, :address.address_suburb, :address.address_postcode, :address.address_state, :address.address_country);
    if the same error is still active, then we look further, ok?

  • Web form not updating database with stored procedure

    Hello
    i have a problem with the web form updating the database i have a stored procedure which i need to connect to. If i execute the procedure in the SQL it will update the database but when i run the web form i get my catch error "could not update database".
    I have read so much on the net and my code seem ok but i,m just so lost.
    stored procedure
    PROCEDURE [dbo].[UpdateCustomer]
    @ID INT,
    @Firstname VARCHAR(30),
    @Surname VARCHAR(30),
    @Age INT
    AS
    BEGIN
    UPDATE Customer
    SET Firstname = @Firstname,
    Surname = @Surname,
    Age = @Age
    WHERE CustID = @ID
    END
    update code
    try
    SqlCommand command = new SqlCommand();
    command.Connection = conn;
    command.CommandType = CommandType.StoredProcedure;
    command.CommandText = "UpdateCustomer";
    command.Connection.Open();
    SqlParameter param = new SqlParameter();
    param.ParameterName = "@ID";
    param.SqlDbType = SqlDbType.Int;
    param.Direction = ParameterDirection.Input;
    param.Value = txtCustID.Text;
    command.Parameters.Add(param);
    command.Parameters.AddWithValue("@CustID", txtCustID.Text.ToString());
    command.Parameters.AddWithValue("@Firstname", txtFirstname.Text);
    command.Parameters.AddWithValue("@Surname", txtSurname.Text);
    command.Parameters.AddWithValue("@Gender", Gender.Text.ToString());
    command.Parameters.AddWithValue("@Age" ,txtAge.Text.ToString());
    command.Parameters.AddWithValue("@Address1", txtAddress1.Text.ToString());
    command.Parameters.AddWithValue("@Address2", txtAddress2.Text.ToString());
    command.Parameters.AddWithValue("@City", txtCity.Text.ToString());
    command.Parameters.AddWithValue("@Phone", txtPhone.Text.ToString());
    command.Parameters.AddWithValue("@Mobile", txtMobile.Text.ToString());
    command.Parameters.AddWithValue("@Email", txtEmail.Text.ToString());
    command.ExecuteNonQuery();
    lblMessage.Text = "Your Record(s) Have been Updated";
    command.Connection.Close();
    catch
    lblMessage.Text = "Your Record was not updated please try again";
    Thank you for your help

    To expand on Mike's advice.
    Change your catch to:
    catch(Exception ex)
    { // Break point here
    lblMessage.Text = "Your Record was not updated please try again";
    Put a break point in where the comment says.
    Run it.
    Hover over ex or add a quickwatch ( right click it ) and see what the error and inner exception is.
    I see several problems though.
    You have way too many parameters and Age should be int.
    They are objects  - they have a type.
    It'll be a string with your code there.
    Something more like
    command.Parameters.Add("@Age", SqlDbType.Int);
    command.Parameters["@Age"].Value = Convert.ToInt32(txtAge.Text);
    Although that might not cut and paste, it's air code intended to give you the idea.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • Can't update data via ui-api

    this is my VB.NET sample code as following.
    <a href="http://odbc789.googlepages.com/b1test.rar">http://odbc789.googlepages.com/b1test.rar</a>
    I tried to edit data in matrix ( BP Foreign name column )and upadte it into database via DBdatasource.
    though the B1 return the message : success.
    but , it still don't work.
    hope somebody can tell what's wrong in my program.
    thanks lot.

    What ?? sorry , I am a rookie. I just finished my TB1300 course.
    so..
    the DBDataSource object , is only for query and binding data from DB to User interface.
    In the <b>official UI API sample</b> : <b>06.MatrixAndDataSources</b>
    when I press the "OK" button on the form , the green color <b>" success message "</b> on the status bar is ONLY a message.
    It's don't work for SAVE and UPDATE.
    <b>isn't ?????????</b>
    PS: sorry , now is weekend in my country.
        web site is the only way to research.
        hope somebody to answer my question kindly. :P

  • Update database record from email link or attachment ?

    Hello,
    Is there any way to send email from application with a link to update database record (like oracle workflow in selfservice).
    This is applied for approval process.
    Rather than the approval will log onto the application, he will click on the attachment or link then the update statement will fire.
    Is it  possible?

    You didn't add a forms version, so this is hard to guess. If you are on 10g and higher then you are using Oracle Application Server; in the installation there is the mod_plsql apache module included as well:
    http://docs.oracle.com/cd/B14099_19/web.1012/b14010/concept.htm
    so you could simply call a stored procedure via a HTTP request which updates your record. If you are on a lower version of forms you could make use of the free mod_owa module which you could configure with a plain apache installation on e.g. your database server: https://oss.oracle.com/projects/mod_owa/dist/documentation/modowa.htm
    you should implement some sort of authentication as well; both mod_owa and mod_plsql also have the facility to do so via +owa_custom+
    OWA_CUSTOM
    (see the OwaAuth directive in mod_owa for example).
    Of course you could do the very same via a custom Java Servlet; however you'd have to implement the database connection pool, the call of your stored procedure, the authentication e.g. as well which you would get for free with the apache modules.
    cheers

  • PL/SQL program not working when connect database via SqlNet

    Hi,
    This is a segment of a PL/SQL program before opening a cursor using input descriptor. It is working fine ( to get the value of unOutputCount ) without connect to a database via SqlNet, can anyone tell me why it is not working ( unOutputCount return 0)while connecting to a database via SqlNet and how to make it work without opening a cursor before DESCRIBE OUTPUT ...?
    EXEC SQL ALLOCATE DESCRIPTOR GLOBAL 'input_111'
    WITH MAX 100;
    EXEC SQL ALLOCATE DESCRIPTOR GLOBAL 'output_111'
    WITH MAX 100;
    EXEC SQL PREPARE STMT1 FROM :psSqlStatement;
    EXEC SQL DECLARE CURSOR1 CURSOR FOR STMT1;
    EXEC SQL DESCRIBE INPUT STMT1
    USING DESCRIPTOR GLOBAL 'input_111';
    /* Get count of input parameters in statement */
    EXEC SQL GET DESCRIPTOR GLOBAL 'input_111' :unInputCount = COUNT;
    EXEC SQL DESCRIBE OUTPUT STMT1
    USING DESCRIPTOR GLOBAL 'output_111';
    /* Get count of output parameters in statement */
    EXEC SQL GET DESCRIPTOR GLOBAL 'output_111'
    :unOutputCount = COUNT;

    Hi,
    Welcome to Oracle OTN Forums!
    I changed your code a little. I think this help you
    CREATE OR REPLACE
    PROCEDURE xx_test
    IS
      v_pid VARCHAR2(100);
      v_cn  VARCHAR2(100);
      v_id  VARCHAR2(1000);
      v_val VARCHAR2(1000);
      CURSOR C1
      IS
        (SELECT product_id, 'PRODUCT_ID'  cn
            FROM product1 );
      BEGIN
        FOR V1 IN C1
        LOOP
          FETCH C1 INTO v_pid, v_cn;
          dbms_output.put_line('==== '||v_pid||'==== '||v_cn);
          EXECUTE IMMEDIATE
          'SELECT product_id, DECODE(COUNT (product_id),1,MAX (product_id))||'''||V_CN||''' as val
            FROM product1
           WHERE product_id =:a
           GROUP BY product_id)' INTO v_id, v_val USING v_pid;
          dbms_output.put_line('==== '||v_id||'==== '||v_val);
          EXECUTE IMMEDIATE 'UPDATE product2 SET '||v_cn||' = ' ||''''|| v_val ||''''|| ' WHERE product_id = :b' USING v_pid;
          dbms_output.put_line('++++ '||v_cn||'++++ '||v_val||'++++ '||v_pid);
        END LOOP;
      END xx_test;

  • Can I use more than one database connections in a jdeveloper project?

    I use jdeveloper version 9.0.4.0 (build 1407),Can I use more than one database connections in one jdeveloper project?

    9.0.4 is a fairly old version, so you may only find a few people who know how it worked.
    Assuming you're using ADF BC, once known as BC4J, once know as JBO, in the project, and that the architecture hasn't changed much, then the answer is only 1 connection per project.
    Programmatically you're free to use as many connections via JEE as you see fit, but ADF BC is limited to one connection.
    CM.

  • Store and display word document in database through forms

    how can i store a word document in database through forms 6i or 10g, and display it through forms from database.
    i know how to store a binary file in database through DBMS_LOB package, but i want to do it throug forms. is it possible?
    regards

    Hi Alex
    "Create a datablock and specify the item datatype as blob"
    BUT: How to bring the document to the blob?
    Hi user 611..
    Warning: It is easy if you use an OLE-Object - but OLE is a special format. The result will not be the same as with dbms_LOB.
    We have a application with documents stored via OLE - terrible!
    OLE is no longer supported by forms 10. But webutil would help.
    I asked a similar question and got a good answer:
    OLE-Container and migration to the web
    Wolfram

  • Is there any difference in oracle database and forms database

    i want to know is there any difference in oracle database and forms 6i database
    ,if i import some file through oracle database then same data will exist in forms database or not
    thanks

    Oracle Forms is a Rapid Application Development (RAD) tool not a database. With Forms, you connect to an Oracle database to query and display data from the database as well as insert new or update existing data. Consequently, if exists in the database - you should be able to display it in a Form.
    Craig...

  • Creating Database Standard Form Analytic Workspaces

    Just been looking through the new 9.2.0.4.1 documentation and came across the following. Thought it might be useful.
    The 9.2.0.4.1 release of Oracle OLAP introduces a new concept known as �Database Standard Form� Analytic Workspaces. This is a way of constructing analytic workspaces in a standard way such that they can be used by tools such as the Analytic Workspace Manager, the Java OLAP API, and BI Beans.
    When analytic workspaces are created from a relational star-schema using the Analytic Workspace Manager, it automatically creates the analytic workspace in standard form as part of the migration process. However, if you�re migrating an Express database to Oracle OLAP, the migrated database has to be processed to be in standard form before it is usable by any of the new Oracle OLAP GUI tools.
    If you create an analytic workspace using PL/SQL or the OLAP Worksheet, of course you can create dimensions, variables, relations and so on in any form, just as you can create table structures, joins, views and columns in any form in a relational database. However, the database standard form requirement stipulates that;
    Certain objects and properties need to be found in the analytic workspace, that are used by tools such as the Analytic Workspace Manager to perform tasks such as aggregation, data loads, and OLAP API enablement. OLAP DML views (beginning with AW$) need to created in the analytic workspace, to provide metadata and to identify relationships between objects in the analytic workspace. Objects need to be registered in the OLAP Catalog, and these registrations have to be kept in sync so that the OLAP tools are aware of changes to the base objects. Data that is migrated in to an analytic workspace, from a relational star-schema using the Analytic Workspace Manager, is already in database standard form and no further work is needed. However, some work is needed to get migrated Express databases into standard form, and Oracle have provided a utility with the 9.2.0.4.1 release of Oracle OLAP to help accomplish this.
    This utility, known as CREATE_DB_STDFORM, is an OLAP DML program that takes existing Oracle Express Objects metadata in a migrated Express database, and uses this to create the additional metadata required to make the analytic workspace �database standard form�.
    Once CREATE_DB_STDFORM has been used to create this additional metadata, it can also be used to import data into the workspace either from flat files, or from Oracle tables and views. If you don�t have Express Objects metadata in the Express database, CREATE_DB_STDFORM doesn�t work, and you�ll have to use Oracle Warehouse Builder 9.2 to initially create a relational star-schema that equates to the Express database, then use the OLAP Bridge within OWB to export the data into a database standard form analytic workspace.
    CREATE_DB_STDFORM, once run, allows the migrated Express database to be accessed via BI Beans straight afterwards, as it creates all the OLAP Catalog entries required for the OLAP API. If the Express database only contains data at the lowest level (i.e. it hasn�t been rolled up), aggregation wizards in the Analytic Workspace Manager can be used to summarise the data as required.
    CREATE_DB_STDFORM doesn�t do everything, however. First of all, you need to have created Oracle Express Objects metadata within the Express database, which is an additional step and not always appropriate for all systems. In addition, you need to create time dimensions in a particular way, which may require the data model to be adjusted to meet this requirement. Lastly, any Express language programs within the Express database may need to be adjusted to remove or change commands that have changed or become obsolete.
    The new document, �Oracle OLAP Application Developers Guide Release 9.2.0.4.1�, available on metalink under note 251352.1, details how database standard form works, has code examples, and walks through the migration of the XADEMO Express database to an analytic workspace using database standard form.

    In your message, you wrote "Certain objects and properties need to be found ... aware of changes to base objects". A large bit is represented by "...". Question is whether I have any commands or package functions that I can use to set up all the proper objects and relationships to make it have database standard form, short of regressing to a ROLAP star schema and usnig the AWM wizard. I have what appears to be working MOLAP activity, all created at the OLAP worksheet prompt, and loaded with DML program. Do I really have to put that all aside and start with a star schema? No way to put my AW in standard form for OLAP API without this?

  • How to update database using Service in 11g

    Please some one provide the knowledge, how i will update database from a form and form is having multiple rows and column and and all are having different or same value.
    e.g. we have having clientName table and having column(clientname, legalContact, selfservice,usertype,details),
    We can search the data from clientName, now user can change other information except clientName can not be change but other information can change. now how i will update users changed value.

    Hi ,
    If you are looking to update the fields for a user such as description , telephone number etc then the following service needs to be used :
    UPDATE_USER_META_TABLE
    Details for this are available in : http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/c04_core.htm#CSSRG2503
    Hope this helps .
    Thanks,
    Srinath

  • Commit database in Forms

    When I made database chanes (update,insert) from forms (DB table, not data block) FORM_STATUS not chage, on commit i retrive msg FRM-40401('NO changes to save')
    Now i use dbms_transaction for define does commit needed.
    Is exist other methods or i do all right?

    Hello,
    well the database actually commited your changes despite of the error message.
    you can use the :system.message_level to overcome this.
    :system.message_level := '20';
    commit;
    :system.message_level := '0';
    this will do the trick
    null

  • Display Records Updated While Updating Database

    In my web application, an admin is allowed to login and do a mass update to a table where it could update several thousand records. These records are for when new fields are created and default values are created so that applications for older users are still able to process. Basically all I'm trying to do is display what the current status is of a database update in the form "xxx of yyyyy records updated."
    The way it works is that the admin comes to the page, specifies the field to be inserted, and hits the update button. The application goes off to this action class which processes all the updates through JDBC. Once the updates are completed, the JSP is rendered saying how many records were updated. The problem is that this processing can take 15 minutes or more sometimes and we would like to be able to see the progress as it goes. It would be ideal to have it update after every 50 or 100 records are processed.
    How can I do this while the action class is still executing?

    Carpediem104 wrote:
    I had read that thread and unfortunately, it wasn't entirely helpful. We don't use Struts and our action classes work a little bit differently. ... in that it takes only 2 parameters: HttpServletRequest and HttpServletResponse; there are no From objects passed in or action mappingsThen adapt. No one knows your system but you. There are examples in that page, and several links to other pages with several more examples.
    Carpediem104 wrote:
    . We also avoid using session variables, iframes, and beans. It will be hard to do without session variables.. And why no beans? Are you just talking EJBs or JavaBeans in general?
    Carpediem104 wrote:
    Perhaps it is still usable and I'm missing something, but I'm leaning more towards using AJAX to execute the action and then using request.setAttribute() every time the transaction is committed. Then I can use javascript to update the HTML.
    But a request attribute can store information from one request to the next, which you will need to do to get the working progress.
    One idea, provide a hook to the running process in ServletContext with unique keys to identify which process belongs to which update view. Then store the unique key in a cookie or as a URL parameter. Each submit (AJAX or not) use the ID to get the process out of the ServletContext and read the progress from there.
    How is this better than a session? It isn't just more work.
    The other option would be to use Pushlets. Pushlets use a servlet that never closes the connection to the client to continuously feed data to it. This way, your application would start a process and for doing the work and a Pushlet for displaying the progress. You pass a reference of the Pushlet to the worker and the worker regularly informs the Pushlet of its progress. The Pushlet then sends a javascript line to the client updating the display with new information.
    If you Google Pushlets you will learn how to use them.
    Edited by: Carpediem104 on Jul 29, 2008 9:19 AM

  • How to connect to an Oracle XE database from Forms

    Hello,
    I have just installed Oracle XE on my computer. After that I downloaded Oracle Developer Suite. My intention is to build programs with Forms. This forms program shall manage data stored in my Oracle XE database.
    My question is: How to connect to the Oracle XE database from forms. In forms developer I have tried to connect the database with the command Ctrl+J. Then I registered username, password and oracle instance (orcl). It will not work!
    best regards
    Håkan Axheim

    Hello,
    the tnsnames.ora must have been updated with the XE information.
    the SID for Xpress Database is always XE
    XE =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = XE)
      )Francois

  • Update backend via HCM Workflow........

    Hi All,
    I am working on an HCM Process Workflow and i need to update backend database via workflow only.
    Can anyone please suggest me what option do i have to do this....
    Is there any FM or BDC of a T-COde which i can look for....
    Please suggest.
    Guddan

    Hi guddan,
    In HR , if you need to update the infotypes there is a process.
    If you are doing an action on Employee like (change in pay or change in position) then you need to run an action or update infotypes in a sequence.
    Running an action on employee.
    There is a sequence of infotypes that needs to updated like
    1)     0000
    2)     0001
    3)     0008
    4)     u2026u2026u2026u2026u2026u2026u2026
    This particular sequence will be given by you functional consultant.
    If you are not sure of how to update the infotype in A SEQUENCE then suggest you to record a BDC for the same.
    Basically as said by Aravind you will be using those two function modules to update infotypes.
    For every action run on employee the sequence of infotypes (called info groups) are maintained in a T* table , from this t* table you can update them dynamically.
    Let us know what you want update in HR, can help you how to do it.

Maybe you are looking for

  • How to get Unique calid for users with same name in multiple domain env..

    I found we need to use "-k legacy" option for creating users in non-hosted setup.. I had two domains default as xxxx.com and the one that I created as yyyy.com When I have users with same name in two of the domains as user1.. The calid for both of th

  • Master Detail questions.

    Couple of questions around master/detail screen. I have all the necessary EO/VO/Links etc set up. The master is a simple messageComponentLayout with a primary key. The detail is an advanced table with a primary key. The links are from primary to fore

  • Customizing IFRS

    Hello Experts In our company we need to do Implementation IFRS(International Financial Reporting Standards) , Kindly guide in me in going forward for this IFRS Implementation and Kindly provide me some Configuration Material on mail. Thanks Kumar Raj

  • DHCPv6 Server. v6 IP only. Do I need IPv6 DHCP in case setting address manually. PROBLEMS

    I want network without Ipv4, only IPv6. Ipv4 is disabled on server and client. After setting IPv6 address manually to 2000:1::1/64 I still have dhcp enabled on interface. And when installing roles (dhcp, dns server) on server it gives message that no

  • How do i get my ipod to unlock if i forgot the passcode to get in

    i have a 16GB ipod touch and i turned on the passcode lock but after restting it i forgot the passcode so now i cant get to the home screen and i need help i figure out how to get into my ipod sice i forgot the passcode. PLEASE HELP?