Hide field in master view table

Hello all.If i want hide some fields for master table when they appears on top from detail list (when i use grid icon), i just can do it when i select hide the field in list page.If in list page, select hide field, the field is hidden too in view(from master), in master detail view. I tried with field visibility extension, setting in advanced settings the specified field to 0 or false in master variable, but does not work.My master table name is programacion and one of fields name to hide is cod_secIf i open programacionmaster file i can read in te beginning:if ($programaciones->cod_sec->Visible)

Where and how can i change Visible parameter to false? I tried to use some codes from forum, in list master page, in view master page, but any of then works for me. (v2017)In advance, thanks for any help.

Regards.

The closest approach is by using “Custom Templates”. Please read that topic from PHPMaker Help menu for more info and example.

Hi yeico:One idea that I am starting to exploring in order to hide field of the MASTER table when working with DETAIL tables is to make a VIEW of MASTER with only those fields needed. Then establish the relations MASTER/DETAIL exactly as with the original MASTER table, and ¡listo!One other thing that you might want to do most of the times you use this workarround is to edit the MASTER table record. The regular ‘edit’ button is of no use since the fields that are not part of the newMASTER will not be shown when you edit newMASTER).
One solution: you can link the full MASTER as a DETAIL table to the newMASTER table.I hope this idea helps you (and the many other programmers that have the same issue).Saludos desde México,
José Balbás

After looking for a solution, after I posted the previous comment I kept searching this forum, and I found an adecuate solution.In LIST section of the Detail table, at Page_Load event use:
$GLOBALS[“”]->->Visible = FALSE;For example:
$GLOBALS[“Materias”]->M_creditos->Visible = FALSE;
and the MASTER List (or Edit) pages are not affected.Saludos,
José

as @jbalbas indicated, you can use $GLOBALS[“”]->->Visible = FALSE;
I always write it as $this->field_name->Visible = FALSE;place it in page_load event of any table’s add, edit,view,list page to hide a given field from that specific page

In LIST section of the Detail table, at Page_Load event use:
$GLOBALS[“”]->->Visible = FALSE;
Worked great before, but doesn’t work in PHPMaker2021…

FedeLopez wrote:

$GLOBALS[“”]->->Visible

You may try change $GLOBALS[“”] to Container(“”).

arbei wrote:

You may try change > $GLOBALS[“”] > to
Container(“”)> .
This made the trick…
Container(“”)->->Visible = FALSE;

Thanks