Re: ERXSortOrderings ?
Re: ERXSortOrderings ?
- Subject: Re: ERXSortOrderings ?
- From: "Ricardo J. Parada" <email@hidden>
- Date: Tue, 14 Dec 2010 12:42:39 -0500
On Dec 14, 2010, at 12:33 PM, Theodore Petrosky wrote:
> ERXSortOrderings theCompanyOrder = ParentCompany.PARENT_COMPANY_NAME.asc();
> is not good. however,
>
> ERXSortOrdering theCompanyOrder = ParentCompany.PARENT_COMPANY_NAME.asc();
> NSArray<EOSortOrdering> companySort = new NSArray<EOSortOrdering>(theCompanyOrder);
> parentCompanyDG.setSortOrderings(companySort);
> is good.
>
> obviously parentCompanyDG is an ERXDisplayGroup.
>
Try this:
parentCompanyDG.setSortOrderings(ParentCompany.PARENT_COMPANY_NAME.ascs());
> Is there a reason that I can not create an ERXSortOrderings with only one item?
I believe the ascs() method in ERXKey returns an ERXSortOrderings object which is basically a subclass of NSMutableArray<EOSortOrdering>.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden