Re: Condition for showing DeleteButton in a ListPage
Re: Condition for showing DeleteButton in a ListPage
- Subject: Re: Condition for showing DeleteButton in a ListPage
- From: Theodore Petrosky <email@hidden>
- Date: Mon, 08 Apr 2019 21:25:28 -0400
I have done this:
100 : (task = 'list' and session.user.showsHelpText = 'true') =>
showHeaderInstructionComponent = "true"
[com.webobjects.directtoweb.BooleanAssignment]
if the logged in user in the session yada yada!
what is object.status? is status a boolean on the current object? if yes:
100 : (task = 'list’ and object.status = 'true') => isEntityDeletable = "false"
[com.webobjects.directtoweb.BooleanAssignment]
> On Apr 8, 2019, at 12:19 PM, Savas Celik <email@hidden> wrote:
>
> How can I make the Key: isEntityDeletable true or false depending on the
> objects status?
>
> for example: 100 : (pageConfiguration = 'ListUser' and object.status =
> “cantBeDeleted") => isEntityDeletable = “false"
> [com.webobjects.directtoweb.Assignment]
>
> This should make every User delete able except the once with the status =
> “cantBeDeleted”. But it does not work, it only applies it for the first item
> in the List.
>
> Savas
> _______________________________________________
> 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