it would be great if prompted information links could be fed values by appending values to the report url as a set of name/value pairs. No need for JavaScript API. This would allow external applications to link directly to reports and to tailor the data immediately. Prompts would not be displayed to the user, if the prompt value is provided by the url. This would apply for parameterised as well as prompted information links.
Decodes perfectly:
https://myserver.net/SpotfireWeb/ViewAnalysis.aspx?file=/Reports/02_Testing/Hyperlink_Parameter_Test_Array&configurationBlock=pRegistrationUID%3D%7B%229291-00051998%22%2C%229291-00051996%22%7D%3B
Decodes to:
https://myserver.net/SpotfireWeb/ViewAnalysis.aspx?file=/Reports/02_Testing/Hyperlink_Parameter_Test_Array&configurationBlock=pRegistrationUID={"9291-00051998","9291-00051996"};
Decoded here:
https://www.urldecoder.org/
But only works with one parameter, not more than one...not sure if I need to change the SQL to say "IN" or what I need to do, but when you put more than one parameter in - nothing comes back , the document property doesn't get populated.
I have verified that it works. I think your problem may be related to URL encoding. For further assistance please contact support.
Hi Magnus, thanks for this but it doesn't work. I have updated the stackoverflow question also. When I define the parameter as an "Array" and use this syntax, it doesn't even populate the document property as it does when I pass in a single value.
A list parameter has the following syntax: COUNTRY = { "SWEDEN", "NORWAY", "DENMARK" };
Used in a URL it must be encoded:
I wrote this question on SO.
https://stackoverflow.com/questions/46834915/how-to-populate-an-array-parameter-in-a-spotfire-url-configurationblock
Hi
I managed to get a single parameter passed in (semi colon is important)...but how do I pass an array parameter in, and how would I pass multiple values in. Say I want to pass an array of countries into a COUNTRY parameter, but also a single product name in also ... how would I do this?
These would be great to flesh out in the article.
Hi Stephen, You're right about the article would need more examples. I'm not able to test now but the syntax should be like this:
notice the semicolon that ends all statements in a configuration block.
Hi Magnus, it is not clear from this how you would set parameters in a configuration block via a URL. It gives examples of SetFilter() etc. - but not how you just pass one or more parameters in the URL. I have tried a few ways of doing it.
This article could do with fleshing out with some more URL examples. Any help appreciated.
An option is to use parameterized information links and assign the values as name/value pairs in a configuration block in the URL.