Hello everybody
We added GP customization add in using Visual Studio Tools for Microsoft Dynamics GP (VST) to the Bank Deposits window for providing the user with the ability to filter by Credit Card type, so our custom code allows the user to populate a text box, so when the user clicks the button Redisplay only the matching records are displayed in the scrolling window.
This "hiding" is done in the scrolling window event handler for event LineFillBeforeOriginal by cancelling the event whenever the required criteria is not met:
if (Microsoft.Dexterity.Applications.DynamicsModified.Forms.CmDepositEntry.Tables.CmReceipt.CardName.Value != cardName)
e.Cancel = true;
That "hiding" is working fine since the user is only seeing what is valid according to the filter, however there is an issue related to the Mark All/Unmark All functionality, it marks/unmarks everything even if is not visible in the grid.
So for instance:
1. user opens the Bank Deposits window, enters the checkbook id and verifies no transactions are marked
2. Select Credit Card and then AX.(one of the available credit cards)
3. Click Redisplay and 3 AX deposits are displayed - our custom "hiding" is working here -
4. Select "Mark All"
5. Select Credit Card again but VS this time (another available credit card)
6. Click Redisplay and the VS records also got marked, they shouldn't be marked in step 4, only the 3 AX that were previously displayed in the scrolling window
So we need a way for the Mark/Unmark all to only check the ones that are displayed in the scrolling window, i.e. the ones that pass our filter criteria.
Is it possible to do it using VST?