On 2009-09-19, at 7:45 AM, Mr. G Brown wrote:

Hi,

ER/D2W will pick an attribute for a related entity. Often, I find, it picks an attribute I don't want. : < ( Is there any good general way to choose which attribute gets thrown up in edit/inspect tasks?

For example, let's say we have a person table, related to many events, which in turn are related to many event-details. This is a fairly common pattern.

person< >> events< >> details


Q1. If, every time D2W must pick a related attribute from the person table,

not sure what you mean by "pick a related attribute". Do you mean for display? If so, I think you can set your "displayPropertyKeys" globally for your entity.


how can I make sure it is the one I want to use? i.e., override the default? What is the best general way?

Q2. If I am editing an event-detail, how can I use for a query a numeric attribute from the person table in a keypath? D2W seems to only accept strings. I could be doing it wrong, but if I use something like "person.personNumber" in the key keyWhenRelationship, D2W gives me an error:

java.lang.NumberFormatException: For input string: "1%"

Are you using ERD2W or just D2W?


Also, when I turn on 'rule tracing': Just where do I seen the rules being traced?

In the console of Eclipse.

David


Thanks,

gb
_______________________________________________
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/programmingosx%40mac.com

This email sent to programming...@mac.com

 _______________________________________________
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