How to modify buttons on list page? (v2022)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
btrade
User
Posts: 357

Re: How to modify buttons on list page? (v2022)

Post by btrade »

Yes, I mean it. On the view page. Also on the list page I need to disable the add button. Since I am adding all the entries via master/add .

It's very good work on list page

function ListOptions_Rendered()
{
 $this->ListOptions["details"]->Visible = FALSE; // if you enabled "Multiple detail tables"
}

it doesn't work on the view page.

 function Page_Render()
{  
    $this->OtherOptions["action"]["detail"]->Visible = FALSE;
}

And I don't know how to disable the simple button for adding on the list page. I need only the button of master/add.


mobhar
User
Posts: 11712

Post by mobhar »


btrade
User
Posts: 357

Post by btrade »

Mastrer table - view page.

I added this command but it don't work.

function Page_Load()
{
    $this->ShowMultipleDetails = false;
}

function Page_Render()
{
    $this->OtherOptions["detail"]->add("detail_products")->Body = ""; 
}

mobhar
User
Posts: 11712

Post by mobhar »

It should work.

Double check this part: detail_products. Make sure products is your detail table name, and not the master table name.


btrade
User
Posts: 357

Post by btrade »

Yes, sure it solved.

how to disable the simple button for adding on the list page?


btrade
User
Posts: 357

Post by btrade »

It works

List page

// Page Data Rendering event
$this->OtherOptions["addedit"]->Items["add"]->Visible = FALSE;

Post Reply