checkBox clickable from a Rule

7 views
Skip to first unread message

Theodore Petrosky

unread,
Mar 29, 2012, 1:01:31 PM3/29/12
to webobje...@lists.apple.com
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/webobjects-dev-garchive-31333%40googlegroups.com

This email sent to webobjects-dev...@googlegroups.com

David Holt

unread,
Mar 29, 2012, 1:21:59 PM3/29/12
to Theodore Petrosky, webobje...@lists.apple.com
Hi Ted,

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

Theodore Petrosky

unread,
Mar 29, 2012, 1:27:01 PM3/29/12
to David Holt, webobje...@lists.apple.com
I have done this before with a font and CSS, so I guess I will do it again.

Ted

--- On Thu, 3/29/12, David Holt <program...@mac.com> wrote:

Ramsey Gurley

unread,
Mar 29, 2012, 1:31:20 PM3/29/12
to Theodore Petrosky, webobje...@lists.apple.com
It sounds like you're using an edit boolean component on a list page. If that's the case, you need to change it to a display boolean. You may have created a rule that is too broad like

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

David Holt

unread,
Mar 29, 2012, 1:45:39 PM3/29/12
to Ramsey Gurley, webobje...@lists.apple.com, Theodore Petrosky
Sorry Ted,

I completely misunderstood your question. You don't WANT to edit the boolean :-)

Ramsey is correct.

David

_______________________________________________

Theodore Petrosky

unread,
Mar 29, 2012, 2:22:57 PM3/29/12
to Ramsey Gurley, webobje...@lists.apple.com
I just started the font method and I kind of liked it because it gave me a great deal of control over the look with css. However, D2WDisplayBoolean works great.

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

Ramsey Gurley

unread,
Mar 29, 2012, 4:50:50 PM3/29/12
to Theodore Petrosky, webobje...@lists.apple.com
Look at the parenthesis :-) Needs to be

(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

Philippe Rabier

unread,
Mar 29, 2012, 4:52:43 PM3/29/12
to Theodore Petrosky, webobje...@lists.apple.com
For a list, you write rules with task='edit' ? Or because you want a different behavior for the list, you do specific rules for the edit task?

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

Reply all
Reply to author
Forward
0 new messages