Hi all,
I have a question about change the form design by code.
I have table A and B and corresponding form A and B. The requirement is when I add a record in table A,
(1)table B will add a related column (not a record) automatically
(2) a new related field/column will add in the design of form B by programingly.
Form A
Column1 Column2
1 A
2 B
3 C <-- Newly add record
After the record added, I want
Table B
A B C <--Add column C automatically
... ... ...
.... ... ...
Form B
A B C <-- Add this column in design automatically
... ... ...
... ... ...
The first problem has been solved.
I override the insert() method in table A so that when it add a new record, the method will trigger and AOT will add the column in table B. Refer to http://dynamicsuser.net/ax/f/11/t/37822;
But the second one seems too hard for me. Anyone has an idea? Thank you very much!