In my program i have item management window. It has Jlist component to add Multiple bag sizes. Since its a multi value attribute, i placed in a separate table with item code.
I managed to write the program to update database thru text fields except Jlist.
There is Primary key Duplicate error at Jlist update code.
When i try to update item adding or removing bagsizes to Jlist it gives Primary key duplication error.
This is sample format how date stored in bagsizes tables.
Code for Update Action and method at the controller class given below.
Code for Update Action
Code for database update
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Update DB using Jlist gives Primary Key Duplication error.