T
|
tetter author 3/13/2017 |
Event "List page: Before SQL query" is obsolete. Use AfterTableInit: |
Pete K 3/14/2017 | |
This is a good thing. I kept putting code in there and it was not working as expected. One drawback to the new way is that code placed in AfterTableInit() gets applied to all pages based on that table, whereas with BeforeQueryList() you could apply code to a specific page. One example of this was in a case where I wanted to apply a dynamic filter at run time on a list page but not have it restrict the view record pages. My solution was to place the code in the AfterTableInit() but have it test for the presence of "list" in the URL: // FILTER FOR LIST PAGE ONLY |