I don’t know about the global characters in the propertyKey but here is another 
solution.

Create another .d2wmodel file called PropertyKeys.d2wmodel. add this to your 
Properties file:

er.directtoweb.ERD2WModel.additionalModelNames=(“PropertyKeys.d2wmodel”, 
“Another.d2wmodel”, “AndAnother.d2wmodel");

I create a rule file for all my EOs (that’s right one for each EO). Now I don’t 
have one huge .d2wmodel file that is difficult to parse, I look in the model 
file that belongs to the process I am working on.

You should also look at the Localizable.strings file.

On Feb 26, 2015, at 5:10 AM, Lize Anthonin (@JCOMMOPS) <[email protected]> 
wrote:

> Hi all,
> 
> Quick question, I have some rules defined in my D2W application, which aim to 
> improve display for foreign entity, for instance (I don't use RuleModeler, so 
> the syntax must be not correct here, but it's no big deal for that question) :
> pageConfiguration = 'foo' => displayPropertyKey = ("agency.name")
> propertyKey = 'agency.name' => displayNameForProperty = "Agency"
> 
> My question is, I have to repeat this for a lot of properties :
> propertyKey = 'agency.name' => displayNameForProperty = "Agency"
> propertyKey = 'program.name' => displayNameForProperty = "Program"
> ...
> 
> FYI, the "name" field is a standard I use in a lot of entities.
> 
> Is there a way to define a generic rule, with some king of chaining 
> assignment to an existing key (e.g. 
> er.directtoweb.assignments.ERDKeyValueAssignment), like :
> propertyKey like '*.name' => displayNameForProperty = "<<the magic key I'm 
> looking for referencing foreign entity name>>"
> ?
> 
> It is just to avoid doing it every time and having a huge rules file.
> 
> Thanks
> 
> -- 
> Anthonin Lizé
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to