- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- Andrew Berridge Michael Phillips
- 498字
- 2021-06-24 15:04:32
Spotfire document properties
Document properties are key to the use of user inputs and other controls. As we'll see shortly, you can create new document properties in the course of creating controls, but you can also access all document properties directly, creating new ones and editing existing ones through the main document properties dialog.
A document property is "global" to the Spotfire document. In Spotfire nomenclature, the document is the currently open analysis file. A document property can be thought of as a value that is stored in the document. It can be used to control or configure various aspects of the analysis.
You'll find document properties under the File menu options. Select Document Properties and then the Properties tab:

Don't worry about the Script... button for now. Scripting is covered in Chapter 11, Scripting, Advanced Analytics, and Extensions. Stick to the New... and Edit... buttons for now. When creating a new property, you need to enter the following details:
- Property name: You must give the property a unique name with no spaces. You cannot change this once the property has been created, but you can delete the property and start again.
- Data type: You must choose a data type from the drop-down list. You cannot change this once the property has been created.
- Description: This is optional and only required for information purposes. You can change it later.
- Value: This is optional for strings, but you'll need to enter some initial value for numbers, dates/times and Booleans. The value of a document property can be changed as often as you like after it has been created.
Once a document property exists, you can use it as the basis for a property control or reference it directly in a custom expression. A dollar sign and braces are used when referencing a document property, for example, ${ExampleDocumentProperty}. This is very useful functionality, as we are about to see.
There are also a couple of predefined document properties. They are called MaxMissingTimeParts and FiscalYearOffset.
MaxMissingTimeParts allows you to specify the maximum number of missing time parts that should be allowed to be replaced using the Compensate for missing values setting, which is available on the Appearance property page of some visualizations.
FiscalYearOffset specifies the number of months from the start of the calendar year to the start of the fiscal year. For instance, a value of -1 specifies that the fiscal year starts in December of the previous calendar year, whereas a value of 2 specifies that it starts in March of the current calendar year.
- 大數據項目管理:從規劃到實現
- Hands-On Data Science with SQL Server 2017
- 模型制作
- Hands-On Linux for Architects
- 可編程控制器技術應用(西門子S7系列)
- JBoss ESB Beginner’s Guide
- 21天學通Visual Basic
- Containers in OpenStack
- Excel 2007常見技法與行業應用實例精講
- 中國戰略性新興產業研究與發展·增材制造
- LMMS:A Complete Guide to Dance Music Production Beginner's Guide
- Linux Shell編程從初學到精通
- 設計模式
- Data Analysis with R(Second Edition)
- 樂高創意機器人教程(中級 上冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)