Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Loop only selected checkbox to insert data into block - Oracle forms

user7351276Mar 3 2014 — edited Mar 5 2014

Hello,

I have a multiple row block. Each row has a check box - nondatabase item.

when checkbox is checked the value is set to Y and when not it is N. when I click insert button in my form, it loops through all the records and inserts data where checkbox is Y. this works fine but when the block has huge no of rows say 1000 and I have checked only one or few rows, then performance is bad as it loops through each row lookin for Y and then insert and this takes longer time.

Is there any better way to optimize the insert? is there any way to loop through only selected checkbox something like using array to make the insert faster. if yes a code sample is appreciated.

thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2014
Added on Mar 3 2014
2 comments
1,779 views