[gold-users] Request object with sort by column or field.

Scott Jackson scottmo at adaptivecomputing.com
Wed Sep 7 10:09:20 MDT 2011

$request->setSelection("CreationTime", "Sort"); 

----- Original Message -----

> From: "Quang Ho" <quang.ho at hp.com>
> To: scottmo at adaptivecomputing.com, gold-users at supercluster.org
> Sent: Tuesday, September 6, 2011 10:21:39 PM
> Subject: Request object with sort by column or field.

> Hi Scott,
> Thanks for helping me to get a grip on Gold.

> I have another question for you. When I created a Query request as
> below, I’d like to sort the returned data by a column(s)
> I tried setOption as below as a guess, but it did not work. Can you
> please tell me the right way ?

> $request->setOption("SortBySequence","CreationTime");

> Thanks,
> Quang.

> Here is my request object in Perl.

> my $request = new Gold::Request(object => "Transaction",action
> =>"Query");

> #select columns in transaction tables;
> $request->setSelection("Details");
> $request->setSelection("User");
> $request->setSelection("Project");
> $request->setSelection("CreationTime");
> $request->setSelection("JobId");
> my $response = $request->getResponse();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/gold-users/attachments/20110907/e0bd3b70/attachment.html 

More information about the gold-users mailing list