This isn't working for me so here is more information. Obviously I am not 
targeting this correctly

I have an EO   AdRelease > to one RowColor

I am creating a new AdRelease object and there is a popup with RowColor 
choices. It is this popup that I am trying to order.

100 : (task = 'list' and entity.name = 'RowColor') => defaultSortOrdering = 
(orderingInt,compareAscending
) [com.webobjects.directtoweb.Assignment]

Here is how I am populating the popup

100 : (entity.name = 'AdRelease' and propertyKey = 'rowColor') => componentName 
= ERD2WEditToOneRelationship [com.webobjects.directtoweb.Assignment],
100 : (entity.name = 'AdRelease' and propertyKey = 'rowColor') => 
restrictedChoiceKey = object.currentRowColors 
[com.webobjects.directtoweb.Assignment],

currentRowColors is the array I was initially asking about.

Interesting, when I am creating the new AdRelease object this is in the logs:

NSLog Page: er.modern.look.pages.ERMODListPage - Configuration: ListAdRelease - 
*** createAdReleaseAction

Just when I start to think I am starting to understand what d2w is saying to 
me, I fail miserably.

--- On Sat, 1/21/12, David LeBer <[email protected]> wrote:

> From: David LeBer <[email protected]>
> Subject: Re: d2w ordering an array for display
> To: "Theodore Petrosky" <[email protected]>
> Cc: [email protected]
> Date: Saturday, January 21, 2012, 9:09 PM
> http://davidleber.net/?p=271
> 
> --
> David LeBer
> Codeferous Software
> 
> On 2012-01-21, at 7:51 PM, Theodore Petrosky wrote:
> 
> > I have an EO with a column that I use to order the
> objects. it is an integer so my method to return the EOs
> is:
> > 
> > public NSArray<RowColor> currentRowColors() {
> >         
> >     NSArray<RowColor>
> rowColorList = RowColor.fetchRowColors(editingContext(),
> RowColor.IS_ACTIVE.eq(true), RowColor.ORDERING_INT.ascs());
> >        
> > return rowColorList;
> > }
> > 
> > but my d2w component is not respecting the order of the
> array. it looks like it is ordering alphabetically on the
> displayedObject.
> > 
> > how do I order the elements on the ORDERING_INT key.
> > 
> > Ted
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list      ([email protected])
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/dleber_wodev%40codeferous.com
> > 
> > This email sent to [email protected]
> > 
> 
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to