Specify Examples view analyses
You can use the value for the key PopulateExamplesFromURL in Examples view when the app starts.
to specify a URL to connect to and then download a list of analyses to populate theThe 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.example.com\/spotfire",
"ThumbnailUrl":"http:\/\/spotfire-ondemand.example.com\/spotfire\/GetPreviewImage.ashx?analysisId=ffa2c946-23e5-47b7-870f-0b39f122ecc4",
"Title":"ArkomaWellAnalysis",
"Url":"http:\/\/spotfire-ondemand.example.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.
- See JSON Example Keys for descriptions of required or optional entries in the JSON array.
- See JSON Security Considerations for more information about using JSON.
- JSON example keys
If you use JSON to populate the app Examples view from a URL, you need to know the optional and required keys used by JSON. - JSON security considerations
Because files are not encrypted when they are added to your distributed app package, you should take security precautions.
Parent topic: Customize app behavior
Related tasks
Related reference