Polarbaer
(Polarbär)
December 30, 2023, 7:42pm
1
Hi folks,
I have a page that show some details of items. Now I will see a list with 4 oh-label-items with some more details in subtitle.
When I use following, return is every time “undefinded”.
=items.getItem(‘BM_FLO_01’).history.previousState(true, ‘jdbc’)?.timestamp
=items.BM_FLO_01.history.previousState(true, ‘jdbc’)?.timestamp
=items.BM_FLO_01.history.previousState.timestamp
Data was successfully stored in perstistance and can be accessed by script.
Why it doesn’t work in oh-label-item?
Ciao
Polarbär
splatch
(Łukasz Dywicki)
December 30, 2023, 9:17pm
2
AFAIR the .history
Is not accessible within UI. This is the syntax you use for rules, but not within mainui.
Polarbaer
(Polarbär)
December 30, 2023, 10:35pm
3
Thats not good for my planed solution.
Anyone can confirm last post?
rlkoshak
(Rich Koshak)
December 31, 2023, 7:31pm
4
Yes, @splatch is correct.
To achieve what you want, use a separate DateTime Item and link it to the same channel as the original Item and use the timestamp profile to record the date time of the last update our change.