((pageConfiguration = 'ListBrief' and propertyKey = 'abECD') or propertyKey = 'abPresident' or propertyKey = 'estimateApproved')
Is there a RHK to set to false to make these checkboxes static? I mean, it doesn't mean anything to click the check box and have it change state because you can not save it here (from the list page).
Of course I could create a font that has a hyphen for the character zero and a check mark for the number one. then use css to use my new font. but i think I should learn these rules.
Ted
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (Webobje...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/webobjects-dev-garchive-31333%40googlegroups.com
This email sent to webobjects-dev...@googlegroups.com
You'll actually need to use the EditableList page to be able to save any changes that are made. There are some issues with Ajax/Pagination if I recall correctly. I just make sure that all objects are displayed in one page to get around that. If that doesn't suit your needs, you may need to make some modifications to EditableList to make the functionality complete. It has been on my back burner for some time, but I haven't *needed* it quite yet. The normal list page doesn't have the methods you require.
David
On 2012-03-29, at 10:01 AM, Theodore Petrosky wrote:
> I have a list page that shows an object that has a few checkboxes. I want to make the check boxes un clickable on the ListPage.
>
>
> ((pageConfiguration = 'ListBrief' and propertyKey = 'abECD') or propertyKey = 'abPresident' or propertyKey = 'estimateApproved')
>
> Is there a RHK to set to false to make these checkboxes static? I mean, it doesn't mean anything to click the check box and have it change state because you can not save it here (from the list page).
>
> Of course I could create a font that has a hyphen for the character zero and a check mark for the number one. then use css to use my new font. but i think I should learn these rules.
>
> Ted
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (Webobje...@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>
> This email sent to program...@mac.com
Ted
--- On Thu, 3/29/12, David Holt <program...@mac.com> wrote:
entity.name = "Blah" and propertyKey = "thing" => componentName = EditBoolean
Where you need to either use the pageConfiguration or task on the LHS side too.
Ramsey
On Mar 29, 2012, at 10:01 AM, Theodore Petrosky wrote:
> I have a list page that shows an object that has a few checkboxes. I want to make the check boxes un clickable on the ListPage.
>
>
> ((pageConfiguration = 'ListBrief' and propertyKey = 'abECD') or propertyKey = 'abPresident' or propertyKey = 'estimateApproved')
>
> Is there a RHK to set to false to make these checkboxes static? I mean, it doesn't mean anything to click the check box and have it change state because you can not save it here (from the list page).
>
> Of course I could create a font that has a hyphen for the character zero and a check mark for the number one. then use css to use my new font. but i think I should learn these rules.
>
> Ted
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (Webobje...@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>
> This email sent to rgu...@smarthealth.com
I completely misunderstood your question. You don't WANT to edit the boolean :-)
Ramsey is correct.
David
> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
>
> This email sent to program...@mac.com
_______________________________________________
Interesting this works with the editPage:
(((task = 'edit' and entity.name = 'Brief') and propertyKey = 'abECD') or propertyKey = 'abPresident' or propertyKey = 'estimateApproved')
However, on a list page I had to remove the or's and have three lines.
(task = 'edit' and entity.name = 'Brief') and propertyKey = 'abECD')
(task = 'edit' and entity.name = 'Brief') and propertyKey = 'estimateApproved')
(task = 'edit' and entity.name = 'Brief') and propertyKey = 'abPresident')
Is this expected behavior?
Ted
--- On Thu, 3/29/12, Ramsey Gurley <rgu...@smarthealth.com> wrote:
> From: Ramsey Gurley <rgu...@smarthealth.com>
> Subject: Re: checkBox clickable from a Rule
> To: "Theodore Petrosky" <ted...@yahoo.com>
> Cc: webobje...@lists.apple.com
(task = 'edit' and entity.name = 'Brief') and (propertyKey = 'abECD' or propertyKey = 'abPresident' or propertyKey = 'estimateApproved')
Default rules should be handling the display boolean for you as long as those keys are boolean attributes and not just methods that return booleans.
Ramsey
However, your first rule seems to be wrong. If (propertyKey = 'estimateApproved') is true, the rule will be fired whatever the value of task. The same for 'abPresident' because you put () at the wrong place.
Maybe I misunderstood what you try to do but the rule should be like that :
> task = 'edit' and entity.name = 'Brief' and (propertyKey = 'abECD' or propertyKey = 'abPresident' or propertyKey = 'estimateApproved')
Philippe
Sent from my iPhone
> https://lists.apple.com/mailman/options/webobjects-dev/prabier%40me.com
>
> This email sent to pra...@me.com