Alguém sabe como passar os campos pai x filho nos campos de destaque do Approval?
Pai x Filho:
<div class="col-md-12">
<div class="form-field table-responsive" data-type="tabledetail" data-show-properties="" data-field-name="tabledetail">
<table class="table" cellspacing="0" tablename="ingre" noaddbutton=true>
<thead>
<tr class="tableHeadRow">
<th class="tableColumn">Descrição</th>
<th class="tableColumn">Unidade</th>
</tr>
</thead>
<tbody>
<tr>
<td class="col-md-6 col-sm-5">
<div class="form-group">
<input type="text" name="nomeativ" class="form-control" maxlength="200" />
<input type="hidden" name="hdd_nomeativ">
</div>
</td>
<td class="col-md-2 col-sm-3">
<div class="form-group fs-cursor-pointer" id="dtprazoativ">
<div class="input-group date">
<input type="text" class="form-control uppercase" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');" name="InputQT" id="InputQT" maxlength="999"/>
<input type="hidden" name="hdd_InputQT">
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="form-group">
<button type="button" class="btn btn-default" name="inputAdicionar" id="inputAdicionar" onclick="wdkAddChild('ingre')">Adicionar</button>
</div>
</div>
Evento
function afterTaskSave(colleagueId, nextSequenceId, userList) {
var indexes = hAPI.getChildrenIndexes("ingre");
for (var i = 0; i < indexes.length; i++) {
var nomeativ = hAPI.getCardValue("nomeativ___" + indexes[i]);
var InputQT = hAPI.getCardValue("InputQT___" + indexes[i]);
hAPI.setCardValue("hdd_nomeativ", nomeativ)
hAPI.setCardValue("hdd_InputQT", InputQT)
}
}