Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
jaff
Posts: 115
Registered: 11-16-2011
My Carrier: 3

add field in bottom after click button?

how to create like this

 

|| contain (array with limit 10) ||

 

            || loadmore || <-----button

 

after click button loadmore automaticly create

 

|| contain(array with limit 10) ||

 

|| contain2(array with limit 10) ||

 

             || loadmore || <--- button

 

 

any idea for my question??

 

Please use plain text.
Developer
jitendrasharma
Posts: 205
Registered: 08-04-2009

Re: add field in bottom after click button?

I think you are trying to implement following:

Open A list with initial capacity of 10 elements, on click of load more button, capacity incremented by 10 elements.

 

To implement this you just need to set capacity of the list to 10 initially, and then increment this capacity by 10 on click of loadmore, and invalidate list field.

Please use plain text.
Trusted Contributor
jaff
Posts: 115
Registered: 11-16-2011
My Carrier: 3

Re: add field in bottom after click button?

my data query from database, im agree with your idea... but i think if not effective... if i have 100 contain... on click i load 100contain to.... is very heave on connection...

any more idea? simple thinking... i need to save data1(read data 0-9) on screen then click button show data2(read data10-19) in bottom data2... so im not read data from data 0 any more...

Please use plain text.
Developer
kanaksony
Posts: 373
Registered: 04-11-2009

Re: add field in bottom after click button?

jaff, I think u didn't read the reply of Jitendra with attention

"To implement this you just need to set capacity of the list to 10 initially, and then increment this capacity by 10 on click of loadmore, and invalidate list field."
Regards,
Kanak Sony
---------------------------------------------------------------------------------
Please use plain text.
Developer
jitendrasharma
Posts: 205
Registered: 08-04-2009

Re: add field in bottom after click button?

you can insert rows on click listener in list, then you wont need to add 0-capacity anymore.

Please use plain text.