Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all articles
Browse latest Browse all 3432

How to use HistoricFieldValue in Javascript in a report?

$
0
0

Hello,

 

I want to get an item's content of a specified date by using HistoricFieldValue.

 

The general definition of HistoricFieldValue is as follows: HistoricFieldValue(field-name, timestampconstant)

 

In my js script I'm trying to use it in this manner:

 

<%compute%>HistoricFieldValue("Content","March 21, 2017")<%endcompute%>

 

Normally it should work , but I think the problem is the date. What is a timestampconstant?

This Error message pops up

1.PNG

When i change it to

 

<%compute%>HistoricFieldValue("Content","Modified Date")<%endcompute%>


(This usage is senseless actually, but I want to describe the problem more precisely )


This error message occurs:

2.PNG


I hope somebody could help me how to use this HistoricFieldValue Function

 

Best regards

Martin


Viewing all articles
Browse latest Browse all 3432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>