Hide one option of DropDownButtons in Master Detail Listpage

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
onoboa
User
Posts: 86
Location: Guayaquil - Ecuador

Hide one option of DropDownButtons in Master Detail Listpage

Post by onoboa »

Grettings,

I have a Master/Detail page, in the list page I have a dropdown button with two options, edit master/detail record and view master/detail record.

I want remove edit option based in an condition for the records.

I have try

$this->ListOptions["details"]->Body = "";

But this remove two options

When I try

$this->ListOptions["details"]->Items["edit"]->Visible = false;

Send me an error.

What is the correct method for hide one of two options?

Thanks,

Omar


arbei
User
Posts: 9390

Post by arbei »

You may use var_dump() to see what you can modify first, e.g.
var_dump($this->ListOptions, $this->ListOptions["details"]->Body);


onoboa
User
Posts: 86
Location: Guayaquil - Ecuador

Post by onoboa »

I get the control of visibility options for DropdownButtons with

List Page-> ListOptions_Rendering:

$GLOBALS["receta"]->DetailEdit = !($this->idventa->CurrentValue > 0);

Thanks,

Omar


Post Reply