Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Using a View in form and retaining position on F5

Posted on by 23

Hi everyone,

I noticed a strange behaviour in Ax. If I try to press F5 on a View (not a table) the system is not able to retain the cursor position and goes back to the first record.

You can try it by yourself simply by opening a view (I'm using EcoResProductTranslations) in table browser and pressing F5. I get back to the first record doing that, while if I try on a real table the position is not lost.

This happen also if in a form you join something with a view.

That's really annoying. You can try to overcome the problem doing a findRecord after the executeQuery, but this is really bad on performance (I don't think that doing that this way the query is paged correctly)

Do you know if there is a solution to this problem? 

Thank you

  • Crispin John Augustine Profile Picture
    Crispin John Augustine 37,081 on at
    RE: Using a View in form and retaining position on F5

    No need to worry about performance with findRecord(). Even if there is any impact, it will be negligible. You are (in addition to standard refresh) fetching a record just once more.

  • Crispin John Augustine Profile Picture
    Crispin John Augustine 37,081 on at
    RE: Using a View in form and retaining position on F5

    I did understand you correctly.

    By code, I meant, overriding the task method on the form, and for [tag:taskF5], instead of calling super(), you call DS.research(true), or findRecord().

  • Ludovico M. Profile Picture
    Ludovico M. 23 on at
    RE: Using a View in form and retaining position on F5

    Hi Crispin, thank you for your answer but I think you haven't understood correctly the question.

    I'm not calling anything by code, I'm just pressing F5 on a view. DS.research(true) will not work anyway.

    FindRecord maybe will, but it has major drawbacks on performance side.

  • Crispin John Augustine Profile Picture
    Crispin John Augustine 37,081 on at
    RE: AX 2012 - Using a View in form and retaining position on F5

    FindRecord is definitely a fitting workaround.

    Have you tried DS.research(true) btw?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans