On Nov 19, 2009, at 8:52 PM, Andrew Lindesay wrote:

Hello;

In eo-gen templates, is it possible to do something like this;

#if ($entity.sortedClassAttributes.code)

#if ($entity.sortedClassAttributes().containsObject(code))

or

#if ($entity.sortedClassAttributes.containsObject(code))


should work.


Chuck


...
#end


Where the ... would be inserted if the "code" attribute were present in the list of 'sortedClassAttributes'?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







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

This email sent to arch...@mail-archive.com

Reply via email to