jQWidgets Forums

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: undefine undefine #85801

    famp
    Participant

    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);
    in reply to: example Shopping Cart example Shopping Cart #85695

    famp
    Participant

    thank you very much , perfect

    in reply to: jqxTextArea and data jqxTextArea and data #85349

    famp
    Participant

    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);

    in reply to: add new row add new row #81992

    famp
    Participant

    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 English


    famp
    Participant

    This 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;


    famp
    Participant

    hi thanks for answering.
    I have solved by adding another identical query right after the update and before and everything else ok.

Viewing 6 posts - 1 through 6 (of 6 total)