Variable in the edition of a record

Variable in the edition of a record

rrzavaletarrzavaleta Posts: 78Questions: 52Answers: 2

Hi, I have a question with the process of ediciocn of a record.

It works as follows .

When I edit a record , I need a field of this register is loaded right through a variable.

Usually this is no problem when "creates" a record. because with the "def " property can be done easily.

But when I edit the registry. the data is loaded but not replaced with the value of the variable using the "def " property.

As I can fix this. ? upload a variable in a field during editing . I'm using the editor.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    The def (default) value is just the default value. If you want to replace it with something else on edit you set to set the value, which you can do using val().

    Allan

  • rrzavaletarrzavaleta Posts: 78Questions: 52Answers: 2

    excellent help
    allan thanks, I could do it.

    {label: "ID USUARIO MOD edit:",name: "ID_USUARIO_MOD", data: function (val){
    var dd= "1233";
    return val = dd;
    }},

This discussion has been closed.