• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: D2W Rules
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W Rules


  • Subject: Re: D2W Rules
  • From: Ramsey Gurley <email@hidden>
  • Date: Thu, 26 Feb 2015 10:13:46 -0700

The correct way is to use localization. If you put

“PropertyKey.agency.name” = “Agency”;

in your 

Resources/English.lproj/Localizable.strings 

file, you’ll get the desired effect. You can easily generate these by visiting all the pages you want to localize and then dumping your localized keys to the console. 

http://localhost/cgi-bin/WebObjects/YourApp.woa/wa/ERXDirectAction/dumpCreatedKeys

There’s also a ERD2WPageRunner class to automate this if you have many page configurations you’d like to generate.

On Feb 26, 2015, at 3:10 AM, Lize Anthonin (@JCOMMOPS) <email@hidden> 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: D2W Rules
      • From: "Lize Anthonin (@JCOMMOPS)" <email@hidden>
    • Wonder application not starting after 1year in deployment
      • From: Troy Lumasag <email@hidden>
References: 
 >D2W Rules (From: "Lize Anthonin (@JCOMMOPS)" <email@hidden>)

  • Prev by Date: Snapshot access NPE
  • Next by Date: Wonder application not starting after 1year in deployment
  • Previous by thread: Re: D2W Rules
  • Next by thread: Wonder application not starting after 1year in deployment
  • Index(es):
    • Date
    • Thread