• 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 How does one use a variable in the RHS of a rule?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W How does one use a variable in the RHS of a rule?


  • Subject: Re: D2W How does one use a variable in the RHS of a rule?
  • From: Ramsey Lee Gurley <email@hidden>
  • Date: Wed, 30 Jun 2010 21:59:48 -0400

I don't think you'd actually use @@ in your localized key.  That template string would go into your Localizable.strings file like

"blahblah.userPurchaseList.whatever" = ""@@object.fullname@@ Purchase List";

and then in your rule you'd use

blah => displayNameForPageConfiguration = "blahblah.userPurchaseList.whatever" [ERDLoc]

Ramsey


On Jun 28, 2010, at 2:01 PM, David Holt wrote:

> As soon as I enter the @@ string in RuleModeler, the cursor disappears and RuleModeler hangs and won't let me continue to save the file unless I delete those characters. Is there a special way to enter these @@?
>
> David
>
> On 25-Jun-10, at 11:29 PM, Anjo Krank wrote:
>
>> Using a delayed localized assigment and a pattern. Like
>>
>> bla => displayNameForPageConfiguration = "@@object.fullName@@ Purchases List" [ERDDelayedLocalizedAssigment]
>>
>> (untestet, but should work if the page actually inspects the user).
>>
>> Cheers, Anjo
>>
>>
>>
>> Am 26.06.2010 um 01:33 schrieb David Holt:
>>
>>> Hi all,
>>>
>>> Let's say I have a list of a person's purchases and instead of having something generic like:
>>>
>>> RHS displayNameForPageConfiguration = "Person Purchases List"
>>>
>>> I would like to use a variable in the RHS such as
>>>
>>> displayNameForPageConfiguration = +user.fullName + " Purchases List"
>>>
>>> Is this possible?
>>>
>>> David
>>> _______________________________________________
>>> 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
>>
>> _______________________________________________
>> 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
>
> _______________________________________________
> 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

 _______________________________________________
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

References: 
 >D2W How does one use a variable in the RHS of a rule? (From: David Holt <email@hidden>)
 >Re: D2W How does one use a variable in the RHS of a rule? (From: Anjo Krank <email@hidden>)
 >Re: D2W How does one use a variable in the RHS of a rule? (From: David Holt <email@hidden>)

  • Prev by Date: Re: Multiple Models, Coalesced Transactions - is it possible?
  • Previous by thread: Re: D2W How does one use a variable in the RHS of a rule?
  • Next by thread: exporting to excel
  • Index(es):
    • Date
    • Thread