Re: D2W How does one use a variable in the RHS of a rule?
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