Non-Serialized data in Custom Visualizations is lost when switching between pages

Non-Serialized data in Custom Visualizations is lost when switching between pages

book

Article ID: KB0076604

calendar_today

Updated On:

Products Versions
Spotfire Analyst 7.5 and Higher

Description

Starting with TIBCO Spotfire 7.5,  Spotfire is disposing pages that are not active to save memory and are generated as needed. Each time you change from "Page A" to "Page B" , Dispose() is called. When you switch back to "Page A", Initialize() is called and because of this disposing, any data that is not serialized is lost. 

Issue/Introduction

This article explains why non-serialized data of a custom visualization is lost when switching between pages

Resolution

To avoid this issue, you should serialize your data or use Preference Objects to save the data.

Additional Information

Doc: PreferenceObject<T> Class