Хат #605 Тарату тізімі webobjects-dev@wocommunity.org
Кімнен: 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>
Жазылу (Тіке) Жазылу (Дайджест) Жазылу (Сөзбасы) Қол қойғаннан Listmaster жазу