Specify Examples view analyses

You can use the value for the key PopulateExamplesFromURL in the configuration file MyConfiguration.plist to specify a URL to connect to and then download a list of analyses to populate the Examples view when the app starts.

The list of analyses that you use to populate the Examples view when the app starts is provided by a service. You must implement the service, which delivers a JSON array of key-value pairs, similarly to the following example format.

[
{"Description":"Arkoma Well Analysis",
"ServerUrl":"http:\/\/spotfire-ondemand.tibco.com\/spotfire",
"ThumbnailUrl":"http:\/\/spotfire-ondemand.tibco.com\/spotfire\/GetPreviewImage.ashx?analysisId=ffa2c946-23e5-47b7-870f-0b39f122ecc4",
"Title":"ArkomaWellAnalysis",
"Url":"http:\/\/spotfire-ondemand.tibco.com\/spotfire\/ViewAnalysis.aspx?file=\/Production\/Examples\/ArkomaWellAnalysis"
}
…
]

The app connects to the specified URL that provides this JSON array using the user's credentials. The app prompts for the provided credentials when requesting this content, and then supplies the credentials to the server. This design allows content to be generated based on user identity, if necessary.

Related reference