axapta - Disabling F5 key on ListPage AX 2012 -


i want disable f5 refresh on specific listpage, disabled refresh action key f5 still works. can't overide task method on syssetupformrun because it's listpage. way this?

the reason want because refreshproblems when having multiple datasources , want disable customer until microsoft comes solution (issue logged).

edit: fix intercepted task method on syssetupformrun class, method triggers when have selected record in listpage. when first open listpage , press f5 refresh , doesn't go in task method.

i know mentioned had no success overwriting task of syssetupformrun, code below worked me in our test system.

i inserted code method task of class syssetupformrun disable f5 salestablelistpage:

public int task(int _p1) {     #task     formdatasource formdatasource;      int ret;      if (_p1 == #taskfilter)     {         formdatasource = this.objectset();         if (formdatasource &&             formdatasource.queryrun() &&             formdatasource.queryrun().args() &&             !formdatasource.queryrun().args().caller())         {             formdatasource.queryrun().args().caller(this);         }     }      // -- here interesting stuff     if ((_p1 == #taskf5 || _p1 == #taskrefresh) &&          (this.name() == formstr(salestablelistpage)))     {         return ret;     }     return super(_p1); } 

if approach same 1 tried, can ignore answer - otherwise feel free try out ;)


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -