fernando martins Posted February 1, 2019 Share Posted February 1, 2019 Gostaria de inserir parmetros em uma tabela. Dessa forma, quando o usurio clicar na linha da tabela, ex: nome do produto, o nome desse produto aparea no ttulo de outro grfico. Para isso ocorrer, o nome do ttulo deve ser um parmetro. Link to comment Share on other sites More sharing options...
Donald Johnson Posted April 17, 2019 Share Posted April 17, 2019 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 More sharing options...
Kirsten Smith (she/her) Posted April 18, 2019 Share Posted April 18, 2019 (Google translate) I 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 More sharing options...
Alain Martens Posted April 26, 2019 Share Posted April 26, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now