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
{
#define.waitTime(10*60*1000)
}
Step 2: Create a new method at form level like following
void refreshForm()
{
this.setTimeOut(identifierstr(refreshForm), #waitTime, false);
DatasourceName_ds.research(true);
}
Step 3: In this step override run method on form level and your code look like following
public void run()
{
super();
this.refreshForm();
}
That's End.
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
{
#define.waitTime(10*60*1000)
}
Step 2: Create a new method at form level like following
void refreshForm()
{
this.setTimeOut(identifierstr(refreshForm), #waitTime, false);
DatasourceName_ds.research(true);
}
Step 3: In this step override run method on form level and your code look like following
public void run()
{
super();
this.refreshForm();
}
That's End.
Your blog is very useful, I am truly to this blog which is specially design about the dynamics ax.
ReplyDeleteGreat job.
Dynamics NAV Developer