1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

SetFieldValue not changing the value of a Lookup

Discussão em 'PSDN - Forum' iniciado por ByronB, Fevereiro 14, 2015.

  1. ByronB

    ByronB Guest

    Hi, I need to change the value of a lookup based on another fields value. The thing is we are using to hide the text box and selector etc to make the field "ReadOnly":

    // Making the Account Manager field Read Only
    var accmgrid = rbf_getFieldValue('accountManager');
    $('#txtaccountManager').parent('td').hide();
    $('#accountManager_' + accmgrid + ' span:nth-child(1) i:nth-child(1)').hide();


    OnChange event:

    <script>

    function onChangeDivision(form)
    {
    var relDivision = form.contactDivision.value;
    if (relDivision != ""){
    function cb(values) {
    var acctMgr = values[0][0];
    //alert(acctMgr);
    rbf_setFieldValue('accountManager', acctMgr);
    }
    rbf_selectQuery("select accountManager from division where id=" + relDivision, 1, cb);
    }
    }
    </script>

    Why wont the setfieldvalue set? What other way could i possibly achieve this? We do not want the users to set this value at all.

    Continue reading...

Compartilhe esta Página