Welcome, Guest
Username: Password: Remember me

TOPIC: Set Report Database to specific date

Set Report Database to specific date 1 year 5 months ago #3285

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 1044
  • Thank you received: 138
  • Karma: -102
Hello,

begin and end properties of the object are minutes from current time. You have to setup this properly. For tables and trends you can use properties begindatetime and enddatetime. These times are represented in milliseconds from 1 January 1970.

Best regards,
Ruslan
The administrator has disabled public write access.

Set Report Database to specific date 1 year 5 months ago #3286

  • Anna
  • Anna's Avatar
  • Offline
  • Senior Member
  • Posts: 44
  • Karma: 0
Good morning,
I tried modifying the code as you see in the image, but unfortunately if I click to save the report it does not set the saved date values.



I also have a further question, when I delete the Database I have to hit the stop button and restart the software to see that it has actually deleted, is this normal?
Thank you Ruslan.

Best Regards
The administrator has disabled public write access.

Set Report Database to specific date 1 year 5 months ago #3287

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 1044
  • Thank you received: 138
  • Karma: -102
Good morning,

Your variable data is string type. Properties begindatetime got time in milliseconds. You have to use function currentdatetimeinmil() to get the date and time in milliseconds.
Your object FAN doesn't support begindatetime and enddatetime properties (it's not colored). If you want to use FAN object you have to use begin and end properties (it contains minutes from current date time).

How do you delete database?

Best regards,
Ruslan
The administrator has disabled public write access.
The following user(s) said Thank You: Anna

Set Report Database to specific date 1 year 5 months ago #3293

  • Anna
  • Anna's Avatar
  • Offline
  • Senior Member
  • Posts: 44
  • Karma: 0
Dear Ruslan,
thank you very much, I solved it.

Best Regards
The administrator has disabled public write access.
Go to top