I created a QuickSearch to help our production staff find jobs for certain paint colors easier. We keep the paint color for a part in the Part.Condition field.
Part.Condition isn’t part of the default dataset in JobEntry, so I used @klincecum 's GetList hack to bring the field in. Added it to Grid Model > Columns. It shows the correct data on the landing page.
I added a custom paint icon on the Landing Page toolbar, and created the onClick event to load the QuickSearch when the icon is clicked.
This all works perfectly. The search returns the correct results. However when all of the results are selected in the search panel and I click OK to load them into the Landing Page grid, extra records are showing and I can’t figure out why.
In debug mode, I see the call to my custom search, execution of the BAQ, and the results (10 records). When all of the records are selected OK is clicked, there are TWO calls being made to GetList. The first one is filtering for the records I selected in the results and returns the correct dataset. Then ANOTHER GetList fires and returns all of the extra records I’m seeing in the grid.
I guess I don’t understand why GetList is being called twice. There must be a default or something that I’m missing. Any help is greatly appreciated.
Search Results
Search Results in Landing Page
GetList 1 & 2
onClick Event
search-show props
dataview-filter-set
dataview-copy