| I am working on a Direct to Java Client project and here's the code that the Assistant generates in the user.d2wmodel file when changing the "label" of an attribute.: { "class" = "com.webobjects.directtoweb.Rule"; "author" = "100"; "rhs" = { "class" = "com.webobjects.directtoweb.Assignment"; "value" = "Description"; "keyPath" = "label"; }; "lhs" = { "class" = "com.webobjects.eocontrol.EOAndQualifier"; "qualifiers" = ( { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "value" = "billOfMaterialDescription"; "selectorName" = "isEqualTo"; "key" = "propertyKey"; }, { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "value" = "BillOfMaterial"; "selectorName" = "isEqualTo"; "key" = "entity.name"; }, { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "value" = "widgetController"; "selectorName" = "isEqualTo"; "key" = "controllerType"; } ); }; } In this example, it is the attribute I'm renaming instead of the entity, but it could give you a clue on how to do it for the Entity. The name of the attribute I'm renaming is "billOfMaterialDescription" in the "BillOfMaterial" Entity and I am shortening it to "Description" You could try removing the first qualifier in the list that is telling it to get the attribute, or simply try "label" instead of "displayNameForEntity". I'm just guessing here, but since this is the code that the Assistant generates, it is likely a good place to start. Dave On Feb 16, 2006, at 11:25 AM, Johan Henselmans wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
