CRUD using ADF fails to update the database table

Hi all

I am very new FAD and JDev. I use JDev 11.1.1.2.0 and oracle 10g DB.

I created the necessary
1 model, view, control files of data using JDev to a DB table control.
2 .jspx file having a "Panel Accordin ' and a page layout"Panel formLayout"to display the fields in table required on the page."

I use Panel corre layout to display data with buttons of browsers and works very well.
In the the Panel layout form, after posting the fields I added the button 'submit '. I've linked this button with the operation "Commit" by drop and simple drag.
PS: I've added the fields by simple drag / drop control of the data file maps to the table in question.

The performance of the page I find things work fine until I want to use the submit button. It just updates the UI front, but when I check in my database table I find that it has not been updated.

I am naïve. Pls Guide.
A site with step - by - development of end to end step will be very large.

Desperately waiting to get this resolved.

Thank you all

Published by: user8925296 on January 16, 2010 02:13

The performance of the page I find things work fine until I want to use the submit button.

See if your button submit has an EL expression in its property "disabled".
Depending on how you want it, delete this EL expression or add partialTriggers button to make it refresh partially each time that a field can be changed on your page changes...
(Assuming it's all ADF faces that you use. Also, see more here: Re: activate/register button )

Tags: Java

Similar Questions

  • Difficulties to use Task Scheduler to update the database of the program

    Hello

    I would like Win 7 Task Scheduler to cause Locate32.exe Explorer file update there database every 45 minutes when I am connected. (Locate32 can do it by itself, but must operate continuously in the background to do).  I'm obviously not in the right info, because it does not work for me. I got the details to enter another site, as I am not familiar with the Task Scheduler.

    Task field name walked - locate32.

    In trigger I select daily

    then by selecting a time of 5 minutes before present, to test works

    then, in the action, I'm selecting Start a program

    then in program/script I enter 'C:\ProgramFiles\Locate\locate32 '.

    then in arguments - U

    Usually it is a notification when I update of database Locate32. This does not occur with the scheduled task, and when I look in the Task Scheduler for tasks that have been made, this one does.

    I checked the user information is correct.

    Please could someone tell me what I should do instead? Thank you, Jay

    Hello

    We apologize late in the response. This problem can be caused by incorrect settings.

    To display hidden scheduled tasks, follow these steps:

    1. Click Start. In the search box, type Task Scheduler. Then, in the list programs, click Task Scheduler.

    2. On the view menu, click Show hidden tasks.

    Try to re-create the task and check if it helps:

    1. Press the Windows key + R > type taskschd.msc and press enter (it will launch the Task Scheduler)
    2. Click with the left button of the right pane on the Task Scheduler Library > open Action on the menu at the top of the page > new folder... > name MyTasks > click OK
    3. Left-click on the MyTasks > menu, choose Action > create a basic task (it open Assistant tasks)
    4. You can enter the name , for example "restart" and press Next
    5. In the trigger section, you can specify when you want to run your task, for example:
      • Select daily and press Next
      • Now, you can specify the day, time and the game to be repeated daily, after that press Next
    6. In the Action section, you can choose what you want to run, for example, restart your system to do this:
      • Choose start a program and press Next
      • in the area of program/script, type shutdown /r and press next
    7. And that's all, you can press Finish

    Let us know the status.

  • VSphere 4.0 to 5.0 upgrade fails to update the database

    Have migrated to the server hardware vCentre a virtual machine during the migration of the database and the installation on Windows 2008 R2 (64-bit). Ok all worked. vCntre and database is on the same server.

    Now try to upgrade the migrated vCentre 4.0 to 5.0 and get a failure when it is trying to upgrade the database. The original installation was improved by 3.5 to 4.0, so I wonder if this has something to do with the problem.

    Having successfully upgraded our other two vCentre servers, who were previously on 4.1.

    Get the following errors and joined all the log files.

    [21/06/2012 14:41:39] Preparation for upgrade.
    REMOVE FROM VPX_TABLE
    [21/06/2012 14:41:39] Error in RunSqlScriptNonQuery(): Got exception: ERROR [S 42, 02] invalid object [Microsoft] [SQL Server Native Client 10.0] [SQL Server] name 'VPX_TABLE '.
    REMOVE FROM VPX_INDEX_COLUMN
    [21/06/2012 14:41:39] Error in RunSqlScriptNonQuery(): Got exception: ERROR [S 42, 02] invalid object [Microsoft] [SQL Server Native Client 10.0] [SQL Server] name 'VPX_INDEX_COLUMN '.
    REMOVE FROM VPX_SCHEMA_HASH
    [21/06/2012 14:41:39] Error in RunSqlScriptNonQuery(): Got exception: ERROR [S 42, 02] invalid object [Microsoft] [SQL Server Native Client 10.0] [SQL Server] name 'VPX_SCHEMA_HASH '.
    [21/06/2012 14:41:39] Made the upgrade preparation.
    [21/06/2012 14:41:39] Info: Launch the progress bar
    [21/06/2012 14:41:39] Total of the lines run: 553
    [21/06/2012 14:41:39] Info: Upgrade from version 4.0 to version 4.1 database
    [21/06/2012 14:41:39] Upgrade-V400-to-v410\MSSQL\upgrade_mssql. SQL
    truncate table vpx_version;
    INSERT INTO vpx_version VALUES (410, "VirtualCenter 4.1 database ' ');
    If exists (select * from sysobjects)
    where id = object_id ('delete_stats_proc')
    and OBJECTPROPERTY (id, 'IsProcedure') = 1)
    DROP PROCEDURE delete_stats_proc;
    [21/06/2012 14:41:39] Error: Unable to run the command: if it exists (select * from sysobjects)
    where id = object_id ('delete_stats_proc')
    and OBJECTPROPERTY (id, 'IsProcedure') = 1)
    DROP PROCEDURE delete_stats_proc;
    [21/06/2012 14:41:39] The exception: ERROR [S 42, 02] [Microsoft] [SQL Server Native Client 10.0] [SQL Server] invalid object name 'msdb.dbo.tblExclusion '.
    [21/06/2012 14:41:39] Upgrade error: ERROR [S 42, 02] [Microsoft] [SQL Server Native Client 10.0] [SQL Server] invalid object name 'msdb.dbo.tblExclusion '.
    [21/06/2012 14:41:39] Info: Release upgrade wizard
    [21/06/2012 14:41:39] Successfully executed: alter database [VIM_VCDB] restore SIMPLE

    see if the thread below

    vCenter Server 4.1 to 5.0 upgrade FAILS

  • "Update the database", then stop playing audiobooks

    Hello.  I'm very frustrated and I hope you can help!

    I have been happily using my SansaClip for about eight months, but then a few weeks ago it stopped working correctly.

    When I turn it on, I get the message "Update the database" with a progress bar.  She fills in one or two seconds, and then for the regular menu, and looks like normal.  However, after listening to my audio book for a minute or two it just turns off.

    I tried to do a hard reset, reformatting, reset, and I've updated the firmware to 01.01.30, but no luck.

    Now, it behaves even more erratic, for example not immediately turn on, turn off even before I can choose music, etc.  The battery bar shows about 75% full.

    Any advice?

    Thank you.

    Lori

    Connect the player in MSC mode.  (Go to settings > USB Mode > MSCto put the player in MSC mode)

    Connect it to the computer.

    Then use Windows Explorer to do a Format (right click on the device and select Format)

    Next

    Unplug the unit and go to the settings menu and select "Format".

    This should clean the Clip and make it ready to transfer files again.

    You must return to the MTP mode.

  • E250 crashes to update the database

    OK, so I went and re - sync my player the other day.  Since then, when I turn it on, it starts to update the database, and then the screen goes crazy.  Nothing but colored lines.  I can stop, but it will do so when turned on.  I tried to boot from the recovery partition, and put the latest firmware files, it seemed to load, then again became 'crazy' at startup.  It will also do so if I connect to my PC and will not be detected...

    Any help would be appreciated.

    Thank you.

    Jason

    First, just for him heck of it, try to take out the battery (don't lose the screws bit) for a minute or two. It can reset.

    The problem is probably a file that has been bad or has been corrupted by mysterious Sansa bugs. If you are able to connect to the computer in MSC mode, you can run ChkDsk to zap the wrong file.

    If not, you will probably have to format and, unfortunately, lose all the music/video/pictures on it. Create a new empty folder on your desktop called sansa.fmt, go into the recovery partition and drag the sansa.fmt in there. Do not FORMAT THE PARTITION RECOVERY VIA WINDOWS - YOU're going to DESTROY VITAL FILES. When you disconnect, the Sansa will set up. Recharge a few albums at a time. Your most recent file was probably the one that crashed it.

    If it was the fault of a file that you added - and personally and not scientific, I don't think that it's always - you should look at the tags of your files and use a good tagging program, mp3tag. More information on ID3 tags here.

  • Update the database without affecting the application

    Hi all

    11.5.10.2 on linux.


    Recently, we are improving our test environment with the last group of patches of SOUL with 2 patches huge. now, the requirement is to update the database with the most recent data. I'm quite aware that refreshing db only will affect the fixes we applied. There is no work around for this?


    Kai

    Kai,

    You must apply the patches again after updating the database using "options = nocopyportion, nogenerateportion". In doing so, the part of the database apply only, and the database will be in phase with the application with respect to these two patches.

    Thank you
    Hussein

  • Impossible to update the database type in the Task Manager

    Hello

    I installed Oracle BI EE 10.1.3.4 with Oracle database 11 g (11.1.0.6.0) on my windows XP laptop.

    Also created a separate database and the schema for the Scheduler.

    Cannot update the database Type in the Task Manager for Oracle 11.1, I don't see any option for Oracle 11 g. The only available options of oracle are Oracle 8i, 9i, 10g R1 and 10g R2.

    The document on the Oracle 11.1.0.6.0 stated system requirements or higher versions are data sources supported for Oracle BI EE.

    Is someone did encounter this problem with BI EE 10.1.3.4?

    Thank you

    Simply use 10 g 2,
    Thus there is no 11G in the tool.

  • Use a script to update the MaxL substitution variables

    We use the Essbase 11.1.1 version. Can we use MaxL script for updating the substitution variables rather than using the EAS web console? We want to put the MaxL script in a batch file and plan its Windows scheduled task.

    Thanks for your help!

    Hello-

    Yes. Here is an example of script maxl-

    connection "Hypadmin" "#" on myessbaseserver.
    spool to 'mymaxl.log ';

    / * Definition of the substitution variable * /.
    ALTER database appname.databasename set variable "CurMonth" "August";

    variable display;

    spool off;
    Disconnection;
    Exit;

    You can call this maxl from a batch file at the request of windows scheduled task.

    Concerning

  • Essbase Error Error: 1002097 failed to load the database

    Hello
    I use essbase 7.1. I'm having a problem when I try to run any calc start application or database or do anything Essbase gives me an error: 1002097 failed to load the database. I restart the services, essbase, but nothing happens. Any help would be great.

    Thank you

    Browse the backup and restoration guide that is located at http://download.oracle.com/docs/cd/E10530_01/doc/nav/portal_1.htm. While he is a guide of the system 9, recovery has not changed between 7 and 9. I guess it all depends on what type of backup you did.

  • Insert the type of number by updating the database.

    Hello

    I have what seems like a simple problem, but I don't know how to solve it. I have a page that the user creates accounts for new users in the database. When the account is created, it updates the Users table in the database, and then also the Users_In_Roles table that assigns each user a role using the user ID and the ID for the role they are assigned to. In my app module method, I have an if statement that checks to see if the current connected user's role ID 1 or 2 using the ExternalContext.isUserInRole () method. If the logged in user is 1, the created user account is automatically set to 2, and if the user is 2, the created account is automatically set to 3, in other words, the new user is defined at the level of a role under user to create.

    Here's my problem. In the case statement that checks the role of the logged in user, I put a variable number of role roleID I want the new user to be, but when I try to get this number in the Users_In_Roles table, I get an error since the roleID column is a data type of number, I can't pass a variable of integer type in this column. I tried declaring the variable roleID to type the number, but then I can't set it to 2 or 3 in the case stated that it will not accept integers. Anyone know how I can configure the roleID to correct 'number' variable so that I can spend at the table?

    Thanks in advance.

    Use the constructor Number (int i). in other words, instead of setting the attribute

    yourIntValue

    Set the attribute to

    new Number (yourIntValue)

  • Sansa E280 going to update the database when it is connected to the computer

    Hello

    Just at the moment where I was getting things straightened on my drive and everything was working fine, I plugged my E280 on my computer and it says "Refresh database" on the player and my computer does not see the E280.

    I've been looking around on the forum, and there are so many different options to try (of: delete the SYSTEM folder, which I was told not; to turn off the drive and engaging the hold button and the button to rewind when connecting to the computer, etc., which I tried ~ nothing; take off Firmware and put one on; do something in Recovery Mode) , which I have no idea how do; etc.).  Sorry, but I hope you get my point... What do I do?

    Thanks for any help once more.

    Thank you clu31355.  I tried the very first thing that you said ' put in operation and allow it to update the database (if desired) before you connect. "and voila - it worked.

    These Sansas seem to be quite ticklish - who knows what will happen?

  • Insert and update the nested table

    Hello

    I created a nested table containing the following columns. I need to insert records into the nested table. And also I have to update the nested table. Please find below my table and get error message.

    Please advose...!
    SQL> create type details as object(
      2  basic number(7,2),
      3  da number(6,2),
      4  hra number(6,2),
      5  pf number(6,2),
      6  it number(6,2),
      7  gross number(7,2),
      8  ded number(6,2),
      9  net number(8,2));
     10  /
    
    Type created.
    
    SQL> create type details_t is table of details;
      2  /
    
    Type created.
    
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table emp_tab(empno number(4),name varchar2(10),details_tab details_t)
      2* nested table details_tab store as empl_details
    SQL> /
    
    Table created.
    
    
    SQL> ed
    Wrote file afiedt.buf
    
      1* insert into emp_tab values(&empno,'&name',details_t(details(&da,&hra,&pf,&it,null,null,null)))
    SQL> /
    Enter value for empno: 1
    Enter value for name: asdf
    Enter value for da: 120
    Enter value for hra: 130
    Enter value for pf: 120
    Enter value for it: 120
    old   1: insert into emp_tab values(&empno,'&name',details_t(details(&da,&hra,&pf,&it,null,null,null
    new   1: insert into emp_tab values(1,'asdf',details_t(details(120,130,120,120,null,null,null)))
    insert into emp_tab values(1,'asdf',details_t(details(120,130,120,120,null,null,null)))
                                                 *
    ERROR at line 1:
    ORA-02315: incorrect number of arguments for default constructor
    Can I use '&' while inserting records in the nested table? Yes / No?

    I do need to update also net gross, ded, columns... !!

    Please help me... !!

    Concerning
    A
    $ sqlplus scott/tiger
    
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Apr 21 16:18:16 2011
    
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> CREATE TYPE details AS OBJECT(
     basic NUMBER(7,2),
     da NUMBER(6,2),
     hra NUMBER(6,2),
     pf NUMBER(6,2),
     it NUMBER(6,2),
     gross NUMBER(7,2),
     ded NUMBER(6,2),
     net NUMBER(8,2));  2    3    4    5    6    7    8    9
     10  /
    
    Type created.
    
    SQL> CREATE TYPE details_t IS TABLE OF details;
      2  /
    
    Type created.
    
    SQL> CREATE TABLE emp_tab(empno NUMBER(4),name VARCHAR2(10),details_tab details_t)
     NESTED TABLE details_tab store as empl_details  2
      3  /
    
    Table created.
    
    SQL> INSERT INTO emp_tab VALUES(7001,'Saubhik',details_t(details(100,100,50,10,10,null,null,null)));
    
    1 row created.
    
    SQL> SELECT * FROM TABLE (SELECT details_tab FROM emp_tab WHERE empno=7001);
    
         BASIC         DA        HRA         PF         IT      GROSS        DED
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
           NET
    ----------
           100        100         50         10         10
    
    SQL> ^C
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  UPDATE TABLE (SELECT details_tab FROM emp_tab WHERE empno=7001)
      2     emp_sal
      3*    SET emp_sal.net=emp_sal.basic+emp_sal.da+emp_sal.hra
    SQL> /
    
    1 row updated.
    
    SQL> SELECT * FRM emp_tab;
    SELECT * FRM emp_tab
             *
    ERROR at line 1:
    ORA-00923: FROM keyword not found where expected
    
    SQL> SELECT * FROM emp_tab;
    
         EMPNO NAME
    ---------- ----------
    DETAILS_TAB(BASIC, DA, HRA, PF, IT, GROSS, DED, NET)
    --------------------------------------------------------------------------------
          7001 Saubhik
    DETAILS_T(DETAILS(100, 100, 50, 10, 10, NULL, NULL, 250))
    
    SQL>
    
  • LabVIEW 2013 close when I try to read the database table.

    LabVIEW 2013 close when I try to read the database table.
    I get the error message, Labview falls just crashes. I use Labview x 32 and connective Toolkit of connectivity of database on Windows 7 x 64. I connect to PostgreSQL with ODBC driver, the connection is stable.
    In my database, I have a lot of tables, I read all those without one.
    When I try to read table bad I get data then labview crash. When I restart Labview, I have no message on the error.
    Also I try to use LabSQL-1. 1a. But it has the same result.

    I found the solution.

    I think the problem was that I have very large table in my database.

    At the beginning I received data from table with next quiry:

    SELECT column1, column2 FROM 'table ';

    But when I write then:

    SELECT column1, (column2, ',') array_to_string FROM 'table ';

    all worked!

  • in bulk accumulate in plsql and update the same table.

    Hello

    I use bulk collect and update the table that I use the slider. This table has nearly 1 million records. There will be problems with my code? Any help is greatly appreciated.

    DECLARE

    terminate_reason VARCHAR2 (1000);

    time_line NUMBER;

    limit_in NUMBER;

    CURSOR cur_violations IS

    SELECT * from abc_table;

    TYPE cur_abc_table_type IS TABLE OF cur_abc_table % ROWTYPE INDEX BY PLS_INTEGER;

    cur_abc_table_rec cur_abc_table_type;

    BEGIN

    limit_in: = 5000;

    OPEN cur_abc_table.

    LOOP

    Get the cur_abc_table COLLECT in BULK

    IN limit_in LIMIT cur_abc_table_rec;

    dbms_output.put_line ('new count is' | cur_abc_table_rec.count);

    WHEN OUTPUT cur_abc_table_rec.count = 0;

    BECAUSE me in 1... cur_abc_table_rec. Count

    LOOP

    time_line: = trunc (sysdate) - cur_abc_table_rec (i) .viol_date;

    IF (time_line > 1000)

    THEN

    terminate_reason: = 'NOTWELL. "

    ON THE OTHER

    terminate_reason: = 'PUSHED ';

    END IF;

    UPDATE abc_table v

    SET

    v.pers_terminate_reason = terminate_reason;

    END LOOP;

    END LOOP;

    COMMIT;

    CLOSE Cur_abc_table;

    EXCEPTION

    WHEN no_data_found THEN

    dbms_output.put_line ('no data is found in the selection' |) SQLERRM);

    WHILE OTHERS THEN

    dbms_output.put_line ('another error' |) SQLERRM);

    END;

    Thank you

    KK

    What happened when you tried? The sliders were ' for the update of "syntax, so there is no general problem update lines inside a loop of cursor.

    The big question you have, it is that the loop is completely and totally useless. What you can do in SQL, do in SQL - not to complicate things with PL/SQL that you don't need.

  • Values entered into a textarea unwritten in the database table

    I have a very strange situation.  I have a form that has a certain number of fields, all fields of text standard apex.

    I have a button that calls a dynamic action that writes the values of these fields in their columns in the table.  No problem with this.

    I just added a textarea field defined with a maximum length of 300 characters, which maps to a new column in the database table that is defined as VARCHAR2 (300).

    I modified the PL/SQL to include the value of this new field in the database table writing.  When I run the dynamic action, everything else in the form is updated, but the text in the text not added to the table box.

    In session data, the data on the page are correct. The Session State of the textarea field is also correct.

    This isn't just a text box, it's ANY textarea I put on this page.  If I take a text field and transformed into a textarea field, the same thing happens.  If I take the new textarea field and transformed into a text field, the data gets written to the database table.

    Can someone explain this?  I can get by with only text fields, but it would be much better if I could have a field where mentions that he could properly wrap to the next line.

    Thank you!

    John

    John,

    edit your Textarea field and change in the Source Section as

    Source: always, replacing any value existing in State of Session

    Source type: column database

    and in

    Source value or Express: (write the name of the column in the data to be store)

    do not change this things your textarea data records in the database Table...

Maybe you are looking for

  • The automated help site rejects my extreme SN.

    The automated help site rejects my extreme SN.  Embarrassing.  Has anyone else had this experience < re-titled by host >

  • Lost recovery CD and Satellite 2430 201 joined...

    I have laptop of TOSHIBA Satellite 2430 201 (1) I ve lost Windows recovery CD ROM How can I get another one back. (2) is this type of laptop have integrated Wireless LAN? (3) is to have this type of computer laptop built-in mic?

  • How attached iPhone off to USB host for charing only

    How attached iPhone off to USB host for charing only How attached a motorized iPhone to USB plug for battery charing without the phone starts in normal mode? The phone should simply keep turned off and only switch to the mode of charing on its data c

  • windows HP Mini 311-1100 CTO PC upgrade

    Hi people: I hope some can help.  I just got the notice that Microsoft ends in favor of XP.  I have a Mini 311 and executed the windows Upgrade Wizard 8. She was experiencing some difficulties in HP integrated module with Bluetooth HP, Version 5.5.0.

  • After you download the sp3, PCs in loop

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: the computer is an MDG, the windows logo appears, then the screen shows nothing, then sami g force and the process repeats. safe mode opt