Add to picklist dynamically in a subform
I have a form with a subform
The subform has a dropdown field wich is dinamically populated accordingly to a value inputed at a form field
I have this code triggered on add row event:
ListProd = F_Produtos [Fabrica_Produtos = input.Fabrica_Encomenda];
row.Produto_ItEncomenda:ui.add(ListProd.ID.getall());
It works great when i add a row, but if i want to update a row, the script obviously won't run and the picklist shows all the values, not only the ones needed.
I guess an "on focus" event would work, but there is no such thing at deluge...
Any ideas?