How to hide the Add button generated inside the detail grid panel on the master view page?

What is the correct PHPMaker event / option / override to hide the Add button that is generated inside the detail grid panel on the master view page?

Specifically:

  • How do I hide/remove the Add option inside detail grids shown in master-detail tabs?

  • Which event (Page_Load / Page_Render / Page_DataRendered / ListOptions_Load / ListOptions_Rendered) is the correct one?

  • Which object should be modified?

    • $this->OtherOptions (master)

    • $this->DetailOptions

    • $Page->ListOptions (detail grid)

    • $Page->OtherOptions (detail grid)

  • Is there a special method to disable detail-grid Add for a closed master record?

Can you post a screenshot and show which button exactly?

This add button if master list item status is closed.

The option should be OtherOptions["addedit"]["add"] of the Grid page of the detail table (e.g. SeviceImpactGrid. You should be able to get the page object by Container("SeviceImpactGrid").