Re: EODisplaygroup sorting in database
Re: EODisplaygroup sorting in database
- Subject: Re: EODisplaygroup sorting in database
- From: Ryan Poling <email@hidden>
- Date: Mon, 4 Apr 2005 13:22:04 -0700
Or, if the data is shown in an NSTableView, you can just organize the
columns left to right and check the "Sort Display Group by column
order" checkbox under the associations for the table in the inspector..
This is mostly how I get things sorted the way I want..
Another option is to override the sorting in a delegate method in your
java code..
-Ryan
On Apr 4, 2005, at 11:16 AM, Robert Walker wrote:
Alexandre,
There are a couple ways I can think of to accomplish what you want.
The first method would be to define a fetch specification in your
model then choose it for use with your data source.
Here is how you do that:
1. Open your interface (NIB) file in Interface Builder.
2. Show the inspector panel.
3. Select your display group from the "Instances" tab.
4. Select "Data Source" from the pop-up menu at the top of the
inspector panel.
5. Select your fetch specification from the "Fetch Specification"
pop-up in the inspector panel.
The second option is to use the query dictionaries
(lessThanQueryValues(), greaterThanQueryValues(), &
equalToQueryValues()) similar to WODisplayGroup. Then use
qualifyDataSource() on the EODisplayGroup. In order to use this
option you will need to create an outlet in Interface Builder, and
also add the outlet's instance variable to your controller class.
This will give you programatic access to your EODisplayGroup.
Hope this helps.
On Apr 4, 2005, at 12:02 PM, Alexandre Mainville wrote:
I'm just starting out with non direct java client development. I have
a really simple one-to-many relationship (customer -> shipto
adresses) and I'm trying to build a custom interface for it. I can't
find a way to specify sort orders.
I read about sortOrderings but I believe that sorts in memory and
what I'm looking for is a way to specify the ORDER BY clause in the
fetch statement.
I'm thinking about unchecking "Fetch on Load", fetching manually and
doing a setObjectArray but that just doesn't feel right, is there a
better way?
Thanks
Alex _______________________________________________
_______________________________________________
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