How to enable F5 (Refresh) on a form

  • How to enable F5 (Refresh) on a form

    Posted by DSC Communities on August 22, 2018 at 10:22 am
    • Rudy Salcedo

      Member

      August 22, 2018 at 10:22 AM

      ?We have a customized form that was developed by a previous contractor.Ā  The form displays SO and related WO data in a grid.Ā  When the user hits F5 to refresh the form data, the form locks up and the user has to kill their AX client sessions via Task Manager.Ā 

      Our assumption is that the contractor did not enable the F5/Refresh key on the form.Ā  How can this be enabled?

      ——————————
      Rudy Salcedo
      Senior Programmer/Analyst
      LaForce, Inc
      Green Bay WI
      ——————————
      ?

    • Chaitanya Golla

      Member

      August 22, 2018 at 10:42 AM

      Hi,

      As its a customized form, I feel there might be some code that is unable to pull data from the table onto the form i.e missing/invalid ranges and so on causing this application crash. Try to build the model and please check the event viewer(by clicking on refresh button) to see if any information is logged.

      ——————————
      Regards,
      Chaitanya Golla
      Lead Architect
      ——————————
      ——————————————-

    • Tony Zeigler

      Member

      August 23, 2018 at 1:55 AM

      ?Based on your description, it’s much more likely the action either causes an infinite loop in their code, or a massive db operation that takes forever. Simply disabling the F5 key would not result in a hung.

      ——————————
      Tony Zeigler
      Senior Consultant
      Strategic Solutions NW, LLC
      Beaverton OR
      ——————————
      ——————————————-

    • Chaitanya Golla

      Member

      August 23, 2018 at 1:30 PM

      Hi,

      Yes, might be. Is it only the refresh operation causing this freeze and are you able to do other operations on the form. You can take help of a developer to resolve this issue.

      ——————————
      Regards,
      Chaitanya Golla
      Lead Architect
      ——————————
      ——————————————-

    • Rudy Salcedo

      Member

      August 24, 2018 at 10:00 AM

      ?Chaitanya and Tony, thanks for the replies.Ā  I couldn’t find anything in the Event Viewer logs while I was trying to duplicate the issue.Ā  As the users described, the form was frozen, and I couldn’t do anything in any of the other AX forms that were open. Ā However, instead of killing my AX client sessions via Task Manager, I decided to just let it continue to process.

      After about 10 minutes, the form ended up displaying ALL the data for every SO and related WOs, and was not taking into account any filters that I had previously specified.Ā  So in reality, the form really was doing a massive db operation that takes a long time to complete, and was not hung.Ā 

      I looked at the form’s task() method and discovered code for task Id 2876 (F5) that apparently wasn’t working properly.Ā  Our users actually want the F5 key to do something else, so I commented out the non-working code and replaced it with different code per the users’ request.Ā  The F5 key now works the way that the users want it to and displays the requested info within 1 second.

      Thanks for your help!

      ——————————
      Rudy Salcedo
      Senior Programmer/Analyst
      LaForce, Inc
      Green Bay WI
      ——————————
      ——————————————-

    DSC Communities replied 7 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘How to enable F5 (Refresh) on a form’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!