kouros91
Member
Hi.
I have 5 elements in a form
DEPSYND : a DBJ : DEPSYND is a fixed value for a user.
DEPRAD : a DBJ
TYPEETBPUPRRAD : a CCD depending of DEPRAD value
CODETE2TEDEPRAD : a CCD depending of TYPEETBPUPRRAD value
IDRAD : a CCD depending of CODETE2TEDEPRAD value.
All works perfectly , but when i want to set DEPRAD value with DEPSYND value with onload and onchange in JS for element DEPSYND :
There's so a issue with CCD elements. It seems that Items of CCD elements are not loaded like when i click on DEPRAD choice in form.
What must i do to reload items of CCD ?
Thank you
I have 5 elements in a form
DEPSYND : a DBJ : DEPSYND is a fixed value for a user.
DEPRAD : a DBJ
TYPEETBPUPRRAD : a CCD depending of DEPRAD value
CODETE2TEDEPRAD : a CCD depending of TYPEETBPUPRRAD value
IDRAD : a CCD depending of CODETE2TEDEPRAD value.
All works perfectly , but when i want to set DEPRAD value with DEPSYND value with onload and onchange in JS for element DEPSYND :
JavaScript:
var depsynd = this.form.formElements.get('table_adhcont2___DEPSYND').getValue();
var deprad = this.form.formElements.get('table_adhcont2___DEPRAD').getValue();
switch (deprad) {
case '':
deprad = depsynd;
this.form.formElements.get('table_adhcont2___DEPRAD').update(deprad);
break;
default:
break;
}
There's so a issue with CCD elements. It seems that Items of CCD elements are not loaded like when i click on DEPRAD choice in form.
What must i do to reload items of CCD ?
Thank you