Skip to main content

Posts

Showing posts from June, 2014

Changing Columns in Parallel Coordinate Plot

Unlike other chart types, there is no set from property for setting columns in a parallel Coordinate Plot Here is a script that will let you map a textarea multi select list control to a parallel Coordinate Plot Here I have mapped my Parallel Coordinate Plot to mypllplot variable and my multiselect property control is transaction. Also I am plotting Sum of column values , but you can edit the expression to meet your needs from Spotfire.Dxp.Application.Visuals import * temp= Document.Properties['transaction'] mypllplot.As[ParallelCoordinatePlot]().Columns.Clear() for col1 in temp: PCPColumn= ParallelCoordinatePlotColumn('Sum('+ col1 + ')') mypllplot.As[ParallelCoordinatePlot]().Columns.Add(PCPColumn)

Log4net error logging

Spotfire webplayer server uses log4net(as of version 6.5) for logging variety of information which can be helpful for performance, usage, errors and other sort of tracking. Log4net provides variety of ways(loggers) to persist the logs for e.g in database, via emails, filters etc. if you ever decide to change the output from default files to something else and are not using teh inbuild action_logs you may need to modify the log4net settings and chances are you could run into some syntax issue preventing log4net itself from working. In those case it may be nice to be able to enable logging of log4net itself. To do so here are the steps Open <Web Player install dir>\webroot\Web.config, add the appSettings and the system.diagnostics tag below the  <configSections></ configSections> section: ==================== […]   </configSections>     <appSettings>         <add key="log4net.Internal.Debug" value="true"/>     </appSetti

Spotfire Auto Save for recovery

This is an extension I build to auto save local copies of currently open DXP every 15 minutes.. I have tested briefly and it seems to be doing its job, please please please try and test it if you can access a server and deploy.. Key Notes - This add-on will Auto Save Files while only in Spotfire Analyst Client. The save time is hard coded for every 15 minutes. Files are saved only if they are changed or user has done some actions like marking, filtering etc. The Files are saved in temporary location of the system, generally which will be like C:\Users\<username>\AppData\Local\Temp\Spotfire AutoSave If a Library file is opened it will be saved on your local machine under the temp path C:\Users\<username>\AppData\Local\Temp\Spotfire AutoSave\Library Content\ Library path will be replicated in this autosave location. e.g. C:\Users\<username> \Local\Temp\Spotfire AutoSave\LibraryContent\mylibraryfolder\mylibraryfilename_mmddyyyy_HH