Hide Add and detail table options issues

2 question on ListOptions that I can’t resolve,

  1. In tablelist page, how to hide the “+” add option?
    in my table specific > list page > ListOptions_rendered, I added the following code but it seems no effect.
    OtherOptions[“addedit”].GetItem(“add”).Body = “”;
  2. For master/detail table, under the [+] drill down detail, I want to hide the “table” icon (the detail link), I added the code in,
    table specific > preview page > ListOptions_rendered
    ListOptions[“detail_mydetailtable”].Clear();
    Again, no effect at all. I had also try to add above code to list page but same issue

Can anyone tell me how to get it right?TIA,
Wilson

  1. ListOptions_Rendered may be too late. Try the Page_Render server event.
  2. If you mean the preview extension, there is probably no simple way to do that.