Thursday, 26 February 2015

Refresh Form Automatically After Specific Time Interval In AX2012

Hi Guys,

A requirement in which form automatically refresh after 10 minutes when client restrict without using of Batches functionality.I have achieved this requirement with following steps and share with all of you

All changes performed on Form level methods

Step 1: on class declaration level I have created a macro like this

public class FormRun extends ObjectRun

Step 2: Create a new method at form level like following

void refreshForm()
    this.setTimeOut(identifierstr(refreshForm), #waitTime, false);

Step 3: In this step override run method on form level and your code look like following

public void run()

That's End.