Monday, March 26, 2012

Grid search filter

When you have focus on a form grid, you can press Ctrl-G to get a seach filter
like this one:



If you want to have this as default in a form, you will only need 2 code lines in the run method on that form and switch the autodeclaration on for the grid that need this:


Here is a code example (if there is no run method in your form, just create one):

#SysTaskRecorderMacro
public void run()
{
    super();

    // <- Turn the autofilter on in the grid
    grid.enter();
    this.task(#sysTaskRecorderTaskFilterByGrid); // Macro = 2855
    // Autofilter on ->
}





No comments:

Post a Comment