lingdanglfw(DAX)

导航

Task

Automatically open grid filter when opening form

In some forms it may be convenient that the grid filter (new in Ax 4.0) is activated automatically. If you want to get that behaviour, just add one line in the form's run method, just after the super() call:

this.task(2855);

So, your run() method should look like:


public void run()


{


..... // some programming lines....
super();
this.task(2855);



}

 

 

if you want to disable FILTER form in a Customize form, you can override Form method :task

public int task(int _taskId)
{
    int ret;

    if(_taskId != 2837)//#define.taskFilter(2837)
    {
        ret = super(_taskId);
    }
    return ret;
}

 

 

 

 

 

posted on 2009-02-10 16:24  lingdanglfw  阅读(303)  评论(0编辑  收藏  举报