• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

regarding fetching record on button click

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,friends, i am working on web project in java. i have taken buttons in column..and projects is my column..when i click on a button in first row ,i want fetch all information about selected project....so how can i do that??please help me friends....i got stuck for 3 hours for that stuff...
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
3 hours! ... that's nothing lol

Anyway how is your data structure set up? Is it a map, a list of list or something else?

Let say it's a map because that's what I would use. You got a "taken button" with list of "projects"


then when user clicks the "taken button" it gets the corresponding list of projects.
 
pradip thite
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
okk but right now,suppose i have a table and in table i have a column called as project name..in that there are so many projects..okk all are buttons..when i click on project i want to get information of selected project......okk how to do that in java??? please help me friends......
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's somewhat hard to picture your situation. Well actually not but imagine each button or project is a link ... and click it a new page opens or popup. So how hard can that be?

I don't know your problem is about the "fetching" part (eg each button is assigned the correct id hence correct link) or you got the links but opening the pages (hint javascript onclick is ideal).

Maybe you should post some code showing us what you got so far.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic