Re: ERXSortOrderings ?
Re: ERXSortOrderings ?
- Subject: Re: ERXSortOrderings ?
- From: Mike Schrag <email@hidden>
- Date: Tue, 14 Dec 2010 13:33:51 -0500
there are no wo-specific editors for intellij or netbeans ... you have to give up pretty much all of the wo integration. the NSProjectBundleEnabled, NSProjectSearchPath, and NSProjectSourcePath features lets you run WO apps without anything special in the build system for both, but you won't have any development support.
On Dec 14, 2010, at 12:59 PM, Farrukh Ijaz wrote:
> Thanks Mike for clarification.
>
> Just a question out of nowhere. Has anyone tried or suggested to do WOLips on IntelliJ or NetBeans? I googled and found that there is something in IntelliJ but never managed to get it for me.
>
> Farrukh
>
> Sent from my iPhone
>
> On 14, دسمبر 2010, at 8:28 PM, Mike Schrag <email@hidden> wrote:
>
>> ascs() is just for returning an array of them (it's "plural") ... you use that when you want to pass to something that takes a setSortOrderings(NSArray) and you only have one
>>
>> dot == append
>>
>> ms
>>
>> On Dec 14, 2010, at 12:16 PM, Farrukh Ijaz wrote:
>>
>>> Hi,
>>>
>>> Did you try using .ascs() instead of .asc() and .append() instead of .dot()?
>>>
>>> Farrukh
>>>
>>> Sent from my iPhone
>>>
>>> On 14, دسمبر 2010, at 8:02 PM, Theodore Petrosky <email@hidden> wrote:
>>>
>>>> Why does this work:
>>>>
>>>> ERXSortOrderings newOrdering = ERXSortOrdering.sortOrderingWithKey("parentCompany.parentCompanyName", ERXSortOrdering.CompareAscending).then(Client.CLIENT_NAME.asc());
>>>>
>>>> but this doesn't:
>>>>
>>>> ERXSortOrderings newOrdering1 = ERXSortOrdering.sortOrderingWithKey(Client.PARENT_COMPANY.dot(ParentCompany.PARENT_COMPANY_NAME).asc()).then(Client.CLIENT_NAME.asc());
>>>>
>>>> Here is the error: The method sortOrderingWithKey(String, NSSelector) in the type ERXSortOrdering is not applicable for the arguments (ERXSortOrdering.ERXSortOrderings)
>>>>
>>>> ERXSortOrderings newOrdering2 = ERXSortOrdering.sortOrderingWithKey(Client.PARENT_COMPANY.dot(ParentCompany.PARENT_COMPANY_NAME).asc()).then(Client.CLIENT_NAME.asc());
>>>>
>>>> ERXSortOrderings newOrdering2 = ERXSortOrdering.sortOrderingWithKey(ParentCompany.PARENT_COMPANY_NAME.asc().then(Client.CLIENT_NAME.asc());
>>>>
>>>> As long as I start out with "string, selector" then I can chain - then, then, etc.
>>>>
>>>> I must have some deep seated misunderstanding of ERXSortOrderings and how to create it.
>>>>
>>>> this one works beautifully: (except on closer examination, I don't understand why it works with the parenthesis around the first element)
>>>>
>>>> ERXSortOrderings newOrdering = ERXSortOrdering.sortOrderingWithKey("version.job.primaryKey", ERXSortOrdering.CompareAscending)
>>>> .then(Invoice.VERSION.dot(Version.ITEM_INDEX).asc())
>>>> .then(Invoice.VERSION.dot(Version.SUB_VERSION_NUMBER).asc())
>>>> .then(Invoice.VERSION.dot(Version.REVISION_NUMBER).asc())
>>>> .then(Invoice.INVOICE_DATE.asc() );
>>>>
>>>>
>>>> Ted
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>> _______________________________________________
>>> 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
>>
>> _______________________________________________
>> 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
_______________________________________________
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