a promise providing the coloring information for the active data table.
Fetches the colors for a list of values (or single value) using the coloring rules for a column.
ColorsForValuesRequest object
a promise providing the colors for the provided values.
Updates the coloring being used for the active data table.
object containing the array of coloring data
promise that resolves after the coloring has been set
Adds a calculated column to the active data table.
promise that resolves after adding the calculated column
Adds the columns with the provided IDs into the columns
array in the ActiveConfiguration,
such that they are now 'configured'.
object containing an array of column IDs
promise that resolves after adding columns into columns
array in the ActiveConfiguration
Fetches a range of population statistics for the columns defined in the FetchColumnStatsRequest
object.
FetchColumnStatsRequest object
a promise providing the column stats for the requested columns
Fetches the list of columns for the data table with the provided ID.
FetchColumnsRequest object
a promise providing the columns for the requested data table
Returns the column IDs for columns that have a filter on them for the active data table.
a promise providing the column IDs for the filtered columns
Returns the unique values for each of the provided columns.
the request object.
a promise that once resolved provides an array of unique values for each of the columns in the request.
Removes the columns with the provided column IDs from the columns
array in the ActiveConfiguration such
that they are now unconfigured. Setting the optional {@link request#delete} argument to true will actually delete
the columns from the data table instead of unconfiguring them.
object containing an array of column IDs
promise that resolves after the columns have been removed from the ActiveConfiguration
Reorders the columns in the active data table given the ordered array of column IDs.
object containing array of ordered column IDs
promise that resolves after the columns have been reordered
Updates the calculated column with the provided ID with a new expression.
promise that resolves once the calculated column has been updated
Fetches the active configuration that contains details about the active data table (e.g. columns, number of rows,
marking configuration, sorting etc.). Row data will be returned if the request includes the optional from
and
count
or rows
parameters e.g.
object defining options to include rows and columns in the active configuration
promise providing the active configuration
Fetches a list of the data tables in the document.
object containing parameters for fetching data tables
whether to include the properties for each of the data tables. The default is false if not defined.
a promise providing the array of data tables
Performs a text search 'find' operation using the provided pattern or regular expression on the active data table and returns the next match location.
The response from the endpoint contains location information about the match, see FindResponse. The returned information can be used to form the next find query, where the start location of the next 'find' can be set to the location of the previous.
By default the string comparisons are case insensitive substrings. Regular expressions can be used instead using request.regexp.
Multi-line queries are also possible using request.multiline.
If the request.markRows is set to true all rows that match the provided query will be marked.
the find request
a promise that provides the positional details of the next match
Sets the active data table for the visual.
object containing either the data table ID or name
a promise that resolves after the active data table has been set
Adds an event listener to this publisher instance.
the PublisherEventType
the callback function
Removes an event listener from this publisher instance.
the PublisherEventType
the callback function to remove
Fetches the filters. The response contains an an array of objects, each of which defines the current
filtering (if any) that is applied to a given column. The filters returned depends on the properties of the
request
parameter.
the request objects defining which filters to retrieve
a promise providing the array of filters
Replaces the filters on the document with the provided array of filters. Note that each of the filters must be of the same type as the filter currently on the column.
object containing the array of filter objects
promise that resolves after the filtering has been set
Filters the active data to include or excelude rows in one of two ways:
valueGroup
argument is present, this filters the active data table to include or exclude
rows that contain the distinct value exemplified by each of the provided row idxs for the provided value
group. This requires a column assignment for the value group.object containing various arguments to set the row index filter
promise that resolves after row index filter has been set
Adds new columns and data to the target data table.
object containing the data to add the target data table
a promise that resolves after adding the data to the target data table
Adds new columns and data to the target data table. This adds data from a JSON file served up from a URI.
object defining the location of the data, the join type and the target data table
a promise that resolves after adding the data to the target data table
Adds a set of rows to the target data table.
object defining the rows to add and the target data table
a promise that resolves after adding the data to the target data table
Adds new rows to the target data table. This adds data from a JSON file served up from a URI.
object defining the location of the data and the target data table
a promise that resolves after adding the data to the target data table
Create a new data table from the provided data.
object defining the contents of the new data table
a promise that resolves after the data table has been created
Create a new data table by adding data from a JSON file served up from a URI.
object defining the location of the data, the details for the new table
a promise that resolves after the data table has been created
Returns the current data table in a JSON format suitable for posting to webservices. The rows are retrieved after filtering and sorting.
options for row retrieval
the number of rows to retrieve
the from index for row retrieval
promise that resolves to provide the data table
Removes all the key value pairs from the key value pair store on the active visual.
a promise that resolves after clearing the key value pairs
Fetches the key value pairs store containing a set of key value pairs (both must strings). Key value pairs can be modified using setKeyValuePairs and clearKeyValuePairs.
a promise providing the key value pairs
Adds or replaces the key value pairs in the key value pair store with the key value pairs in the provided
request
object. The keys and values in the object parameter must be strings.
object containing one or more key value pairs. The keys and values must be strings.
a promise that resolves after the key value pairs have updated
Fetches the current marking configuration for the document.
a promise that conttrains the current set of marking configurations once resolved
Configure a 'limit' chart i.e. a chart that is limited by the current marking, but does not display rows as being marked.
whether limit by marking is enabled or not
a promise that resolves after limit by marking has been enabled/disabled
Modifies the row markings.
object containing various arguments to mark rows
promise that resolves after the script has been successfully started
Sets the marking to be used in the current visualization.
object containing marking to be used
a promise that is resolved after the marking has been set
Used to copy one of the following to the system clipboard:
object determining what data to set on the clipboard
promise that resolves after the data has been set on the clipboard
Executes the provided IronPython script. Note that the promise from the endpoint will often resolve before the IronPython has finished executing (i.e. the IronPython script is executed asynchronously). It is possible to listen for script lifecycle events by adding a script execution listener to publisher, see PublisherEventType.SCRIPT_EXECUTION.
object defining the script to execute and any arguments
promise that resolves after the script has been successfully started
Fetches the contents of the system clipboard. This does not work in the WebPlayer.
object containing parameters for getting the clipboard contents
optionally restrict returned clipboard contents to specific keys
promise that provides the contents of the clipboard
Fetches the preferences. These are the preferences that are configured in Tools -> Administration manager -> Preferences tab
a promise providing the preferences
Fetches the document, data table or column properties. Properties are stored on this objects as name/value pairs.
the fetch property request
a promise proving the properties
Returns the runtime properties associated with the visual.
a promise providing the runtime properties
Returns the static file server address for CDJS resources
Promise that resolves to resource URL
Returns the static file server address for Charts resources
Promise that resolves to resource URL
Fetches the currently logged in user details.
promise that provides an object with the user details
Submits an http request through .NET via Publisher. This method can be used to avoid CORS issues.
object containing the various settings for the http request.
a promise that provides an object containing the result of the http request.
Submits an http rest request through .NET via Publisher. This method can be used to avoid CORS issues.
object containing the various settings for the rest request.
a promise that provides an object containing the result of the rest request.
If serving an app via https, set this to true in order to avoid browser complaining about mixed http/https requests.
whether you are using https in your app.
Sets a property (defined by the propertyClass
) on the document, a data table or a column e.g.
object containing the property to set and the property class
a promise that resolves after the properties have been updated
Set one or more properties that exist as long as the visual. These properties are not saved.
object containing properties
a promise that resolves once the properties have been set
Converts the active data table to excel.
promise that resolves after setting the visual configuration
Fetches an image for a given cell in a data table. The cell is defined by the unique column identifier and the row index. For the request to succeed, a Publisher cell renderer that produces an image must be assigned for the referenced column, see Publisher.setRenderers.
defines the row, column for which to generate the image as well as image parameters
promise providing the image data for the cell
Returns information about the possible renderers and the currently configured renderer for the indicated columns.
object indicating which columns to retrieve renderers for
single column ID
array of column IDs
a promise that provides information for the possible renderers and currently configured renderer for the indicated columns
Sets the renderers for the indicated columns.
the request object
a promise that resolves after the renderers have been updated
Fetches rows from an associated data table (associated to the active data table) based on a set of row idxs from the parent (active) data table and the column IDs from the associated data table. See AssociatedRowsRequest.
the request object
promise providing the rows for the associated data table, grouped by parent row idx
Fetches the number of rows, filtered rows and marked rows for the active data table and, optionally, the same information for an array of expressions, for the active data table.
optional object defining the row count request
promise providing the row counts response
Fetches an object that contains 2 arrays that contain the row indexes for the rows that are marked and filtered for the provided visible row range or rows or array of row indexes.
object containing query parameters
promise that provides an object containing the array of marked and filtered row indexes.
Fetches an array of rows from the active data table typically based on either a range defined by the starting
view row index from
and the number of rows to retrieve count
or an array of table row idxs.
parameters defining the rows to fetch
a promise that provides the array of row objects
Fetches the rows idxs that where the values in the provided array match the values in the indicated columns.
array of row indexes that match the provided query
Sets the active row in the Spotfire Analyst. This does nothing in Spotfire WebPlayer as active rows are not supported in the WebPlayer.
an object containing the row
idx for the data table row to make 'active' or null if there should
be no active row.
the row
idx or null
promise that resolves after the active row has been set
Sets the active row in the Spotfire Analyst. This does nothing in Spotfire WebPlayer as active rows are not supported in the WebPlayer.
an object containing the row
idx for the data table row to make 'active' or null if there should
be no active row.
the row
idx or null
promise that resolves after the active row has been set
Returns true if the current visual is displaying the title bar.
promise that resolves to indicate whether the current visual is displaying the title bar
Returns the version of Spotfire.
promise that resolves to provide Spotfire version info.
Returns the title of the current visual.
promise that resolves to give the title of the visual
Fetches a list of the visuals either for the current page, the page referenced by the provided ID or all the visuals in the document.
query parameters
object containing the list of visuals
Maximize or minimize a visual on the current page.
object containing parameters to maximize/minimize visual
promise that resolves after the visual has been maximized/minimized
Sends a message to the Spotfire notifcations panel.
the the notify request
promise that resolves after the notification has been issued
Opens the Spotfire Analyst data tables property dialog. This does not work in WebPlayer.
a promise that resolves after the property dialog is open
Opens the Spotfire Analyst expression editor. This does not work in WebPlayer.
object containing data to configure the expression editor
a promise that resolves after the expression editor has been closed providing the expression the user entered.
Opens the native file dialog in Spotfire Analyst. This does not work in WebPlayer.
object containing data to configure the file dialog
a promise that resolves once the user has selected files/directory
Opens the provided URL in a new browser window using the system default browser.
the URL to open in a browser
promise that resolves after the browser has opened
Sets the visual with the provided ID as the active visual. If visualId
(or request
) is not defined, the
visual from which the request was made will become the active visual.
the request containing the visual ID
promise that resolves after setting the active visual
Sets whether the title bar for the current visual is displayed.
object containing a boolean for whether the visual should be displayed
promise that resolves after setting the title bar visibility
Sets the title for the current visual.
object containing the title for the visual
promise that resolves after setting the title
Adds a new tag column to the active data table.
object defining the name of the tag column and the allowable values for the tag column
promise that resolves after adding the tag column
Replaces possible values for tag column.
object containing parameters to replace possible tags in a tag column
promise that resolves after replacing tag values is complete
Sets the provided tag on the rows with the provided idxs, or marked rows, for the provided tag column.
object containing arguments to tag rows
promise that resolves once tags have been applied to the rows
Returns an HTMLImageElement give the provided image data.
the HTMLImageElement
Creates image data URI given the provided image data.
the HTMLImageElement
the version of publisher.
true if Spotfire is in author mode i.e. 'Editing' instead of 'Viewing'.
Test to see if the column is numeric. This looks for the min
property on the provided column.
the column to test
true if the provided column is a NumericDataTableColumn
true if we are in static mode (i.e. print) environment, false if not.
Test to see if the column is a tag column. This looks for the tags
property on the provided column.
the column to test
true if the provided column is a TagDataTableColumn
true if we are in WebPlayer environment, false if thick client.
Convert the provided DataType to the corresponding SpotfireDataType.
the data type
the SpotfireDataType
The whenReady
method that should (nearly) always be the first method that any application using Publisher
should call. Once that has executed successfully all other methods defined in the Publisher API should be safe
to call. Think of this as the Publisher equivalent of window.onload
.
parameters to pass to whenReady
whether the application should allow 'undrestricted' frame commmunication. This only makes a difference if clients are not able to control the names of iframes in publisher apps.
a promise that once resolved provides information about the Spotfire UI i.e. authorMode
, whether
Spotfire is in 'Editing' or 'Viewing' mode; webPlayer
, whether the app is being used in the WebPlayer rather
than Analyst; and staticMode
, whether this publisher instance has been loaded in the print environment.
Fetches the set of rows indexes that define a distinct set of values for the provided value group as well as the number of rows that contain each unique value.
query parameters
promise that provides an object containing the array of row indexes (where each is the first instance of a unique value in the value group) and the number of rows that contain each value.
Fetches the row indexes for the value groups and the row indexes for the intersection of the value groups. The value group grid is computed greedily by ordering the value groups so that there is maximal intersection of groupings from valueGroup1 and valueGroup2 at cell 0,0 (the top left corner of a matrix).
query parameters
promise that provides an object containing the results of the value group intersection
Controls the marking of rows assigned to a value group. Value groups represent groups of duplicate row values in columns. If any row of a set of duplicate row values is marked, this will mark all rows that have the duplicate value in the value group column e.g.
object containing various parameter to mark value group rows
promise that resolves after the value group rows have been marked
Assigns the column to be used for computing a value group. Once a column is assigned to a column it is possible to get a list of row idxs, where each of them represents the first instance of a unique value from the assigned column.
object containing various parameters to set the value group column
promise that resolves after setting the value group column
Generated using TypeDoc
Fetches the coloring information for the active data table.
Fetch the coloring.
Error