I creart one form with many tabs. In one tab i create one combo box with many text boxes. if i select any of the value in the combo, that related details should be display in other text boxes. all the fields details contain in one table only include combo box. so no need join query. how to do this in ax 2009.
i need to write code in form, data source or table?? how to achieve this?
Actually that field is EDT and data type is string. Because of EDT relation(which i mentioned), it dispalyed as a combo and also value display from table only.
so i wont mentioned (combo.valueStr() == “Text”) in modified method. it related to table.
All right, so the type of field is string, not com box. And what you call combo box is called “lookup” in AX terminology, because it looks up data from another table. Nevertheless it’s irrelevant to your actual problem.
Now the question is what you mean by “should be display in other text boxes”. The easiest way it to bound the other controls to the same field. If they’re fields, do assignment, either in modifiedField() method (if they’re all in the same table and the logic isn’t form specific), or modified() method of the data source field. Access to fields in AX is done through the “dot notation”, e.g. myTableBuffer.MyField. If they’re unbound controls, use the text() method to assign values.
If you gave us enough information, I wouldn’t have to iterate all the options and could use the time the explain your particular case in more details.
For eg: i have lookup filed : Asset. if select any value, other details wil fetch in related text box. all the field data are in same table only. please look the screen shot below.
Sorry, am not tat much familiar in AX. just learning.