Jump to content

Niko Maresco

Spotfire Team
  • Posts

    33
  • Joined

  • Days Won

    3

Niko Maresco last won the day on September 10

Niko Maresco had the most liked content!

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Niko Maresco's Achievements

  1. hi Jon, other than what Jose shared, UI elements of the application itself are tied to the client machine's resolution and DPI settings. you can try to override the DPI used in this application with the steps listed in this Microsoft forum post: https://answers.microsoft.com/en-us/windows/forum/all/change-the-display-scale-for-an-individual/317e27ba-1488-4bed-a23f-85a3d5290dea and see if that suits your use case.
  2. also, is this reproduceable on other machines in your office?
  3. another way of performing automated Library backups is to use your database vendor's tools to back up the entire Spotfire application database. of course it depends on your specific use case, and the suggestion doesn't solve the original issue, but it may be considered as an alternative.
  4. hi Richard, one other thing you can try is: in Analyst (not Web Player), right click the Filters heading and choose Manage filtering schemes..., then in the dialog that appears, click the eyeball icon so that it's not crossed through, like so: this should show a new "Filtering scheme" dropdown menu underneath the heading: if that doesn't work, can you confirm a couple of things, please? is this affecting all users? are Administrator-level users affected also? what version of Spotfire are you using? what web browser are you using? are there any browser extensions installed?
  5. hi apreble, aha, your hypothesis is correct :) in this case, you want "ScatterPlot". here's the complete script: # import the class reference for a Scatter Plot from Spotfire.Dxp.Application.Visuals import ScatterPlot # cast the `visual` Parameter as a ScatterPlot class scatter_plot = visual.As[ScatterPlot]() # toggle the YAxis.Reversed property from False->True or True->False scatter_plot.YAxis.Reversed = not scatter_plot.YAxis.Reversed the version of Python doesn't affect anything in this case. the available selections are dependent on your installed version of Spotfire (i am using 14.4.0).
  6. hi apreble, you could do this with an Action Control or a Property Control, but unfortunately there is no checkbox or radio button control in Spotfire. as an alternative, either a Drop-down List Property Control or an Action Control attached to an IronPython script can sort this out for you. i'll outline the steps and provide a script for the latter. i'm assuming you're using a Bar Chart here :) in your Text Area, add a new Action Control: enter a value for Display text and set the Control type to either Button or Link (i recommend Button with a Display text like "Reverse Y-Axis") choose Script from the action types on the left, then click Add >> New script... provide a name for the script, like "reverseYAxis" (no spaces here!) paste the below script into the Script field: # import the class reference for a Bar Chart from Spotfire.Dxp.Application.Visuals import BarChart # cast the `visual` Parameter as a BarChart class bar_chart = visual.As[BarChart]() # toggle the YAxis.Reversed property from False->True or True->False bar_chart.YAxis.Reversed = not bar_chart.YAxis.Reversed click the Add... button to add a new Parameter. name it "visual" and under Debug value choose your visualization from the dropdown, then click OK click Run Script to verify that it's working correctly, and then confirm all open dialogs and there you have it :) here's a screenshot of all the open dialogs in case it's useful to see the whole thing completed
  7. hi Richard, it's not super obvious, but Web Player users should be able to swap Filtering Schemes by right clicking on the "Filters" heading. is this function not working for your users? alternatively, if you'd like the feature to be a little more explicit, you could use an IronPython script to control the Filtering Scheme through some Property Controls in a Text Area. here's a screenshot of the right click functionality in Spotfire 14.4.0:
  8. hi Prashant, assuming that you have 1) a column with a trinary value of some kind (e.g., 1, 2, or 3) and 2) images for these circles/bullets hosted in a publicly accessible location (e.g., http://example.com/red_dot.png, etc.), you can use a regular Table visualization: convert your trinary value to a URL for the respective image with a Calculated Column using an expression like the below example. here i assume that your trinary value is in a column called [value], and i will refer to the new Calculated Column as [value_url]. case [value] when 1 then "http://example.com/red_dot.png" when 2 then "http://example.com/green_dot.png" when 3 then "http://example.com/yellow_dot.png" else null end create a new Table visualization and ensure that [value_url] is displayed enter the Properties dialog for the Table visualization and navigate to the Columns page select your [value_url] column and change the Renderer to "Image from URL" (see image) repeat these steps for any additional columns
  9. hi Rakesh and Krishna, also kindly please provide a little more detail about your environment. are you installing Spotfire Server and Spotfire Node Manager on the same machine, or on different machines?
  10. hi Kem, the KB article you shared says that this issue is fixed in TERR 6.0.3, and i see you mention you are using TERR 6.0.1. is upgrading to 6.0.3 a possibility? it's not clear what steps from the article you have taken to resolve the problem - could you please elaborate?
  11. hi Mark, unfortunately there are no APIs for instantiating Action or Property Controls or Dynamic Items :/ there is an entry in the Spotfire Idea Portal for this functionality, and i recommend voting for it so that it becomes a higher priority for the product team: https://ideas.spotfire.com/ideas/SPF-I-330
  12. hi Prashant, can you please provide more details? i don't understand the nature of your question. what error are you looking to catch? what do you mean by "the notification message remains the same"? within IronPython you can use a try/catch block to attempt to catch exceptions, or validation logic to make sure values are within acceptable bounds. and of course you can use variables in the strings that you provide to the NotificationService to change the message that appears in the notification. but i'm not sure that this is what you're asking.
  13. hi PBR the simplest way to achieve this is with a Data Function linked to a Document Property. first, create a Document Property of type String -- i'll refer to it as "ScriptTrigger". configure ScriptTrigger to execute your IronPython script when its value changes. next, create a Data Function that uses R script with the below code. on the Output tab, create an output parameter named "output" (to match the `output` variable in the script). output <- Sys.time() finally, go to the "Edit Parameters" dialog for the Data Function and on the Output tab, wire the output of the script to ScriptTrigger. make sure "Refresh Automatically" is ticked and save your changes. now when you open the analysis, the Data Function will be executed, which will produce a new unique value, which will update the Document Property, which will trigger your script :)
×
×
  • Create New...