When AX generates forms and grids, all the lookups are populated properly, but the ID of the lookup item is displayed in the form. The only way to see values that make sense is to click on the field–not really ideal. Is there a way to display the lookup value in the form instead of the id number behind it?
I would like the “tableB” form to display the tableA_value instead of the tableA_id.
tableA
- tableA_id (int – unique)
- tableA_value (string – non-unique)
tableB
- tableB_id (int – unique)
- tableA_id (int – relation to tableA)
- tableB_datafields (misc)
Thanks
Couldn’t find a way to change the value of the lookup itself, so I put a static field next to it that updates any time the lookup is changed. Here’s how I ended up doing it:
Display Method on Table A:
Find Method on Table B:
}
Added both table A and B as datasources for the form.
Added a string field to the form.
Set table A as the DataSource for the field and lookupName as the DataMethod.
Added a modified method to the lookup field to cause the static field to update:
Hope this helps someone.