Re: using EOAttribute-properties in WebObjectsBuilder
Re: using EOAttribute-properties in WebObjectsBuilder
- Subject: Re: using EOAttribute-properties in WebObjectsBuilder
- From: Jonathan Rochkind <email@hidden>
- Date: Tue, 16 Sep 2003 11:09:24 -0500
Sometimes WOBuilder doesn't show all the keys that are available. But they
are still available. If you know that your item is an EOAttribute, and you
know that EOAttributes do have a no-argument method called columnName(),
just bind your WOString to attributeItem.columnName. It'll work. Even
though WOBuilder didn't know to display that key as an option; doesn't mean
it won't work. You don't need any tricky workaround, just bind the WOString
to the keypath you want. Not all valid keypaths are shown in the WOBuilder
GUI, but they're still there.
At 05:53 PM 9/16/2003 +0200, jacques couzteau wrote:
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.
_______________________________________________
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.