Hello, I'm French so my English is not very good.
I created society views pointing to a base of business management.
On a "Logiciel entity" when I enter the serial number I want to return invoice number. " With the following on "MC_client_ script... "it works but only after the record is saved and click on change." In short, to change there he load value and returns the result. But in the field change it not work, help please!
case "LOGICIELS_LOGI_T01_B01":
sAlert =eWare.FindRecord('company,vXcompany_ERPproduit ',"comp_CompanyId="+Values('logi_companyid')+" and do_piece='"+Values('logi_description')+"'");
// var str="test alerte :";
// str += sAlert.LS_NoSerie ;
// MC_return+="alert('"+str+"');";
MC_AUTO_affectvalues("logi_numfacture", sAlert.LS_NoSerie)
I guess I have to try with "MC_AUTO_onchange" but it doesn't work =>
MC_AUTO_onchange('logi_description',"affectvalues("logi_numfacture", sAlert.LS_NoSerie);",false) or
MC_AUTO_onchange('logi_description',"MC_AUTO_affectvalues("logi_numfacture", sAlert.LS_NoSerie);",false)