Hi @Niklas_Kiefer, thank you for your reply.
I don’t know how to implement update, add or getElements function. didn’t find any example how to do it, and for all the others types of input elements it wasn’t necessary.
For example, to impement an input and select element, just used:
groups: [
{
id: 'tipo_prazo',
label: this.translate('Tipo Prazo'),
entries: [
EntryFactory.selectBox({
id: 'id_tipo_prazo',
label: this.translate('Tipo Prazo'),
modelProperty: 'id_tipo_prazo',
emptyParameter: false,
selectOptions: [{
value: '1',
name: 'Sem Validade'
},
{
value: '2',
name: 'Data Processo'
},
{
value: '3',
name: 'Data Tarefa'
},
{
value: '4',
name: 'Data Informada'
}],
}),
EntryFactory.textField({
id: 'campo_prazo',
label: this.translate('Referencia Prazo'),
modelProperty: 'campo_prazo',
description: 'Informa o Campo que será usado como referencia, com base na escolha do campo anterior'
}),
EntryFactory.textField({
id: 'nr_prazo_limite',
label: this.translate('Prazo (horas)'),
modelProperty: 'nr_prazo_limite',
}),
]
}]
and it works perfectly.
That’s why I don’t get it.
Here it’s my code now:
constructor(
private translate,
private bpmnPropertiesProvider) {
}
myLista: any[] = [
{
campo: 'campo',
valor: 'valor'
}
];
regraFlow = {
id: 'regra',
label: this.translate('Regras'),
groups: [
{
id: 'regra',
label: this.translate('Regra'),
entries: [
EntryFactory.textBox({
id: 'desc_regra',
label: this.translate('Regra'),
modelProperty: 'desc_regra'
}),
EntryFactory.table({
id: 'campos_db',
description: 'teste',
modelProperties: ['campo', 'valor'],
labels: [this.translate('Campo'), this.translate('Valor')],
getElements: this.getListaCampos,
updateElement: this.updateElement,
removeElement: this.removeElement,
addElement: this.addElement,
editable: this.editable,
setControlValue: this.setControlValue,
show: true,
})
]
},
]
};
updateElement() {}
removeElement() {}
addElement() { return true; }
editable() { return true; }
setControlValue() {}
getListaCampos() {}
and here it’s what happens when I click on ADD button:
Thanks again for your time.
Jefferson