web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How the #TaskF5 differs from reread, refresh, and research main form datasource?

(0) ShareShare
ReportReport
Posted on by

For some troubleshothing reasons I would like to know the diffference between

public int task(int _taskId)
{
int ret;

ret = super(_taskId);

return ret;
}

and 

public int task(int _taskId)
{
#Task
int ret;

if(_taskId == #TaskF5)//
{

formMainDatasource_DS.research();
formMainDatasource_DS.reread();
formMainDatasource_DS.refresh();
ret = 1;

}
else
{
ret = super(_taskId);
}


return ret;
}



For the first sight it looks like it works same. (But on some our forms element.task(#TaskF5) is causing troubles in super(_taskId) )

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    P.S.: I know kashperuk.blogspot.cz/.../tutorial-reread-refresh-research.html so I have some idea about executeQuery(), researrch(), etc.

    I would like to know what are all the things that task(#TaskF5) does.

  • Johnny Profile Picture
    6,478 on at

    I think element.task(#TaskF5) is same as mainDS.executeQuery();

  • Community Member Profile Picture
    on at

    Actually I am almost sure they are not same. For example executeQuery() deletes filters created by user but [tag:TaskF5] does not.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans