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

Kevin Van Workum vanw at sabalcore.com
Wed Sep 7 10:15:47 MDT 2011


On Wed, Sep 7, 2011 at 12:21 AM, Ho, Quang <quang.ho at hp.com> wrote:

> 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();****
>
> ** **
>
> **
>

I think maybe you need to use:

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


> **
>
> _______________________________________________
> gold-users mailing list
> gold-users at supercluster.org
> http://www.supercluster.org/mailman/listinfo/gold-users
>
>


-- 
Kevin Van Workum, PhD
Sabalcore Computing Inc.
Run your code on 500 processors.
Sign up for a free trial account.
www.sabalcore.com
877-492-8027 ext. 11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/gold-users/attachments/20110907/d57d6c12/attachment.html 


More information about the gold-users mailing list