• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iterate and save

 
Joe Jose
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to ieterate 2 lists and save to database. But I could only save the first value coming and next ones not saving into the database.

Here is my code :


I am saving 3 composite ids . Here, what I am trying to do is:

user can select more than one departments from a list box

Each department has got(not necessarily) more than one work

get the works of the department which user has selected

quoteNo will be returned when user saves quote details

I need to save this 3 values into another table in the database making these 3 ids as composite keys.

But here I can save only the first item, i.e., if user select a departments which has got 2 works, i could only save one work.

Could anyone help me to find out why this is happening ? Please tell if am not clear.

Thanks,
Joe.
 
Joe Jose
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I sorted the problem. It was a silly mistake in my code.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic