hidden : show list only

Questionshidden : show list only
Samsun asked 5 years ago

Hey Mr Abu,

I want to my column is hidden because the value is by default value, but in list i wan to show the value.

I try like this:
$col = array();
$col["title"] = "COlumn Name";
$col["name"] = "column1";
$col["width"] = "300";
$col["align"] = "left";
$col["search"] = false;
$col["editable"] = true;
$col["show"] = array("list"=>true, "add"=>false);
$col["editoptions"] = array("defaultValue"=>substr($_SESSION['opd'],0,4));
$cols[] = $col;

BUt its not works.

Regards,
Samsun

1 Answers
Abu Ghufran answered 5 years ago

Try setting:

$col["default"] = substr($_SESSION['opd'],0,4);

This is useful for setting default content for virtual columns. You can also use {column-name} in it.

Your Answer

13 + 18 =

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 / 5. Vote count:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!