Sourav Kumar
Sourav Kumar

Reputation: 21

Saving data to different tables from a single form in Dynamics AX

How can we allow a Dynamics AX form to allow saving data on the grid to two independent tables: enter image description here

enter image description here

When I click on +New it always adds the row to the first grid. We are looking for a way to add row independently for each grid on this form.

Upvotes: 0

Views: 961

Answers (1)

Alex Kwitny
Alex Kwitny

Reputation: 11544

Your +New button is most likely a command button and has a single associated DataSource or inherited DataSource. So when you click +New, it can only do the single one.

See: https://learn.microsoft.com/en-us/dynamicsax-2012/developer/action-pane-button-overview

So you need to write some code or add a second Command Button with a different DataSource if you want the button to do two new records at the same time.

Upvotes: 1

Related Questions