• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
using EOAttribute-properties in WebObjectsBuilder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using EOAttribute-properties in WebObjectsBuilder


  • Subject: using EOAttribute-properties in WebObjectsBuilder
  • From: jacques couzteau <email@hidden>
  • Date: Tue, 16 Sep 2003 17:53:31 +0200

hello

In a WORepition i'm looping through my EOAttributes of a table.
attributeItem is the Variable that contains the EOAttribute in the
WORepition. WebObjectsBuilder doesn't show any properties of my
attributeItem that i want to use inside the loop.

I want to use the coloumnName()-method to bind to a WOString inside the
loop.

What's the best way to get this accomplished?

currently i'm using a fake-WOConditional inside the WORepition, which
calls a boolean function 'fakeCond' which always returns true.
'fakeCond'  binds a local string variable 'attributeName' which is the
bound to my WOString inside the WORepition.

I feel like this is a very dirty trick and i would rather use a
different way. What's the clean way to do this?

here is my current code:

     public EOAttribute attributeItem;
     public String attributeName;

     public Main(WOContext context) {
         super(context);
     }
     public boolean fakeCond(){
         attributeName=attributeItem.columnName();
         return true;
     }

greetz

jacques
__________
OSX 10.2.6 /
mysql 4.0.14-standard
WO 5.2.1
mysql-connector-java-3.0.8-stable-bin.jar
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: using EOAttribute-properties in WebObjectsBuilder
      • From: Jonathan Rochkind <email@hidden>
  • Prev by Date: Re: upload file transfer speed?
  • Next by Date: Re: using EOAttribute-properties in WebObjectsBuilder
  • Previous by thread: [ANN] woproject 1.0.7.23
  • Next by thread: Re: using EOAttribute-properties in WebObjectsBuilder
  • Index(es):
    • Date
    • Thread