Jump to content

Set a property control value from a web URL


venkataramanan k

Recommended Posts

Dear All,

I am in the position to set a spotfire property control value from the web URL.

For example, have to set two property control value form the below url.

Input URL : https://xyz.com/dashbord?customerid=ABCD&year=FY2023

Output :

Property 1 : custormerid=ABCD

Property 2 : year= FY2023

Is this can be possible in spotfire? How to achieve this one. please provide the solution.

share your experience and input on this.

Link to comment
Share on other sites

Hello!

It sounds like you should use configuration blocks. You can read more about that here:

https://community.spotfire.com/s/article/Create-a-Configuration-Block-in-TIBCO-Spotfire

Among other things, configuration blocks allow you to set document properties. As stated in the page mentioned above:

"Parameters and Document Properties

A configuration block parameter is automatically assigned to a document property, if a document property with the same name and data type is defined in the analysis."

So, if you have the document properties customerid and year, you could set them using the following configuration block

http://xyz.com/spotfire/wp/OpenAnalysis?file=0abe1b8e-90d1-4008-a859-1d9191932998&configurationBlock=customerid=%22ABCD%22;year=%22FY2023%22;

(Make sure to read the section on URL encoding, which is a common source of issues)

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...