Forums
This topic is locked
Can you combine behaviours?
Posted 18 May 2004 01:31:41
1
has voted
18 May 2004 01:31:41 alex campbell posted:
Can you have a master page where the visitor clicks a link to visit the corresponding detail page, but once there can browse other detail pages using next/previous?From a visitors viewpoint, this is a really convenient way to view site content, and reflects the way we often "do business". ie. go to a specific record/product, find it's not quite what we want, & so click through other options (eg gallery type apps.)
I've tried to setup combinations of the "GoToDetail" and the paging "Next & Previous" behaviours - but don't seem to get anywhere with it. This includes making a recordset upon which the detail page is based - specific to a single URL passed parameter, and also making it general.
In essence, this seems a simple and desirable requirement, but I'm blowed if I can see how to make it work...Can anyone please help?
Regards, Alex
Replies
Replied 18 May 2004 04:07:49
18 May 2004 04:07:49 Dave Thomas replied:
if your simply looking to navigate through your records on a detail page, set up the master page as normal, pass the id the url parameter, and on the detail page, set the recordset up with NO filter.
add your next last buttons, and it should work. That's off the top of my head, it's late and if that solution doesnt work ill fix any errors i made tomorrow, but i use the system all the time.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
add your next last buttons, and it should work. That's off the top of my head, it's late and if that solution doesnt work ill fix any errors i made tomorrow, but i use the system all the time.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Replied 18 May 2004 15:13:55
18 May 2004 15:13:55 alex campbell replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
if your simply looking to navigate through your records on a detail page, set up the master page as normal, pass the id the url parameter, and on the detail page, set the recordset up with NO filter.
add your next last buttons, and it should work. That's off the top of my head, it's late and if that solution doesnt work ill fix any errors i made tomorrow, but i use the system all the time.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
if your simply looking to navigate through your records on a detail page, set up the master page as normal, pass the id the url parameter, and on the detail page, set the recordset up with NO filter.
add your next last buttons, and it should work. That's off the top of my head, it's late and if that solution doesnt work ill fix any errors i made tomorrow, but i use the system all the time.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 18 May 2004 15:19:04
18 May 2004 15:19:04 alex campbell replied:
Dave,
Thanks for the prompt reply. I tried your suggestion and instead of filtering on the passed URL ID field, set it to NONE (on the detail page). But unfortunately it didn't work.
It just showed the 1st record in the recordset. I'd be very grateful, if you could recheck how you've managed it in the past. Thanks, Alex
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
if your simply looking to navigate through your records on a detail page, set up the master page as normal, pass the id the url parameter, and on the detail page, set the recordset up with NO filter.
add your next last buttons, and it should work. That's off the top of my head, it's late and if that solution doesnt work ill fix any errors i made tomorrow, but i use the system all the time.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Thanks for the prompt reply. I tried your suggestion and instead of filtering on the passed URL ID field, set it to NONE (on the detail page). But unfortunately it didn't work.
It just showed the 1st record in the recordset. I'd be very grateful, if you could recheck how you've managed it in the past. Thanks, Alex
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
if your simply looking to navigate through your records on a detail page, set up the master page as normal, pass the id the url parameter, and on the detail page, set the recordset up with NO filter.
add your next last buttons, and it should work. That's off the top of my head, it's late and if that solution doesnt work ill fix any errors i made tomorrow, but i use the system all the time.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 18 May 2004 18:20:56
18 May 2004 18:20:56 Dave Thomas replied:
ok, ive just done a tet page as i stated above and it worked.
create your master page, choose a text to act as the link (ie the title) and set this to goto Detail Page.
in the detail box, pass the parameter of the ID in the url, but leave the bottom 2 checkboxes blank.
so:
Detail page = the page you choose
Pass URL parameter = FieldID (mine is ArticleID)
Recordset = recordset name
Column = again fieldID
Pass existing parameters (leave both blank)
now to keep it all the same i normally copy my recordset from my server behaviours window and then paste it in on the detail page.
doesnt matter if you create a new recordset.
now on your detail page, set up your fields, and add next/previous buttons.
it does work.
p.s. make sure you refresh the document your viewing as the cache will show the old doc in preview even tho you've updated it.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Edited by - UltraDav on 18 May 2004 18:22:31
create your master page, choose a text to act as the link (ie the title) and set this to goto Detail Page.
in the detail box, pass the parameter of the ID in the url, but leave the bottom 2 checkboxes blank.
so:
Detail page = the page you choose
Pass URL parameter = FieldID (mine is ArticleID)
Recordset = recordset name
Column = again fieldID
Pass existing parameters (leave both blank)
now to keep it all the same i normally copy my recordset from my server behaviours window and then paste it in on the detail page.
doesnt matter if you create a new recordset.
now on your detail page, set up your fields, and add next/previous buttons.
it does work.
p.s. make sure you refresh the document your viewing as the cache will show the old doc in preview even tho you've updated it.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Edited by - UltraDav on 18 May 2004 18:22:31
Replied 18 May 2004 20:46:30
18 May 2004 20:46:30 alex campbell replied:
Dave,
I've done exactly as you suggested - but still get problems with the detail page.
The correct link field & its value is being passed OK (eg. in the IE Address header, I have "......DetailPage.asp?ContentID=13", but it is the 1st record that is returned (ContentID=1).
In my Detail Page in the Recordset window, I have the Name,Connection,Table, & columns setup normally (using "simple"
along with "Filter" set to "None". Hitting the "test" button, displays all the records (as expected).
But... I still get the 1st record displayed, irrespective of the passed ID.
The Next & Previous behaviours work OK, but the initial record never reflects the intended one!
The only Server Behaviours on the detail page relate to the dynamic text elements, the recordset, MoveToprev,MoveToNext.
Sorry to be such a pain, but I'm now flummoxed as to why it isn't working, especially as if I adapt the Detail Page to receive the ID as a filtered URL parameter & then the desired record is shown, but thyen of course the next/prev has no effect as only a single record is returned.
The version I'm using is MX-2004 (without the Updater having been applied - coiuld it be that causing the problem?
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
ok, ive just done a tet page as i stated above and it worked.
create your master page, choose a text to act as the link (ie the title) and set this to goto Detail Page.
in the detail box, pass the parameter of the ID in the url, but leave the bottom 2 checkboxes blank.
so:
Detail page = the page you choose
Pass URL parameter = FieldID (mine is ArticleID)
Recordset = recordset name
Column = again fieldID
Pass existing parameters (leave both blank)
now to keep it all the same i normally copy my recordset from my server behaviours window and then paste it in on the detail page.
doesnt matter if you create a new recordset.
now on your detail page, set up your fields, and add next/previous buttons.
it does work.
p.s. make sure you refresh the document your viewing as the cache will show the old doc in preview even tho you've updated it.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Edited by - UltraDav on 18 May 2004 18:22:31
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I've done exactly as you suggested - but still get problems with the detail page.
The correct link field & its value is being passed OK (eg. in the IE Address header, I have "......DetailPage.asp?ContentID=13", but it is the 1st record that is returned (ContentID=1).
In my Detail Page in the Recordset window, I have the Name,Connection,Table, & columns setup normally (using "simple"

But... I still get the 1st record displayed, irrespective of the passed ID.
The Next & Previous behaviours work OK, but the initial record never reflects the intended one!
The only Server Behaviours on the detail page relate to the dynamic text elements, the recordset, MoveToprev,MoveToNext.
Sorry to be such a pain, but I'm now flummoxed as to why it isn't working, especially as if I adapt the Detail Page to receive the ID as a filtered URL parameter & then the desired record is shown, but thyen of course the next/prev has no effect as only a single record is returned.
The version I'm using is MX-2004 (without the Updater having been applied - coiuld it be that causing the problem?
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
ok, ive just done a tet page as i stated above and it worked.
create your master page, choose a text to act as the link (ie the title) and set this to goto Detail Page.
in the detail box, pass the parameter of the ID in the url, but leave the bottom 2 checkboxes blank.
so:
Detail page = the page you choose
Pass URL parameter = FieldID (mine is ArticleID)
Recordset = recordset name
Column = again fieldID
Pass existing parameters (leave both blank)
now to keep it all the same i normally copy my recordset from my server behaviours window and then paste it in on the detail page.
doesnt matter if you create a new recordset.
now on your detail page, set up your fields, and add next/previous buttons.
it does work.
p.s. make sure you refresh the document your viewing as the cache will show the old doc in preview even tho you've updated it.
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Edited by - UltraDav on 18 May 2004 18:22:31
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 18 May 2004 21:21:39
18 May 2004 21:21:39 Dave Thomas replied:
my bad, ive just redone it and got the same problem as you.
i've had this working in previous versions of dw, i'll look into it and see if i can find a fix.
I slap myself for writing that when im still half asleep
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Edited by - UltraDav on 18 May 2004 22:16:06
i've had this working in previous versions of dw, i'll look into it and see if i can find a fix.
I slap myself for writing that when im still half asleep
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Edited by - UltraDav on 18 May 2004 22:16:06
Replied 19 May 2004 00:03:58
19 May 2004 00:03:58 Dave Thomas replied:
ok i left an important part out
when your on your detail page, highlight the recordset in the server behaviours windows, click the + sign and go to:
Recordset Paging > Move to specific record
you will be asked to fill in 3 boxes >
1 Move to record in = (your recordset)
2 Where column = (your ID your passing)
3 Matches url parameter = (your ID your passing)
what this is doing is filtering the recordset outside of the sql statement, so we still get all records, but navigational buttons too.
sorry it took me so long to remember how to do it.
now it works <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
when your on your detail page, highlight the recordset in the server behaviours windows, click the + sign and go to:
Recordset Paging > Move to specific record
you will be asked to fill in 3 boxes >
1 Move to record in = (your recordset)
2 Where column = (your ID your passing)
3 Matches url parameter = (your ID your passing)
what this is doing is filtering the recordset outside of the sql statement, so we still get all records, but navigational buttons too.
sorry it took me so long to remember how to do it.
now it works <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Regards,
Dave
[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Replied 19 May 2004 12:50:24
19 May 2004 12:50:24 alex campbell replied:
Many thanks, Dave.
It works very well & is a load off my mind.
Regards, Alex
It works very well & is a load off my mind.
Regards, Alex