viewable property.

Questionsviewable property.
Montemaggiore Sebastian asked 10 years ago

Hello. What can i do in order to show a column field in the grid but not in the add form?. I use de viewable property but it doesn´t work. Here´s part of my code:


// Indico propiedades de la columna "es_tarea_predefinida".
$col = array();
$col["name"] = "es_tarea_predefinida";
$col["edittype"] = "checkbox";
$col["editoptions"] = array("value"=>"Si:No");
$col["viewable"] = false; // I suppose that the respective columm it is not shown in the grid but it does.
$cols[] = $col;

Thanks.

2 Answers
Abu Ghufran answered 10 years ago

Hide it on grid list, and display it on Add or Edit forms.

$col["hidden"] = true;
$col["editrules"] = array("edithidden"=>true);

If only want to display on add not edit,

$col["show"]["list"] = false;
$col["show"]["edit"] = false;
$col["show"]["add"] = true;

Montemaggiore Sebastian answered 10 years ago

Thanks, it works fine!!!,

Your Answer

10 + 14 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?