Jump to content

Como inserir parmetros em uma tabela


fernando martins

Recommended Posts

  • 2 months later...

English:How to insert parameters into a tableI would like to insert parameters into a table. That way, when the user clicks on the table row, eg: product name, the name of that product appears in the title of another chart. For this to occur, the title name must be a parameter.

 

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

You could achieve this by updating a document property when the user marks a different row in a data table. There are 2 ways to update a document property when marking changes by using javascript or using a data function. These have been described here: https://community.spotfire.com/wiki/triggering-ironpython-scripts-when-mark...

To provide you an example I've used the data function approach in the attached dxp file (version 10.2)

The steps I've done are:

1. Create a document property called 'title' to serve as a place holder for the value for the marked row.

2.Next I've created a R data function called 'copyDF'. This copies input (marked value) to output (document property).

3. Then I've configured the title of the table to the 'title' document property.

Best regards,

Alain

Link to comment
Share on other sites

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...