RE: Find by timestamp field
Hi,
Like Daniel says be careful with this field / leave it alone. There is one way you can possibly use it, but you must add the field to the table first as described here docs.microsoft.com/.../how-to--use-a-timestamp-field.
Add a new field to table 17:
Enabled Field No. Field Name Data Type
Yes 55000 Rec Timestamp BigInteger
And set property "SQL Timestamp" = Yes.
Now this field will be automatically populated with the TimeStamp field. As far as I know you can use it for example to syncronize data, so you can filter out any new entries since last time you did something. Example:
OnRun()
MESSAGE(FORMAT(GLEntry.COUNT));
LastTimeStamp := 263286;
GLEntry.SETFILTER("Rec Timestamp",'>%1',LastTimeStamp);
MESSAGE(FORMAT(GLEntry.COUNT));
IF GLEntry.FINDSET THEN REPEAT
// Process my new entries
UNTIL GLEntry.NEXT = 0;
LastTimeStamp := GLEntry."Rec Timestamp";
// save LastTimeStamp somwhere for next time I run my code.
(LastTimeStamp = BigInteger)
I have not tried this in .al so I don't know if the time stamp field can be added as a field extension, but I hope this gives some ideas how to use it,