HighDots Forums  

Command Objects

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Command Objects in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Singularity.co.uk
 
Posts: n/a

Default Command Objects - 05-26-2004 , 06:46 AM






Hi

I have a Command Object from a Stored Procedure and have now been able to
populate the page with the first record returned.

However I am getting an error when I try to perform a Movenext on the
records returned from my Command Object.

What code can I use instead of Movenext?

Thanks in advance.

Brendan

--
___________________________________
Brendan.Collins (AT) NOSPAMSingularity (DOT) co.uk
Remove the NOSPAM
http://www.singularity.co.uk
___________________________________




Reply With Quote
  #2  
Old   
Julian Roberts
 
Posts: n/a

Default Re: Command Objects - 05-26-2004 , 07:13 AM






Use the Recordset behaviour instead of the Command behaviour to call the SP.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004




Reply With Quote
  #3  
Old   
Singularity.co.uk
 
Posts: n/a

Default Re: Command Objects - 05-26-2004 , 07:37 AM



Julian

Thanks for the quick reply. Your solution has solved the MoveNext problem,
but for some reason I am still getting duplicate records back.

You see my Stored Procedure returns a random requested number of records
from the database and if I use a Repeat Region and display them all on the
one page then it functions correctly.

The problem is when I look to put one on a page and use the "Move to next
record" Server behaviour it sometimes displays a record that it has
previously displayed.

Any ideas???

Brendan

--
___________________________________
Brendan.Collins (AT) NOSPAMSingularity (DOT) co.uk
Remove the NOSPAM
http://www.singularity.co.uk
___________________________________


"Julian Roberts" <news (AT) charon (DOT) co.uk> wrote

Quote:
Use the Recordset behaviour instead of the Command behaviour to call the
SP.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004






Reply With Quote
  #4  
Old   
Julian Roberts
 
Posts: n/a

Default Re: Command Objects - 05-26-2004 , 08:00 AM



You'd have to rethink your logic. Perhaps have an extra field called
Ordering and run a procedure to update with random numbers every day or so.
Not an easy concept.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.