jQWidgets Forums
Forum Replies Created
-
Author
-
hello, that is indefinite
var tpv= { datatype:"json", datafields: [ {name: 'tpv', type:'string'} ], url: 'listas/datos/lista_espera_peluqueros_datos.php' }; var datatpv = new $.jqx.dataAdapter(tpv); alert(datatpv.name);
thank you very much , perfect
Thanks , solved .
I have another question , as I write in placeholder the value of empleado_nombre ejemple.having these types of data:
var dataRecord = $(“#jqxgrid”).jqxGrid(‘getrowdata’, editrow);
$(“#expediente”).val(dataRecord.expediente);
$(“#poliza”).val(dataRecord.poliza);
$(“#polizasid”).val(dataRecord.polizasid);
$(“#clienteid”).val(dataRecord.clienteid);
$(“#codigo”).val(dataRecord.codigorepara);
$(“#factura”).val(dataRecord.facturar);
$(“#descripcion”).val(dataRecord.descripcion);
$(“#realizado”).val(dataRecord.realizado);
$(“#fecha”).val(dataRecord.fecha);
$(“#hora”).val(dataRecord.hora);
$(“#fechafin”).val(dataRecord.fechafin);
$(“#fechadevolucion”).val(dataRecord.fechadevolucion);
$(“#horafin”).val(dataRecord.horafin);
$(“#nombre_cliente”).val(dataRecord.nombre_cliente);
$(“#domicilio”).val(dataRecord.domicilio);
$(“#telefono_cliente”).val(dataRecord.telefono_cliente);
$(“#empleado_nombre”).val(dataRecord.empleado_nombre);mistake by asking , what I realize is that once you enter a new line , receives focus insertion line , to introduce a new one.
Sorry for my EnglishFebruary 24, 2016 at 2:46 pm in reply to: grip does not synchronize with mysql grip does not synchronize with mysql #81786This is the solution, It connects to the MySQL file stays like this.
EL fichero que realiza la conexion con mysql se queda como este.`include(‘../../includes/funciones.php’);
conexion_pdo($con, $hostname, $database, $username, $password);
// $lista= mostrarLista_peluquero($con);
$lista = $con->query(“SELECT * FROM listas “);
if (isset($_GET[‘update’]))
{
$estado=$_GET[‘estado’];
$id=$_GET[‘idlista’];
$sql = “UPDATE listas SET estado=$estado WHERE id=$id”;
$stmt = $con->prepare($sql);
$stmt->execute();
/*———————————-NEW———————————–*/
$lista->execute();
$total_rows = $lista->rowCount();
while ($row = $lista->fetch(PDO::FETCH_ASSOC)){
$pendiente_pelado[] = array(
‘numero’ => $row[‘numero’],
‘nombre’ => $row[‘nombre’],
‘hora_fin’ => $row[‘hora_pelado’],
‘hora_llegada’ => $row[‘hora_llegada’],
‘estado’ => $row[‘estado’],
‘idlista’ => $row[‘id’]
);
}$data[] = array(
‘TotalRows’ => $total_rows,
‘Rows’ => $pendiente_pelado
);
echo json_encode($data);
}
/*————————————————-END NEW———————————————*/
else {
$lista->execute();
$total_rows = $lista->rowCount();
while ($row = $lista->fetch(PDO::FETCH_ASSOC)){
$pendiente_pelado[] = array(
‘numero’ => $row[‘numero’],
‘nombre’ => $row[‘nombre’],
‘hora_fin’ => $row[‘hora_pelado’],
‘hora_llegada’ => $row[‘hora_llegada’],
‘estado’ => $row[‘estado’],
‘idlista’ => $row[‘id’]
);
}$data[] = array(
‘TotalRows’ => $total_rows,
‘Rows’ => $pendiente_pelado
);
echo json_encode($data);}
/* close connection */
$con=FALSE;February 24, 2016 at 8:23 am in reply to: grip does not synchronize with mysql grip does not synchronize with mysql #81764hi thanks for answering.
I have solved by adding another identical query right after the update and before and everything else ok. -
AuthorPosts