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)

Refresh Form retain position

(0) ShareShare
ReportReport
Posted on by

Hi,

I've developed a custom form but when refreshing form that is opened from a listpage It will select the first record. Its driving me crazy on how to maintain the current record position after refreshing.

*This post is locked for comments

I have the same question (0)
  • Mea_ Profile Picture
    60,284 on at

    Hi reignheart05,

    If you refreshing form from code using research() method than you can pass "true" as first parameter and it will retail position msdn.microsoft.com/.../aa597768(v=ax.50).aspx

  • Community Member Profile Picture
    on at

    Hi Ievgen,

    The thing is.. when i try table.research I cant seem to find the research method.

    name of form datasource is DRDHeader_ds but there is research method.

    Also I am using F5 to refresh.

  • Mea_ Profile Picture
    60,284 on at

    Can you please elaborate your question, what are actually doing, refreshing form from UI or doing it from code?

    If you have some code, maybe you want to share it ?

  • Community Member Profile Picture
    on at

    refreshing from UI(F5 or Refresh Button on form).

    Here's how it looks like there's no research method... and when refreshing form

    I am at record 18... it will go back to first record

    http://imgur.com/a/DzvBx

  • Mea_ Profile Picture
    60,284 on at

    I can see refresh method overridden on the data source, what code do you have there ?

  • Community Member Profile Picture
    on at

    No code at the moment.. i dont know what to put in there.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You could capture the current record before calling super() in executeQuery(), then after you could just do findRecord() to set the position to the previous value.

    forum.mibuso.com/.../how-to-set-cursor-to-a-predefined-record-within-grid

  • Community Member Profile Picture
    on at

    just a quick question on my form datasources.. when i try calling those datasource I don't see research method..

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Because probably you are trying to call it on your table. Add the _ds tag after your table name to refer to its' datasource.

  • Community Member Profile Picture
    on at

    As you can see here. No research method is available.

    http://imgur.com/a/DzvBx

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