hi all experts,
tell me how to save master form and detail table data in one submit button.?
without java bean coding can it do?
if need java code how should do that?
master form and detail table can edit it values. detail table has no:of rows. is it need iterrator operation?
pls help me how should do that in one button.
when i rais new no using lov it will pop up following error.
this is happening on view link which add on app module.
 EntityCache:add ERROR - new/modified row with same primary key as an existing row
 DCBindingContainer.reportException :oracle.jbo.TooManyObjectsException
 oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[EST20120000124 ].
yes friend, I select it now with dbsequence.but updatable field is can not change.it is in while new.not in never.it does not allow to change.help...
others are done in above web link. this my view link is 1 to many.
no one know how to save header and detail table using one submit button.?
my header table data in editable form, but detail table data in table.both have lov's.
dbsequence is not work well..show me using managebean java class how to do that.
Your question is not clear.
As far as saving both master and detail in the same button - that is the default way that a commit button works - you don't need to do anything special for this to work.
The error that you get at the top of this thread indicates that you are trying to insert two records with the same key value - so that is the part you need to fix.
Without specific details about the steps you are doing no one would be able to help you further.
Hi , u have stated that db sequence is not working , please check if u have created sequence for child table in db if not..
1. Create a DB sequence in the database(in your case),
2. In the ADF application, under the model project create an entity object for the table which has the primary key
3. Open the Entity Object, go to Java tab and click on the 'Edit' button to auto-generate the entity object java class
a. Select 'Generate Entity Object Class' check box
b. Under the 'Include' grouping select 'Create Method' in additions to the default selected 'Accessors' option
4. later in the Entity ObjectIMPL class overide the create method and set the primary key with the sequence name u have created.
we are going to generate our primary key like <string value><sysdate><number value>.ex: EXT 2012 0000001(EXT20120000001),.
therefore i can not use dbsequence. In here I use it generate database function. so need to know how to insert both tables?
can you give me coding how to insert both table in this type of senario.
is it using java class?