|
|
Rank: Newbie Coder Groups: Member
Joined: 2/3/2010 Posts: 17 Points: 39 Location: MN
|
As you can see, I'm running a 'reasonably' large query through the TestDrive Invoker, attempting to pass in a PageSize option, but its not working at all. Either I'm passing the parameter incorrectly (I can't seem to find the documentation on it now, but I seem to remembers seeing SOMETHING like this in the past), or there is a bug in the TestDrive code. Any thoughts ?
|
|
 Rank: Administration Groups: Administration
Joined: 8/21/2006 Posts: 686 Points: 1,301 Location: Frisco, TX
|
The problem is the argument value of "{PageSize:50}" will not be parsed properly and is simply ignored in this case. Try the same thing from your AS code. I understand the result is not as "visual", but it should work. Mark
Mark Piller Midnight Coders, Inc. twitter: midnightcoderblog: blog.themidnightcoders.comwebsite: www.themidnightcoders.com
|
|
Rank: Newbie Coder Groups: Member
Joined: 2/3/2010 Posts: 17 Points: 39 Location: MN
|
Yes, it definitely works there.
But, just for the sake of curiosity and testing, is there a way to properly pass the object in?
|
|
 Rank: Administration Groups: Administration
Joined: 8/21/2006 Posts: 686 Points: 1,301 Location: Frisco, TX
|
It all depends on the server-side method signature. The findAll method has the following signature: Code:public virtual QueryResult findAll(Hashtable options) The Hashtable argument is interpreted as a collection of objects (really a collection of key/value pairs). In the currently released version of WebORB, the console does not render it that way.. I need to check if that has changed in the next version (I believe it has) However, if you have a method where the arguments are strongly typed classes, then the console will properly render the form for the arguments.
Mark Piller Midnight Coders, Inc. twitter: midnightcoderblog: blog.themidnightcoders.comwebsite: www.themidnightcoders.com
|
|
|
Guest |