Here is a screenshot of this object id and the related procedure in which I should retrieve the value of det_type_id object. And the result in nuDebug I don't see a solution

Many thx,
Yves
Code: Select all
nuRunPHPHidden('Montant');
Code: Select all
$s = "SELECT aty_montant FROM activity WHERE aty_code = ?";
$t = nuRunQuery($s, array('#act_activities#'));
if (db_num_rows($t) == 1) {
$r = db_fetch_object($t);
$js= "nuSetValue('act_montant', $r->aty_montant);";
nuJavaScriptCallback($js);
}
Code: Select all
nuSetProperty('det_type_id', this.value);
nuRunPHPHidden('RecupMontant', 0);
Code: Select all
nuSetProperty('det_type_id', this.value);
nuSetProperty('det_montant', nuGetValue('det_montant'));
nuRunPHPHidden('RecupMontant', 0);
Code: Select all
$s = "SELECT type.typ_montant FROM type where type.typ_code = '#det_type_id#'";
$t = nuRunQuery($s, array('#det_type_id#'));
if (db_num_rows($t) == 1) {
$r = db_fetch_object($t);
$js="nuSetProperty('det_montant',$r->typ_montant);";
nuJavaScriptCallback($js);
}
Code: Select all
const montantId = nuSubformRowObject(this.id, 'det_montant').attr('id');
nuSetProperty('montantId', montantId);
Code: Select all
$js= "nuSetValue('#montantId#', $r->aty_montant);";