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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to use different data types in HistoricFieldValue function?

mkocur
1-Visitor

How to use different data types in HistoricFieldValue function?

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:

3.PNG

I hope you know what i mean in this context and would really appreciate any support

Thank you in advance

Martin

1 REPLY 1

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

Announcements


Top Tags