Item List

QuestionsItem List
Gustavo Lazaro asked 8 years ago

Hi Abu. I have a problem. When I add a record, the periodoDesde field, is recorded well. When you edit the record in the grid, the periodoDesde field, does not respect the recorded value. The pointer on the first political element of the list is positioned. Thank you

$periodos = "201601:01/2016;201602:02/2016;201603:03/2016;201604:04/2016;201605:05/2016;201606:06/2016;201607:07/2016;201608:08/2016;201609:09/2016;201610:10/2016;201611:11/2016;201612:12/2016";

$col = array();
$col["title"] = "Periodo desde";
$col["name"] = "periodoDesde";
$col["editoptions"] = array("value"=>$periodos);
$col["searchoptions"] = array("value"=>":;".$periodos);
$col["edittype"] = "select";
$col["stype"] = "select";
$col["formatter"] = "select";
$col["editable"] = true;
$col["show"] = array("list"=>false, "add"=>true, "edit"=>true, "view"=>false);
$cols[] = $col;

2 Answers
Abu Ghufran answered 8 years ago

Hello,

Can you tell what format of data is stored in db table? Is it 201601?

Gustavo Lazaro answered 8 years ago

Abu sorry. The error occurs because I am running a SELECT statement and does not invoke the fields. Again sorry. Thank you

Your Answer

8 + 3 =

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?