Welcome Guest Search | Active Topics | Members | Log In | Register

Test Drive Invoke & PageSize Options · View
reidLinden
Posted: Thursday, February 04, 2010 11:59:44 AM
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 ?

Mark Piller
Posted: Thursday, February 04, 2010 12:16:17 PM

Rank: Administration
Groups: Administration

Joined: 8/21/2006
Posts: 679
Points: 1,280
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: midnightcoder
blog: blog.themidnightcoders.com
website: www.themidnightcoders.com
reidLinden
Posted: Thursday, February 04, 2010 2:10:26 PM
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?
Mark Piller
Posted: Thursday, February 04, 2010 4:26:19 PM

Rank: Administration
Groups: Administration

Joined: 8/21/2006
Posts: 679
Points: 1,280
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: midnightcoder
blog: blog.themidnightcoders.com
website: www.themidnightcoders.com
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.079 seconds.