AnsweredAssumed Answered

Displaying values in the Trend view for custom data reference

Question asked by oysteintorget on Sep 14, 2017
Latest reply on Sep 14, 2017 by oysteintorget

I am creating a custom data reference to get data from a different timeseries database into AF.


I have implemented a class that inherits from AFDataReference and have overrides for GetValue and GetValues and created an attribute that use the custom data reference.


Everything works as expected when looking at the current value, but when opening the Trend tool I only get one call to GetValue with the time context set to 01.01.1970.


What do I have to do to get it to work with the Trend tool as well. I expected that GetValues would get called.


I have also added this


        public override AFDataReferenceMethod SupportedMethods
            get { return (AFDataReferenceMethod.GetValue | AFDataReferenceMethod.GetValues); }