Master-detail

QuestionsMaster-detail
pierre mata asked 2 years ago

Hello, i want to set a dropdown control which has the same type dependency of the grid's source

this is the detail:

$id = intval($_GET["rowid"]);

$g->select_command ="SELECT * FROM pagos WHERE idemp = $id";

$g->table = "pagos";

$col = array();
$col["title"] = "Id";
$col["name"] = "idpag";
$col["fixed"] = true;
$col["width"] = "33";
$col["align"] = "center";
$col["show"] = array("list"=>false,"edit"=>false,"add"=>false,"view"=>false);
$cols[] = $col;

$col = array();
$col["title"] = "Alumno";
$col["name"] = "idalu";
$col["fixed"] = true; $col["width"] = "44";
$col["align"] = "center";
$str2 = $g->get_dropdown_values("select distinct id as k, name as v from alumns where idemp = $id");

the dependency of this last line no works…. any ideas????

1 Answers
Abu Ghufran answered 2 years ago

Please share complete grid code (pastebin.com) + screenshot of the issue (http://prntscr.com/).
It will help in fast resolution.

Your Answer

15 + 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?