Bruce,
In the PWA I'm experimenting with, I have a few deleted records in the local store (IndexedDB) and in the tps table on the server. I want to leave these in the respective tables, but filter them out in the PWA app. I assume I'll need a client side filter in JavaScript to accomplish this. I tried adding both a JavaScript and Clarion filter to the filter tab of the browse, without success. In looking at the details of the local store fields, I see the DeletedTimeStamp is listed as dts. So, I tried a JavaScript filter of: dts > 0;
This did not work. Can you provide an example that might work?
I then looked at the generated code of the browse, and saw two items: p_web.RemoveDeletedRecords and loc:RemoveDeletedRecords. I did not see any reference to these in the docs but it seems these might be variables I could use to "filter" the browse and not display the records marked for deletion. Can you offer an example of how to use either of these?
By the way, I noticed the following in the code:
If p_web.RemoveDeletedRecords
If loc:FilterWas
loc:FilterWas = '(' & clip(loc:FilterWas) & ') AND CC:DeletedTimeStamp = 0'
Else
loc:FilterWas = 'CC:DeletedTimeStamp = 0'
end
End
It seems to me the filter should contain 'CC:DeletedTimeStamp > 0', in order to filter out those deleted records with a deleted time stamp greater than 0. Is this an error?
Thanks,
Jeff