No items found.

Refreshing data source on the calling form in AX 2012

It is just calling the task which stands behind pressing F5 button on the form. There is a macro definition #taskF5 in macro library #Task. This could be done like in example below:

protected void refreshDataSource(Args _args)

{

FormDataSource dataSource;

#Task

if (_args && _args.dataset() && _args.record().isFormDataSource())

{

dataSource = _args.record().dataSource();

if (dataSource.formRun())

{

dataSource.formRun().task(#taskF5);

}

}

}

The example given above is applicable only if there is a single root data source on the refreshed form.

‍

See more

AGA pomaga – poznaj inteligentnego asystenta do przetwarzania zapytań ofertowych: ANEGIS Generative Assistant

Read article
Text Link

Jak z pomocą narzędzi Power Platform, Microsoft Fabric i AI zrealizować plan na cyfrową transformację? ANEGIS Power Center

Read article
Text Link

Obowiązkowy KSeF startuje za 4 miesiące! Umów się na bezpłatne konsultacje i przygotuj swój system na zmiany

Read article
Text Link
Back to all

Looking for a Microsoft partner? Let's talk about your project

Work with a team that has delivered implementations and projects for dozens of companies. Schedule an introductory call and see:

How to tailor Dynamics 365 to your company's processes, rather than the other way around

Which areas are worth automating to save time and reduce costs

Here is the step-by-step implementation process with Anegis: from analysis to post-launch support

Select a meeting time
Dziękujemy za wiadomość!
Oops! Something went wrong while submitting the form.
Microsoft AI Builder
Microsoft Copilot Studio
No items found.
No items found.
No items found.