DataTables logo DataTables

via Ad Packs
Como poner un valor a un campo
  • editor.set( 'name', 'Updated name' ); Donde va esto para que funcione ??
  • allanallan
    Posts: 15,471
    En cualquier lugar después de haber inicializado Editor. ¿Qué hace tu código parece?

    (Traducción de Google :-)).
  • Lo que quiero hacer es que cuando se actualice el registro guarde el usuario que lo actualizo el usuario yo lo tengo en una variable como le otorgo ese valor a un campo.


    I need that when you update a record store the user did. I have the user in a variable. As we assign the variable value to a field
  • allanallan
    Posts: 15,471
    Así que usted quiere establecer un parámetro variable cuando se envía el formulario al servidor? Eso se puede hacer con la devolución de llamada onPreSubmit: http://editor.datatables.net/options/ # onPreSubmit. Modificar los valores en data.data y que es lo que se enviará al servidor.

    Allan
  • Thank you very much for your answers.
    Could you give an example
  • allanallan
    Posts: 15,471
    De esta manera: http://editor.datatables.net/release/DataTables/extras/Editor/examples/clientValidation.html. En lugar de comprobar los valores, ponerlos y no se devuelve falso.

    Allan

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion