Multiple selections in dropdown lost when used the $col["editoptions"][onload][sql] = …

QuestionsMultiple selections in dropdown lost when used the $col["editoptions"][onload][sql] = …
Alexander Toth asked 5 years ago

Hello Abu, I’ve a column like this that works fine:

$col = array();
$col[“title”] = “Luoghi”;
$col[“name”] = “luoghi”;
$col[“editable”] = true;
$col[“formatter”] = “select”;
$col[“edittype”] = “select”;
$str = $g->get_dropdown_values(“select UUID as k, luogo as v from luoghi order by luogo asc”);
$col[“editoptions”] = array(“value”=>$str);
$col[“editoptions”][“multiple”] = true;
$cols[] = $col;

But when I add this row:

$col[“editoptions”][onload][sql] = “select UUID as k, luogo as v from luoghi order by luogo asc”;

every time I try to edit the record, the previous multiple selections are lost (they are correctly highlighted in blue when the dialog form open but after few milliseconds they are no longer highlighted.

 

Thanks

1 Answers
Abu answered 5 years ago

Emailed you latest build that should resolve this issue.

Your Answer

0 + 0 =

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?