Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic records - display when checked

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I have a display page where i am displaying just the title of the entries posted by the user and then depending on the entry he checks, on the next page i want to display the details of that entry as it was submitting by the user (for update purpose).

The entries are in a repeat region loop and i have included the checkbox to be repeated too. At this point i have a recordset on my page and on the title of the entry i've created a link for the detail page, but the problem is, when i have more than one entry, it still takes me to the detail page of the topmost entry, regardless of what i select/check.

I assume i have to write some kind of a code in the edit button which is linking to the title of the entry and taking the user to the details(update) page, but i'm no programmer and clueless on what to write in there.

Any help is much appreciated

Thanks
 
There is a "go to details page" server behaviour - sorry, I always program this stuff myself, so I don't realy know how the modal solution works, but you should be able to select your identity field in the database (a field that is unique to the record) in the creation dialog for this "detail" server behaviour.
Use this behaviour instead of the checkboxes. Or do you want to pop up multiple pages when the user selects multiple records? Create an image or text link and apply the behaviour to it.
You can then alter the recordset in the target page so it narrows the query - select the identity field and let it be equal to the URL parameter you created in the first page where the details records are selected. Otherwise just all records are returned and as you don't select a specific one just the first one will be taken for all your actions, which obviously happened in your case.

Do you understand what I mean? Otherwise just post again...
allow thyself to be the spark that lights the fire
haslo@haslo.ch - www.haslo.ch​
 
What you could do is instead of the checkbox, replace it with a 'Details' (link). Highlight 'Details' and select the server behavior "Go to Detail Page". Fill out the fields in this behavior, you'll need a unique column identifier and it'll probably be your primary key from your table.
In the details page, add the server behavior 'Move to Specific Record' and make sure that 'Matches URL Parameter' is the same as the unique column identifier that you used for 'Go to Details Page' behavior.
I've probably made it sound confusing...post again if it is confusing...
If you want to use the checkboxes to display multiple details then you're going to have to go in and edit the code from the server behaviors.

Jeevenze
 
Thanks a zillion to both of you....it's working now!

jeevenze...hi, do know anyplace on the net where i might find the code if i want to use checkbox/radiobutton?
thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top