• 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 - help with rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W - help with rule


  • Subject: Re: D2W - help with rule
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 13 May 2015 16:27:14 -0400

yea, i have some where I put the session.user.security on the LHS also! Just a question of style I guess.



On May 13, 2015, at 4:18 PM, Timothy Worman <email@hidden> wrote:

> Nice. Thanks. I’m always solving problems right after I ask a question, so………..I also tried this and it works.
>
> 110 : ((entity.name = 'Role' and task != 'editRelationship') and session.loggedInMember.canEditRolesInAdminApp = 1) => isEntityEditable = "true" [com.webobjects.directtoweb.BooleanAssignment]
>
> I don’t like either of the ones that work as much as the original one that doesn’t!!
>
> Tim Worman
> UCLA GSE&IS
>
>
>> On May 13, 2015, at 1:15 PM, Theodore Petrosky <email@hidden> wrote:
>>
>> this one works for me:
>>
>> 100 : entity.name = 'AdRelease' => isEntityEditable = {"conditionKey" = "session.user.security.canEditAdRelease"; "trueValue" = "true"; } [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]
>>
>>
>>
>> On May 13, 2015, at 4:12 PM, Timothy Worman <email@hidden> wrote:
>>
>>> My D2W kung fu is not the strongest and I’m in need of some D2W guru love. I have an entity that I only want to be editable for certain users. So, I have this in my rule file:
>>>
>>> 110 : (entity.name = ‘Role' and task != 'editRelationship') => isEntityEditable = "session.loggedInMember.canEditRolesInAdminApp" [com.webobjects.directtoweb.BooleanAssignment]
>>>
>>> The only problem is that now edit buttons are never presented regardless of who the user is. If I simply use “true” on the RHS it works fine. Is the issue that I cannot reference the session from the RHS of a rule?
>>>
>>> Tim Worman
>>> UCLA GSE&IS
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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 - help with rule (From: Timothy Worman <email@hidden>)
 >Re: D2W - help with rule (From: Theodore Petrosky <email@hidden>)
 >Re: D2W - help with rule (From: Timothy Worman <email@hidden>)

  • Prev by Date: Re: D2W - help with rule
  • Next by Date: Re: D2W - help with rule
  • Previous by thread: Re: D2W - help with rule
  • Next by thread: Re: D2W - help with rule
  • Index(es):
    • Date
    • Thread