This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Assigning Key Values to Multiple Submit Buttons  RSS feed

 
John Olston
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can set a key value on each submit button. I have a table that contains
multiple submit buttons. When one of those submit buttons is clicked, I need to pass the key value of the submit button that will be used to call a business service to retrieve data for that key. Any ideas? Thanks.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John,
Have each submit button call a javascript function with a distinct value. That function can set a hidden field with your key value and the hidden field is part of the form.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!