How to hide Master/Detail Edit with condition

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Trosmada
User
Posts: 4

How to hide Master/Detail Edit with condition

Post by Trosmada »

PHPMAKER 2024

I have 2 tables:
Master : poheader
Detail : podetail

If poheader->status = "P" then Master/Detail Edit (option) will be hide.

I did for the "edit" -- it works, like this:

function ListOptions_Rendered()
{
   
if ($this->po_state->CurrentValue == "P") {
$this->ListOptions->Items["edit"]->Body = "";
} 

}

But how to hide the Master/Detail Edit.

Kindly help. thanks


arbei
User
Posts: 9436

Post by arbei »

You may read ListOptions_Rendering.


Trosmada
User
Posts: 4

Post by Trosmada »

Thank you & Blessings

I succeed put code in ListOptions_Rendering().


Post Reply