Community Tip - You can change your system assigned username to something more personal in your community settings. X
Hey community
Does somebody know how to use a different data type in historicFieldValue?
<%compute%>HistoricFieldValue(ASIL,timestamp("Sep 30, 2016 03:00:00 PM"))<%endcompute%>
In Integrity the ASIL field can be changed by using a "select list" like in html. An item's "State" is also an select list. But it's possible to incorporate "State" in the historicFieldValue because the different states return integer numbers, respectively.
Is it possible to define the same functionality in Integrity for different field names with select lists? Or any further possibility to obtain a result for HistoricFieldValue of different data types?
Currently the error message is as follows:
I hope you know what i mean in this context and would really appreciate any support
Thank you in advance
Martin
Hello Martin,
do you have a field defined in Admin with computation "HistoricFieldValue"?
And you like to present the ASIL name instead of the number?
in this case I would expand the calculation as follows:
(HistoricFieldValue(...)==0?"QM": (HistoricFieldValue(...)==1?"A": (HistoricFieldValue(...)==2?"B": (HistoricFieldValue(...)==3?"C":"D").
Return type will be string.
Is this what you are looking for?
Volker