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.