27.06.2008, 11:05 | #1 |
Участник
|
axaptapedia: Filter-by-Grid
Источник: http://www.axaptapedia.com/Filter-by-Grid
============== Summary: The filter-by-grid feature is a commonly-used way of filtering records in a grid. == Turning on the filter-by-grid == * Click inside the grid (set focus on the grid). Press '''ctrl + g'''. You can press '''ctrl + up''' to move the cursor from the rows into the filter area. * Click the filter-by-grid button in the tool bar. == Turning on filter-by-grid by default on a specific form == Call the task method on the form element with the number 2855. You should place the following code in the '''run''' method. void run() { super(); this.task(2855); } == Turning on filter-by-grid by default on all forms == Place the following code inside of SysSetupFormRun.run(). this.task(2855); == Quirk == Any form that has the grid as the first input control will show the filter-by-grid and others will not. There are two workarounds: set all controls before the grid to Skip = Yes or override the '''firstField''' method on the form so that the grid is selected first. The overriden firstField method should set focus on the grid. It will not enable the filter-by-grid feature on all grids on the form. void firstField(int flags=1) { ; overviewGrid.setFocus(); } [[Category:Form development]] Источник: http://www.axaptapedia.com/Filter-by-Grid
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|