using EOAttribute-properties in WebObjectsBuilder
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.