Error ORA-01790: for INSERT in master detail form
Gidday;
I get the error message 'ORA-01790: expression must have same datatype as corresponding expression' when I attempt an insert operation in the detail region of a master/detail form.
I have checked previous entries of this error I could find - as far as I can tell the parent key defaults are correct.
It seems one of the factors could be that the tables are not within the 'home' schema for the application. I have created a similar default master detail form on the tables, with the home schema matching that for the tables. Within my major application I have ensured the correct schema is referenced in all fields (all those I could find - in the Report Attributes / Column Attributes area).
I just cannot find which expressions are mis-matching their datatypes.
thanks; DS
Hi,
According to [http://ora-01790.ora-code.com] the error is raised because "A SELECT list item corresponds to a SELECT list item with a different datatype in another query of the same set expression." Do you have any Select Lists on your page? If you do, is the "return value" of the same datatype as for the underlying field?
One thing to try in these circumstances is to click the Debug link on the Developer's toolbar at the bottom of the page and then try to insert your record. You will get a whole stream of messages appear on the left of the page and the error should become obvious.
You could also check that all the defaults you have set do not contain spaces or linefeeds at the end - I have seen this cause issues before.
Andy
Similar Messages
-
HELP: Error while insert in master-detail form!!!
Hello
I have created a master-detail form and when I tried to insert a new record I got an error that the field on the detail table that references the primary key on the master table can not be null. I don't understand this error because I thought that when you create a master-detail form and you insert a new record the field that make the references in the detail table to the primary key on the master table will be automatically filled, am I wrong??. Can anybody tell me what is going on??. The primary key of my master table is filled with a trigger before insert, is that the problem??.
Please Help me is really urgent
Ana MariaI am still new to this, but maybe this will help.
1. Double check that your foreign key link definition in the detail table is referencing the correct column in the master table. If this is not present or referencing the column, this may be causing the problem. Self evident, but sometimes it is the simple things that get us.
2. I have not used a trigger yet, but could there be validation being done in the form before the trigger is firing. Therefore, there would not be a value in the detail part of the form.
Hope this was of some help. -
Inserting on Master Detail form
Hello,
I have created two tables. One I'm using as my master form and the other for my detail form.
Table 1
CREATE TABLE AGENCY (
AGY_ID NUMBER (9) NOT NULL,
AGY VARCHAR2 (1) NOT NULL,
AGY_DESC VARCHAR2 (10) NOT NULL,
AGY_DESC_LONG VARCHAR2 (100),
CONSTRAINT PK_AGENCY
PRIMARY KEY ( AGY_ID ) )
There is post insert trigger on AGY_ID using a sequence:
CREATE OR REPLACE TRIGGER PORTAL30.AGY_ID_PI
BEFORE INSERT
ON AGENCY
FOR EACH ROW
Begin
If inserting and ( :new.AGY_ID is null ) Then
select AGY_ID.nextval into :new.AGY_ID from dual;
End If;
End;
Table 2
CREATE TABLE OFFICECODE (
OFF_ID NUMBER (9) NOT NULL,
OFF_DESC VARCHAR2 (4) NOT NULL,
AGY_ID NUMBER (9) NOT NULL,
OFF_DESC_LONG VARCHAR2 (100),
CONSTRAINT PK_OFFICECODE
PRIMARY KEY ( OFF_ID ) )
There is a Foreign Key on OFFICECOD.AGY_ID TO AGENCY.AGY_ID:
ALTER TABLE OFFICECODE ADD CONSTRAINT OFF_AGY_ID_FK
FOREIGN KEY (AGY_ID)
REFERENCES PORTAL30.AGENCY (AGY_ID) ;
There is post insert trigger on AGY_ID using a sequence:
CREATE OR REPLACE TRIGGER PORTAL30.OFF_ID_PI
BEFORE INSERT
ON OFFICECODE
FOR EACH ROW
Begin
If inserting and ( :new.OFF_ID is null ) Then
select OFF_ID.nextval into :new.OFF_ID from dual;
End If;
End;
I create a MD form in Portal 3.0.9.8.0 just fine. However I cannot insert the master and the detail at the same time because I get the following error:
Error: An unexpected error occurred: ORA-01400: cannot insert NULL into ("PORTAL30"."OFFICECODE"."AGY_ID") (WWV-16016)
If I create the Master record 1st, then add the detail records it works fine. But how do I insert the Master and the detail records at the same time?
Thanks,
MartinMartin,
I had the same problem and with the help of some other folks in the forum I came up with this. It goes on the save button, plsql event handler. You'll see the 'doSave' call at the end of the procedure. It checks the value of the Master Action List and if it is 'INSERT' then sequence.nextval will be selected into v_master_id and then inserted into the table. Let me know if you have any questions. It probably needs a little clean up and some functionality for delete but so far I haven't had any problems with it.
DECLARE
v_master_id number(10);
v_masteraction varchar2(10);
v_detailaction varchar2(10);
BEGIN
v_masteraction := p_session.get_value_as_varchar2(p_block_name=> 'MASTER_BLOCK', p_attribute_name=>'_MASTER_ACTION');
IF (v_masteraction = 'INSERT') THEN
select rfi_admin.rasset_qc_master_seq.nextval into v_master_id from dual;
p_session.set_value
(p_block_name => 'MASTER_BLOCK'
,p_attribute_name => 'A_ID'
,p_index => 1
,p_value => v_master_id
FOR i in 1..g_max_det_rec LOOP
p_session.set_value
(p_block_name => 'DETAIL_BLOCK'
,p_attribute_name => 'A_MASTER_ID'
,p_index => i
,p_value => v_master_id
END LOOP;
END IF;
IF (v_masteraction = 'UPDATE') THEN
v_master_id := p_session.get_value_as_varchar2(p_block_name=> 'MASTER_BLOCK', p_attribute_name=>'A_ID');
END IF;
FOR i in 1..g_max_det_rec LOOP
v_detailaction := p_session.get_value_as_varchar2(p_block_name=> 'DETAIL_BLOCK', p_attribute_name=>'_DETAIL_ACTION', p_index => i);
IF (v_detailaction = 'INSERT') THEN
p_session.set_value(p_block_name=> 'DETAIL_BLOCK', p_attribute_name=> 'A_ASSET_QC_MASTER_ID', p_index => i, p_value=> v_master_id);
END IF;
END LOOP;
doSave;
END; -
Error trying to run a sample master-detail JSF form in Jdev 10.1.3
I've tried JDeveloper 10.1.3 folowing a tutorial , master-detail one , involving Adf Faces which I found it here http://www.oracle.com/technology/products/jdev/101/tutorials/e2ebcfaces/buildmaster-detailpagewithjdevandadfbc.htm.
1. I dowloaded JDeveloper 10.1.3
2. I made -in Jdeveloper- a connection to OE8 schema
2. I created an application with web application template ; in my new workspace i had 2 projects Model and ViewController
3. In model i choose Business Tier - ADF Bussiness Components - Business Components from Tables and I followed instructions in tutorial
4. In ViewController I created Web Tier - JSF - JSF JSP , with the JSF-JSP wizard a jsp page browseCustomerOrders.jsp. For building a master detail form i folowed instructions in tutorial
However ...
5. When I tried to run i received ....
" [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
**** Unable to obtain password from principals.xml. Using default.
D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config>
D:\jdevstudio1013\jdk\bin\javaw.exe -ojvm -classpath D:\jdevstudio1013\j2ee\home\oc4j.jar;D:\jdevstudio1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevstudio1013\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
05/11/30 12:04:16 Exception in thread "OC4J Launcher" oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: oracle.core.ojdl.logging.LoggingConfiguration
Dependent class: com.evermind.server.XMLApplicationServerConfig
Loader: oc4j:10.1.3
Code-Source: /D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar
Configuration: <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar
The missing class is not available from any code-source or loader in the server.
05/11/30 12:04:16 at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2073) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1681) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1633) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1618) [D:/jdevstudio1013/j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@7]
at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap]
at com.evermind.server.XMLApplicationServerConfig.initJ2eeLogging (XMLApplicationServerConfig.java:243) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.XMLApplicationServerConfig.postInit (XMLApplicationServerConfig.java:255) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.xml.XMLConfig.init (XMLConfig.java:200) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.xml.XMLConfig.init (XMLConfig.java:117) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:74) [D:/jdevstudio1013/j2ee/home/lib/oc4j-internal.jar (from <code-source> in boot.xml in D:\jdevstudio1013\j2ee\home\oc4j.jar), by oc4j:10.1.3]
at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap]
05/11/30 12:04:16 Fatal error: server exiting
Process exited with exit code 1. "
Where do you think i am wrong?
Many thanksHi,
the problem seems not to be within your application but in missing files on your embedded OC4J. Just try and unzip the JDeveloper 10.1.3 install again.
Frank -
Error creating Master/Detail Form
Hi,
I tried to create a master detail form. I went through all the steps fine, only when i click the button to create the form, i received the following errors:
ORA-20001: Unable to create master detail page. ORA-06502: PL/SQL: numeric or value error: character to number conversion error
Unable to create Master Detail pages.
Could someone please tell me what's wrong?
Thanks,
Patrick.We are getting this message in several areas in the development environmnet. It's happening in the developer login screen, when creating new tabs, and when tryig to create master detail reports. Here is our error from the Apache Log:
[Mon MarĀ 2 11:41:31 2009] [error] [client 10.64.8.231] [ecid: 1236012090:148.94.143.136:24226:0:1621,0] mod_plsql: /pls/apex_qmnt/wwv_flow.accept HTTP-404 ORA-06502: PL/SQL: numeric or value error\nORA-06512: at line 31\n
I think this is different from the issue above as that is due to too many items in a shuttle list. Ours seems to be related to our new APEX insstallation. Any help is appreciated here. -
Insert error in master-detail form
Probably a stupid question. When I populate the master block of
a master detail form from an LOV, I am asked to save the form.
Since the information is loaded from the LOV, there are no
changes to save. If I answer yes, it gives an Insert error due
to the primary key violation in the master block table. If I
answer no, it opens the detail block and gives the correct
information. The problem is that when I enter information into
the detail block and try to save it, I get the same error
message regarding the primary key violation in the master block.
The form works fine if I do not populate the master block from
the LOV (or from select statements in triggers). Any suggestions
will be appreciated.
LSHi,
Check for the form or block status.Looks like the status has
changed.Thats why u r getting the message.If any of the base
table item has changed then u will get such a message.Try
working on this an check it out.
Thanks
Vinod -
Master detail form Error in mru internal routine: ORA-20001
Hi,
i created a master-detail form with apex standrad wizard.
Master e datail are on the same page.
All works fine.
My detail form contain some fields of my detail table.
Now i added a link on detail form for call a form with all fields of my detail table.
The link work fine.
When i try to add row or update my detail form i receive the error
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "D472A2BF636CA11122F196B8A32B3DC8", item checksum
Any help?
Thanks in advance
LukxLukx,
I've just reproduced your what I believe you wanted and didn't receive any errors. Here are the steps I took.
1) Used the wizards to create a Master Detail form (with Detail edit on the same page as the master and only showing 2 of the detail columns)
2) Used the wizard to create a FORM ON A TABLE for my detail table allowing the user to edit all detail columns
3) Created a "column link" column on the detail form of the Master Detail form which links to the FORM ON A TABLE, passing across the ID of the detail record.
When I do this, everything seems to work perfectly as expected.
Is there something I'm missing in the steps you performed to create your scenario?
Thanks
Doug
http://www.sumneva.com -
How can I insert in the table detail of a master/detail form??
Hello, I have created a master/detail form from the assistant, and with the code generated by APEX I do not manage to insert a row in the table detail, I press the button 'Add Row' and refill information, when I press the button ' to apply changes ' me the following mistake appears:
'Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "C85B64D53C8D63E9D3EE83B82728DFA3", item checksum = "244B1FED90DF5CC5B0DDB6728F4D02DD"., update "CRM_ADMIN"."ASIGNACIONES_AM_CONTACTOS" set "SECUENCIA" = :b1, "CODIGO" = :b2, "NOMBRE_CLIENTE" = :b3, "NOMBRE" = :b4, "COMENTARIOS" = :b5, "CODIGO_COMERCIAL" = :b6'
How I can solve and be able to insert in the table it detail?
ThanksHi Law,
Text in a shape or a text box will not feature in the table of contents.
To get a colour behind your titles, type them into your document (not a shape). Format as Heading or some other paragraph style the TOC will recognise.
Select the title text and Format Panel > Text > Font > Gearwheel > Advanced Options.
Choose Character Fill Color and choose a colour from the palette (left) or colour circle (right).
Example Titles (all on the same page for a smaller screen shot).
Chapter 3 (in a coloured Text Box or Shape) does not appear in the TOC:
Hint for cheats :
To give the titles a wider Character Fill Colour, add some Tab characters before and after.
Regards,
Ian. -
Master detail form - Cascade Delete gives error
I am using 3.0.9.8.2 and have made a master detail form which works fine except for cascade delete. Insert and update works well, but I have to delete the child rows first to be able to delete the parent.
"Cascade Delete Detail Rows on Master Delete" is checked.
Error situation 1 (where the master just has one child row (number of detail rows to be displayed = 2)):
When trying master action=delete I get:
Error: No conversion performed for type INTEGER, value . (WWC-49102)
This happens whatever is chosen from the detail action drop down list during the attempted delete.
Error situation 2 (where the master has two child rows (number of detail rows to be displayed = 2)):
When trying master action=delete I get:
Error: An unexpected error occurred: ORA-02292: integrity constraint (MILLS_PORTAL.TEX_ACCOUNTS_FK) violated - child record found (WWV-16016)
This also happens whatever is chosen from the detail action drop down list.Sorry to say, but this is a bug which will get fixed in the forth coming releases.
Till then, there are 2 ways to avoid this problem:-
1> The change the foreign key in the detail table to have an ON DELETE CASCADE clause.
2> (Though not desirable, but still as a workaround)- Drop the foreign key constraint from the detail table. -
Inconsistent inserts into detail table of master-detail form
Hello,
[I am not sure if this is a bug or user error, so I've also put this in the bug tracking system. Apologize for the 'duplication']
I have a master-detail form: Orders is the master, and Order_Details is the detail. I have noticed some inconsistent behavior when inserting the detail information.
On occasion, the row will be inserted, and a null value will get inserted into the database for the first column of the detail table; all the other data values will be inserted fine. There doesn't seem to be any pattern to when it happens. I wrote down the following test steps:
1. Enter new order information and click 'Create'
2. Click 'Add Row' button so can add order detail info
3. Enter detail row information
4. Click 'Add Row' (I do this so I can see the success message that the detail data was actually inserted)
5. Click 'Apply Changes' at the master level.
I ran a query on the order details table and saw that the data inserted correctly. Then I ran the following test:
1. Enter new order information and click 'Create'
2. Click Add Row button so can add order detail info
3. Enter detail row information
4. Click 'Add Row' (success message appears that detail was inserted)
5. Enter second detail row information
6. Click 'Add Row' (success message appears that detail was inserted, however, now in the first column of that second detail row - the product name field/column - the data does not appear. I only see my null text value. The data in the first detail row is all correct)
7. Enter third row detail information
8. Click 'Add Row' (success message appears that detail was inserted, and this row's information appears correctly, as does the first row's, but the second row is still showing a null value for the product name column)
9. Click 'Apply Changes' to get out of the form
A query of the order details table shows that a null value (-) has indeed been inserted into the table for the product name column of the second detail row.
This behavior also happens when I don't have a null value for the LOV (i.e., it defaults to the first row of the lookup table).
Has anyone seen this before? Am I entering the data incorrectly?
Thanks.
-melissa
Message was edited by:
mblakenehaving the some problem. Any help with this ??
milowski were you able to solve it ? can you share the information.
Thanks -
How to create Insert & Update on master-detail form JPA/EJB 3.0
Is there any demonstration or tips how to Insert record on master-details form for JPA/EJB 3.0 with ADF binding?
I have master-detail forms (dept-emp). I drag the dept->operations->create method to JSF page. But when I click create button, only dept form is clear and ready for insert. But emp form is not clear. How can I add create method for this?
Can you give some example how to pass the right object to the persist or merge method so that it can save both the two objects (master-detail tables)
Thanks
Edited by: user560557 on Oct 9, 2009 8:58 AM -
Error while creating the master-detail forms
on creation of a new master-detail form or on edit of a existing master-detail form, i get the following error -
******** START ERROR **********
Thu, 15 Mar 2001 23:02:16 GMT
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "CC_INTRANET.WWV_BIND", line 56
ORA-06512: at "CC_INTRANET.WWV_UI_LOVF", line 3123
ORA-06512: at "CC_INTRANET.WWV_UIFORM_BUILD", line 2850
ORA-06512: at "CC_INTRANET.WWV_UIFORM_BUILD", line 5567
ORA-06512: at line 8
DAD name: cc_intranet
PROCEDURE : CC_INTRANET.wwv_uiform_build.show_header
URL : http://webdb.us.colorcon.com:7777/pls/cc_intranet/CC_INTRANET.wwv_uiform_build.show_header?p_wizard_mode=MASTER&
********** END ERROR ********
any ideas anyone ... ?
thanx in advance ...
nullmore information on above -
i upgraded webdb 2.2 to portal 3.0.6 and the new master-detail form is been created in the upgraded site.
pls reply on this.
thanx a bunch
null -
Hi All,
i m getting the following error when i m creating a master entry ...
ORA-06550: line 5, column 23: PL/SQL: ORA-02289: sequence does not exist ORA-06550: line 5, column 16: PL/SQL: SQL Statement ignored ORA-06550: line 8, column 16: PLS-00364: loop index variable 'C1' use is invalid ORA-06550: line 8, column 9: PL/SQL: Statement ignored
but while creating the master detail form i had specified the corresponding sequences and they even exist in the DB.
Please ! do help me .
Thanks & Regards,
Nandini Thakur.Hi ,
Though u choose the schema name ...the sequence is not appended with the schema name .
Example you are craeting the application in schema 1 and ur database objects are in schema 2.
so while creating the Master detail form you will get the option of choosing the schema, but then also the sequence name is not appended (as this may be the problem or bug in apex) .
so one needs to manually go and append the schema name.
In master detail form one needs to append it
1) Form of the Master ...the process called as get primary key there the sequence name should be appended
ex:- myschema.seq
2) another is the detail tabular form . here you need to good to the id hidden field and edit it , then in the source column append it with the myschema.seq.
Regards,
Nandini Thakur -
Master Details Forms- Report getting error
Dear All,
I have used master details form . In details form , i am having 50 fields . i am able to add row. after that it is showing error ike below.
Error:
=============================================================================
Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "D63F13336F2D8570B20FC4825A7B836A", item checksum = "809B7E0170040C75637E80BE2D464C77"., update "SIFY"."REG_MANAGER_DETAILS" set "RMD_ID" = :b1, "RMD_RM_ID" = :b2, "RMD_ACMAN_NAME" = :b3, "RMD_CONN_OT_CUR" = :b4, "RMD_CONN_RS_CUR" = :b5, "RMD_CONN_HW_CUR" = :b6, "RMD_HOST_OT_CUR" = :b7, "RMD_HOST_RS_CUR" = :b8, "RMD_HOST_HS_CUR" = :b9, "RMD_EAS_OT_
=============================================
What will be solution to resolve this type of error ?
Please help me to resolve this. Thanks in advance.
Regards
Dhanush.RDhanush,
This is an optimistic locking checksum error. It's trying to tell you that it can't save because someone/thing has updated the data already and it doesn't want to overwrite it. Is that always occurring?
Regards,
Dan
Blog: http://DanielMcGhan.us/
Work: http://SkillBuilders.com/ -
Inserting records in master detail form
I am moving an existing Webdb Application to portal. In the application there is a master detail form along the following lines
Dept Id: 10
Dept Name: IMS
Employee ID Employee Name etc
1586 Julie Wilks
Currently users can insert/update/delete detail lines. When inserting, the dept_id foreign key is automatically inserted into the dept_id column in the detail table. My understanding is that for some reason this does not happen in portal. Instead, the user is expected to input any foreign keys manually. As this could lead to all sorts of problems I'd rather not have to do this.
Has anyone found a means to get around this problem?
If solutions have already been posted, please point me in the right direction as a search on the forum hasn't come up with anything.
Many thanks,
Julie WilksHi,
Am I the only one having this problem?
Thanks,
Diana
Maybe you are looking for
-
How to insert or update in date datatype
I have two tables Table one T1 code var time var date var 01 0815 10-03-2010 02 0815 10-03-2010 01 1715 10-03-2010 02 1730 10-03-2010 Table two T2 code var,intime date,outtime date, att_date date from the table T1 i need to move to table T2 intime fi
-
Use of synchronized in constructor for accessing static SimpleDateFormat
Just a little confused. I have private static final SimpleDateFormat dateFormat = new SimpleDateFormat(pattern); in my class. I made dateFormat static final, because its a costly operation that I dont want to do more than once. I access dateFormat in
-
Hi, I am using the Ni 6221 card and I am stuck with this problem. I haven't figured out why it doesnt work. So I am running 7 valves (solenoids) in my system. I wanted to added 2 more. But I am facing a problem of controling the two new valves indepe
-
Whenever I try and open Itunes that's an error message that pops up. I've reinstalled Itunes and Apple Application Support and then it gives me that message. Windows XP Toshiba.
-
Adding a column to a cross tab report?
Hi, I have a cross tab Report having measures and i want to add a one xtra column to it to display the "total values'. i found the option to insert a row. but i didn't find it for a column. can u please help me on this?