Re: D2W: Selectors for enum types?
Re: D2W: Selectors for enum types?
- Subject: Re: D2W: Selectors for enum types?
- From: Paul Hoadley <email@hidden>
- Date: Fri, 01 Jun 2012 16:33:39 +0930
On 01/06/2012, at 6:20 AM, Ramsey Gurley wrote: Create a method called availableBillingStatuses() on the eo. It returns the list of possible billing statuses the object can have in its current state. Then just use object.availableBillingStatuses.
Not only does that solve the problem, but it permits the removal of statuses that don't make sense. For example, if amountDue == $0, then billingStatus == PAST_DUE doesn't make sense.
Thanks Ramsey. I like that.
|
_______________________________________________
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