Roger Blanchard
413 posts
Registered:
29 Jun 2018
03 Dec 2018
in reply to
Mike Fechner
Link to this post
Okay, this works for my ItemAdapter where the dataset is limited to the unique record.
This ItemAdapter is also the LinkDataSource for another adapter (HistoryTotsAdapter) that uses ForeignFields = "ItemNum,ItemNum,PackNum,PackNum" as well as well as QueryString = HistoryTots.Period = "M" AND. This HistoryTotsAdapter is the LinkDataSource for a SmartDataBrowse. If I use the QueryString on the ItemAdapter I see no records in the SDB. However, in reviewing the appserver logs the client query, default query and prepare query seem identical.
This is without using the QueryString on the ItemAdapter
[18/12/03@10:55:14.072-0500] P-017108 T-000740 1 AS-4 DataAccess Last-Batch for Table eItem: no
[18/12/03@10:55:16.699-0500] P-017108 T-000740 1 AS-4 DataAccess Client-Query: HistoryTots.Period = "M" AND WHERE eHistoryTots.ItemNum = " 6" AND eHistoryTots.PackNum = "1"
[18/12/03@10:55:16.699-0500] P-017108 T-000740 1 AS-4 DataAccess Default-Query: FOR EACH HistoryTots INDEXED-REPOSITION
[18/12/03@10:55:16.702-0500] P-017108 T-000740 1 AS-4 DataAccess Prepare-Query: FOR EACH HistoryTots WHERE HistoryTots.Period = "M" AND HistoryTots.ItemNum = " 6" AND HistoryTots.PackNum = "1" INDEXED-REPOSITION
[18/12/03@10:55:16.702-0500] P-017108 T-000740 1 AS-4 DataAccess Index Information on Buffer HistoryTots: pItemDate
[18/12/03@10:55:16.702-0500] P-017108 T-000740 1 AS-4 DataAccess Restart-Rowid for Table eHistoryTots: ?
[18/12/03@10:55:16.702-0500] P-017108 T-000740 1 AS-4 DataAccess Next-Rowid for Table eHistoryTots: ?
[18/12/03@10:55:16.702-0500] P-017108 T-000740 1 AS-4 DataAccess Last-Batch for Table eHistoryTots: yes
This is with using the QueryString on the ItemAdapter
[18/12/03@10:55:45.037-0500] P-017108 T-000740 1 AS-4 DataAccess Last-Batch for Table eItem: yes
[18/12/03@10:55:45.182-0500] P-017108 T-000740 1 AS-4 DataAccess Client-Query: HistoryTots.Period = "M" AND WHERE eHistoryTots.ItemNum = " 6" AND eHistoryTots.PackNum = "1"
[18/12/03@10:55:45.182-0500] P-017108 T-000740 1 AS-4 DataAccess Default-Query: FOR EACH HistoryTots INDEXED-REPOSITION
[18/12/03@10:55:45.185-0500] P-017108 T-000740 1 AS-4 DataAccess Prepare-Query: FOR EACH HistoryTots WHERE HistoryTots.Period = "M" AND HistoryTots.ItemNum = " 6" AND HistoryTots.PackNum = "1" INDEXED-REPOSITION
[18/12/03@10:55:45.185-0500] P-017108 T-000740 1 AS-4 DataAccess Index Information on Buffer HistoryTots: pItemDate
[18/12/03@10:55:45.185-0500] P-017108 T-000740 1 AS-4 DataAccess Restart-Rowid for Table eHistoryTots: ?
[18/12/03@10:55:45.185-0500] P-017108 T-000740 1 AS-4 DataAccess Next-Rowid for Table eHistoryTots: ?
[18/12/03@10:55:45.185-0500] P-017108 T-000740 1 AS-4 DataAccess Last-Batch for Table eHistoryTots: yes