I tenfo code is as follows:
- Code: Select all
$tableColumns['CVE_ESTADOS_REP'] = array('display_text' => 'Estado', 'perms' => 'EVCTAXQ',
'join' => array('table' => 'estados_rep', 'column' => 'CVE_ESTADOS_REP',
'display_mask' => "concat(estados_rep.NOMBRE)", 'type' => 'left'),
'input_info' => 'onchange="mate1_.toAjaxTableEditor(\'filtrar_municipios\',this.value);"');
$tableColumns['CVE_MUNICIPIOS'] = array('display_text' => 'Municipios', 'perms' => 'EVCTAXQ', 'join' => array('table' => 'municipios', 'column' => 'cve_municipios', 'display_mask' => "concat(municipios.NOMBRE)", 'type' => 'left'));
- Code: Select all
//The function
function LlenarComboMunicipios($CVE_CAR)
{
$IDCARRERA=$CVE_CAR;
//echo $IDCARRERA;
$query = "SELECT CVE_MUNICIPIOS,NOMBRE,CLAVE FROM MUNICIPIOS WHERE CVE_ESTADOS_REP=$CVE_CAR;";
$result = mysql_query($query) or die('Debe Seleccionar un registro de la lista: ');
$html = '<select id="CVE_MUNICIPIOS" name="CVE_MUNICIPIOS">';
while ($row = mysql_fetch_assoc($result)) {
$html .= "<option value='".$row['CVE_MUNICIPIOS']."'>".$row['NOMBRE']."</option>";
}
$html .= '</select>';
$this->Editor->retArr[] = array('where' => 'innerHTML', 'layer_id' => 'CVE_MUNICIPIOS_input_cell', 'value' => $html);
}
an the useractions:
- Code: Select all
$userActions = array('filtrar_municipios' => array(&$this,'LlenarComboMunicipios'));
$this->Editor->setConfig('userActions',$userActions);
the PRO version does not work
By selecting an option from the Dropdown CVE_ESTADOS_REP me generates this error message :
CVE_MUNICIPIOS_input_cell does not exist
Please help me, any solutions??????