메일링 리스트 webobjects-dev@wocommunity.org 메시지 #605
보낸 사람: Markus Ruggiero (rucotec) <webobjects-dev@wocommunity.org>
발신자: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
제목: [WO-DEV] Re: rule problem
일자: Tue, 31 Mar 2026 16:15:49 +0200
받는 사람: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
서명된 데이터 (Text SHA256)
On 31 Mar 2026, at 02:18, Theodore Petrosky <webobjects-dev@wocommunity.org> wrote:

I need help with a D2W rule. I see that ERModEditRelationshipPage has the EditListButtons wrapped in a WOConditional. The boolean value is shouldShowEditListButton

I created a rule:

    100 : *true* => shouldShowEditListButton = "false" [com.webobjects.directtoweb.Assignment],

I also tried:
pageConfiguration = 'EditRelationshipEmbeddedPersonInstrument' => shouldShowEditListButton = "false" [com.webobjects.directtoweb.Assignment]

but no joy. Am I missing something?

It has been a while and I find that I am relearning a lot of WO and D2W.


Maybe shouldShowEditListButton is not an attribute directly accessible from the d2wContext. But if I rememberer correctly there are entityIsEditable, entityIsInspectable, entityIsDeleteable. Give it a try in the D2W debugger in the respective page. You have access to the d2wContext and can query it for any key. Sometimes this even works (tm). It’s an Ajax thing that is supposed to update the result area on input but sometimes it simply does not. You can then build your rules on this.

Sometimes a bit of css magic can make unwanted buttons go away if all else fails.

---markus---

Ted


#############################################################
This message is sent to you because you are subscribed to
the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to  <webobjects-dev-request@wocommunity.org>



Markus Ruggiero


rucotec GmbH                        web https://rucotec.ch
Leonhardsberg 1                   email markus.ruggiero@rucotec.ch
4051 Basel / Switzerland         mobile +41 79 508 4701








내용 변경이 없음이 보증됨:
<markus.ruggiero@rucotec.ch>
가입 (FEED) 가입 (DIGEST) 가입 (INDEX) 탈퇴 Listmaster에게 메일 보내기