Updating in other datasource in AX.

Hi,
Consider Sales order form, where there multiple lines for a particular sales order. and there is a field called Total Line amount in the SO Header. To update the total line amounts of all the SO lines of that SO.
Just call the research(), refresh() functions of the SO header datasource in the sales lines datasource write method as.

salestable_ds.refresh();
salestable_ds.research();

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s