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

2010-06-30 Thread Ramsey Lee Gurley
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  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net
 
 This email sent to a...@krank.net
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com
 
 This email sent to rgur...@mac.com

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

This email sent to arch...@mail-archive.com


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

2010-06-26 Thread Anjo Krank
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  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net
 
 This email sent to a...@krank.net

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

This email sent to arch...@mail-archive.com


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

2010-06-26 Thread David Holt
Thanks for tip. Is there another technique if you need access to an EO other 
than the object in the d2wcontext?

David

On 2010-06-25, at 11:29 PM, Anjo Krank a...@krank.net 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  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net
 
 This email sent to a...@krank.net
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

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

2010-06-25 Thread 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  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com