0

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.

Sourav Kumar
  • 11
  • 1
  • 3
  • Is it about saving data to different tables or about creating rows in both grids simultaneoursly using the `New` button? Creating and saving records are two different actions, can you clarify what you are trying to achieve step by step? – 10p Jul 09 '20 at 15:13

1 Answers1

1

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.

Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71