Master-detail

QuestionsMaster-detail
pierre mata asked 7 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
Your Answer

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