cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

DateTime Property in ThingTemplate

AP_9587236
17-Peridot

DateTime Property in ThingTemplate

We was using 10 datetime remote properties in Thing from Thingtemplate in all services. Hereafter those properties wont receive data from device. So we planned to pass new Date() time in all services. Is there any option to set current time in all those properties directly instead of editing all services. ??

1 ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:AP_9587236)

You can set them in composer or write a service to fill them in? You can edit the ThingTemplate as well and provide a default value for each of those properties.

View solution in original post

2 REPLIES 2
PaiChung
22-Sapphire I
(To:AP_9587236)

You can set them in composer or write a service to fill them in? You can edit the ThingTemplate as well and provide a default value for each of those properties.

Every time when the services invoking those properties, it should fetch the current time. If iam editing the ThingTemplate to provide a default value for each of those properties, the default value which saved only will pass to services everytime. That value becomes a past value in one minute right.

Top Tags