Creating Detail Pages with navigation links
Sometimes, it could be useful to include navigation links in our detail pages, so users could browse through the entire range of records without having to go back to the master page each time. When using the current master-detail page set builder included in UD4 this feature is completely impossible, since the ASP scripts included in the detail page filter the recordset so it only includes a single record.
With this tutorial we will cover the procedure of creating filtered-recordsets for Detail Pages that allow our users to browse through the entire records range.
Bulding Detail Pages with Navigation Links
Sometimes, it could be useful to include navigation links in our
detail pages, so users could browse through the entire range of registers without
having to go back to the master page each time.
P.eg. Imagine an on-line photo album featuring a master
page with thumbnails of all our uploaded photos and a detail page with a larger
photo. Using the current master-detail page set builder included in UD4 is completely
impossible to create detail pages with links to previous/next records, since
the ASP scripts included in the detail page filter the recordset so it only
includes a single register.
But there´s an extremely easy way to solve this, with no
need of handcoding. Here are the steps:
Step 1: Build a Master Page wich links to Detail Pages
Develop the master page as usual, including the proper links to
the detail page by selecting the necessary URL parameter to be passed on. In
this example, the "Go To Detail Page" is setup to pass the Column
"IDPhoto" value as parameter for the Detail Page.
Step 2: Build a Detail Page with a non-filtered recordset
Build the detail page now. First, create the recordset ("RsFotoDetail"
for this example), but DO NOT FILTER the recordset as usual. Leave all
these fields empty so the recordset includes all registers.
At this moment, our master page passes to the detail page the
desired parameter, but our detail page do not display the information associated
to the parameter´s value. We need to filter it OUTSIDE the Recordset
definition.
Let´s see how to perform this operation in Step
3 >>>
Comments
Thanks
Great tutorial
Very good tutorial , but what if you have...
This is a good tutorial but i need a filtered record set in my detail page. Does any one know the systax to do this where the detail page already has a URL parameter passed to it?
Cheers!!
RE: Very good tutorial , but what if you have...
Hi Ben,
I haven´t understood very well what do you need. Could you be more specific?
Thx,
P.
You must me logged in to write a comment.