This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

paging for dynamic rows  RSS feed

 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

in our application i will create dynamic rows in my jsp;when i click add button dynamic row will be displayed.i want to implement paging for this scenario;If i am in Add mode i will create upto 10 dynamic rows, then one button should be displayed i.e Next button then add button will be disabled;when i click next button one dynamic row will be displayed in the next page then after that i will click add button i will do the same thing as i have done previously generating another 10 dynamic rows
with previous button and next button ;at the bottom i will put saveexit button;when i click save exit button i want to save all the details that i have entered in the all pages say if i entered details in 3 pages(say if i entered 25 dynamic rows) should be stored in database;

if i come in Modify mode i want to show 10 dynamic rows in first page when i click next page next page next 10 records and in the last page 5 records should be displayed;

In the modify mode if i change any records say in the 15th dyanmic row and 22 dynamic rows those records should be updated in the database;how can i achive this functionality;
can anybody write some sample code using DOM Javascript?





sno eno ename sal

textbox textbox textbox textbox
textbox textbox textbox textbox
textbox textbox textbox textbox
textbox textbox textbox textbox --addbutton

Next Previous
saveexit
 
I have gone to look for myself. If I should return before I get back, keep me here with this tiny ad:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!