Only Add Masterdetail

Hi,

at the moment i have one table in which becoming the master (Table A) of the detail table (Table B)

the problem is that in the list page, i have 2 add button :

  1. is the add button applied only (table A) so it will contain add for the field in Table A only
  2. Second table id Add Master/Detail which will add the master and the detail on one page

my intention is that i want to only view button 2 (Add master/detail) and change the button label.

How could i achieve this.

Thanks

Simply put the following code in “Page_Render” server event that belongs to your Master table:

$this->OtherOptions[‘addedit’] = new ListOptions(); // assume v2020
$this->OtherOptions[‘addedit’]->Body = “”;