I need to set a filter on the Time field of the virtual File Table.
The filter should show only the Files with a Time < now-5Minutes (e.g. older then 5 Minutes)
I tried so many ways to convert currentdaytime back and forth and nothing worked.
Most likely it's a simple task but right now im a little bit helpless.
Thank you in advance
Stef
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
My problem ist to determine what is a new file. Wether in the filter or later in the Repeat Until Loop. I have difficulties to compare the timestamp with a value of Time-5Minutes.
Could you help me with this? I just never programmed something with Time up until now. I Know how to calculate with date and dateformula but not with time.
The second process could create the files in different folder and move only finished files into the target folder for processing...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The Files are created line by line and are not locked in the time between (2-5 Seconds inbetween each line). I can not influence this behaviour. I just have to wait a certain amount of time after the creation time. that's all i want. After i processed the files in Nav i move them to a different folder but that wont help me in the beginning. so i ask again
How do I calculate a Time minus 5 five minutes? What variable type do I need to compare this to the timestamp value of the File Rec.
You can simply subtract milliseconds from a time.
Regards,
Object Manager
Thats it! Works perfect! so simple.. working with integer ... and I tried with variables with datetime and back and forth... ](*,)