Skip to main content
Participant
March 6, 2007
Question

Unique records

  • March 6, 2007
  • 1 reply
  • 231 views
I've created a dynamic table that retrieves multiple records for an individual. I've included a submit button in each line created with the unique record ID as hidden data to be sent for selecting a update page, but the data I get is all of the unique records ID's, like 45,46,48,49,50 where I only wanted #46. The example in the workbook shows an href call to select a particular record. Is it possible to use either a submit key or a radio button to select a certain record to update? I have additional data I need to pass along to the next page so an href pointer won't really work. What am I doing wrong?
This topic has been closed for replies.

1 reply

Participating Frequently
March 6, 2007
If you don't want to use an HREF pointer, then you will need to use some JavaScript to let you know which record the user has selected. Instead of using a type="submit", use a type="button" and then include the following onClick statement in the tag:

onClick="document.form1.selectID=#rs_AP_Cert_Quest.Key#; document.form1.submit();"

Then include a hidden form element named selectID at the bottom of the page.

I probably would use a function instead of coding it directly in case I needed to add some more functionality and it would get to messy to do all of the JS inline. But the above code will get you running.