Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Unique records

New Here ,
Mar 05, 2007 Mar 05, 2007

Copy link to clipboard

Copied

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?
TOPICS
Server side applications

Views

210
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 06, 2007 Mar 06, 2007

Copy link to clipboard

Copied

LATEST
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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines