Populate a Related field
I need to populate a related selection field (consignee) based on the value previous selected in other selection field (entity). The consignee selection field will have various values available depending on the entity field, but must have "pre-selected" the same value than entity, but available for change if needed.
How can I do that? I tried code in the entity after update trigger but nothing happens. Can someone help me?
5 replies
-
Hi Rodrigo
Can you post your code so we can see what you are doing?
-
Here is my code:
Consignee := select ENTIDADES where Entidad = Empresa.Entidad;
where "Consignee" is a selection field, "Entidades" is the table name where both fields are referenced to, "Entidad" is one field in the table and "Empresa.Entidad" is the name of the selection field control that is already changed and the one who has the code on the trigger after update.
-
When you say "selection field" do you mean a choice/multi field? or dynamic choice/multi field? Or a reference field?
-
They are choice fields.
Content aside
- 2 yrs agoLast active
- 5Replies
- 42Views
-
3
Following