Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding fetching record on button click

 
pradip thite
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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...
 
K. Tsang
Bartender
Posts: 3502
14
Android Java
  • Mark post as helpful
  • send pies
  • 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
  • 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: 3502
14
Android Java
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic