I have a master table with an inline add of the details table when I do Add new on the master table.
I would like to remove the neighbouring buttons that says "Inline Add" and "Cancel" that appear above the inline add on an Add new of the master table.
My reason is I only want one inline add so do not want the option of the user to select an additional inline add.
Is this possible or is there another way to do this?
I have tried the following code without success in List page before display. My table is called financialsperiod1. Not sure if masterkey1 is the correct syntax or this should be replaced with anything else.
global $strTableName,$dal;
$dal_table = $dal->Table("financialsperiod1");
$rstmp = $dal_table->Query("OrderID='".$_SESSION[$strTableName."_masterkey1"]."'");
$datatmp = db_fetch_array($rstmp);
if ($datatmp["OrderID"]>1)
{
$xt->assign("editselected_link",false);
$xt->assign("deleteselected_link",false);
$xt->assign("inlineadd_link",false);
}