| Support Center

(Back to Website)

Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Master-detail

pierre mata Sep 09, 2017 08:36AM PKT

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

Up 0 rated Down
Abu Ghufran Sep 12, 2017 07:03AM PKT PHP Grid - Support Center Engineer
Please share complete grid code (pastebin.com) + screenshot of the issue (http://prntscr.com/).
It will help in fast resolution.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Contact Us

  • Post a Public Question
  • Email Us
  • Live Chat!
  • Ask the Community

    Instructions

    • Paste complete code that is involved in your question. You can use pastebin.com to share code link.

    Screenshots or Online link of webpage is helpful in resolution. You can also send email at address mentioned below.

    • To report an issue, Write steps to regenerate the case.

    • For email support or live chat, Use gridphp@gmail.com and add it in Google Chat.
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete