The Spotfire Community is moving to TIBCOmmunity and this forum location has closed. During the transition, you can still search the old forums but posting has been disabled. We encourage you to pick up the discussion at the new Spotfire community on TIBCOmmunity.
Sharing, Collaborating, and Annotating your Spotfire Analysis – Part II - Tip of the Week

Tip of the Week

Sharing, Collaborating, and Annotating your Spotfire Analysis – Part II

Last week we looked at how we can use the Spotfire Web Player APIs, along with a standard web page, to open a Spotfire analysis file to a specific state. This was done using a configuration block.

In this, the second part of a three part series, we will look at the Web Player APIs which allow us to retrieve the state from an already opened analysis file.  This can be used for a variety of tasks ranging from mashups with other applications, audit logs, sharing and collaboration tools, etc... Specifically in this example, we will use it to generate a URL similar to what we used last week as input to our mashup.  

This example will perform three actions with the Web Player APIs: retrieve the current marking, retrieve the current filtering, and retrieve the active page.

Marking
To retrieve the current marking that is applied to our analysis file, we call the getMarking function. This takes in a variety of parameters, like the Marking Name, the Data Table, a column you want to retrieve as the key for marking values, and the output will be a comma-separated list of values.
   

    function getMarking(markingName, dataTableName, dataColumnNames, maxRows, callback);


Filtering
To retrieve the current filtering that is applied, we call the getFilterColumn function. This takes in a variety of parameters, like the Filtering Scheme name, the Data Table,  and a column you want to retrieve the filtering values for.

     function getFilterColumn(filteringSchemeName, dataTableName, dataColumnName, includedFilterSettings, callback);
Active Page
To retrieve the active page, we call the getActivePage function. This will return both the index and the title of the active page.  To access the title, we can use the following code:

     function getActivePage(callback);

In this tip, we are hard coding many of the high level values, like filtering scheme, marking, data table, and columns to retrieve information on, but in a more production-ready solution, this could all be automated as well. This is just an attempt to show you the capabilities of what you can do.

Once you have all this information, you can group the functions all together under a single HTML button called something like ‘Capture State’. This button would retrieve the marking, filtering, and page, and create a URL with this information as Query Parameters (similar to what we used last week as input). In addition, we could also add a HTML text area in our mashup where the user could enter their comments.

 

 
In the finished version, the user can move to a specific page in the analysis, mark some records, filter some values, and then add a comment in the comment field, and click the ‘Capture State’ button. This will return them a URL which they can use in conjunction with last week’s tip to share their state and comments with others.


 

In the final version we will show next week, we will not use Query Parameters as a way to pass state information back and forth, rather we will store all state information in a Database.

Want to check out this solution? Please visit it at: http://spotfire.tibco.com/community/Downloads/spotfireLive2.html








Comments

 

Tip of the Week said:

In the last two weeks we have built various components which enable us to use Spotfire as a social annotation

November 29, 2010 8:58 AM
 

uggkensington said:

http://www.uggkensingtons.org/

http://www.uggkensingtons.org/ugg-fox-fur-short-boots-5531-c-54.html | UGG Fox Fur Short Boots 5531

http://www.uggkensingtons.org/ugg-kensington-boots-5678-c-2.html | UGG Kensington Boots 5678

http://www.uggkensingtons.org/ugg-rainier-eskimo-boots-5189-c-85.html | UGG Rainier Eskimo Boots 5189

http://www.uggkensingtons.org/ugg-retro-cargo-boots-1895-c-3.html | UGG Retro Cargo Boots 1895

December 27, 2011 7:59 PM
 

uggskensingtonsale said:

www.uggskensingtonsale.org

www.uggskensingtonsale.orgugg-adirondack-boots-ii-c-6.html | UGG Adirondack Boots II

www.uggskensingtonsale.orgugg-adirondack-tall-boots-c-11.html | UGG Adirondack Tall Boots

www.uggskensingtonsale.orgugg-amberlee-boots-c-34.html | UGG Amberlee Boots

www.uggskensingtonsale.orgugg-annabelle-boots-c-35.html |

December 28, 2011 3:48 AM
 

dre beats outlet said:

Generally believed that art is a way to grasp the real world, artistic activity is to intuition, and grasping objects in a holistic manner, and on that basis in the form of symbolic symbols to create a certain artistic images of spiritual practice. It appears in art in the end, such works of art ranging from artist's knowledge of the objective world and reflect, there are artist's own subjective factors such as emotions, ideals and values, it is a spiritual products.

Hidden features of art: refers to the art aesthetic features are not familiar with the perception of the outside world, but need to go through the dialectical approach and aesthetic spirit of the reasoning contained in the interpretation of works of art and identity.

Aesthetic features of the art: refers to the art viewers were familiar with the aesthetic spirit, cognition, perception, and thought its dominant and recessive characteristics and symbols.

Dominant feature of art: refers to the art aesthetic spirit and features of familiar perception by outsiders.

August 27, 2012 4:31 AM
 

cheap beats by dre said:

Better Life music and I hope that music can help you share the burden of life , can help you to pass their own happiness to others - Beethoven .

The great musicians brought us the most beautiful music , music makes our life colorful , positive . So , when you feel the lack of motivation , stop and listen to

some music , www.cheapbeatsbydrestudiobuy.com recall Beethoven's struggle to own incentive to make life a better place !

With the world of music is so good ! If our every day life in the serious , punctual world , like a robot work after the procedure , like life , it is how boring, how

depressing . Fortunately, with the music ! Like with the colors , let the world colorful , gorgeous scene !

With the world of music is so good ! It can make you out of the shadows and get the sun ; he can make you out of the sad , get happy . I remember a book said: Even if

your heart pain any language , any action that can not be resolved , but as long as the music is playing , your pain eased a lot .

Music , will make life better . If you play any kind of instrument , then you are the world's happiest people . Because , you are to add color to this world !

October 8, 2012 6:17 AM
 

www.thestylemagazines.com said:

Thanks for taking this opportunity to discuss this, I feel fervently about this and I like learning about this subject. If possible, as you gain information, please update this blog with more information. I have found it really useful.

October 8, 2012 10:04 PM
 

sivaspotfire said:

Please share the proceedure how you implemented this. Please send me if any step by step doc. Appreciated your help on this. Thanks.

December 27, 2012 2:55 PM
 

mba entrance essay said:

Use flash cards with sight words. Have the children read through them often. Encourage them to take the flash cards with them and read them in the car or while waiting at the doctor's office. Thanks.

February 22, 2013 1:57 AM
 

Bozeman said:

And it can be substituted for salt. They use a gentle massaging pressure

on your body's cells are hydrated and functioning properly. But the good news is that there are alternative cellulite treatments. Here is an excellent start to getting rid of cellulite is liposuction a surgical technique used to remove extra cellulite without any risks, surgical trauma or pain.

May 24, 2013 11:26 PM

Leave a Comment

(required) 
(optional)
(required) 
Submit

Syndication

Other Spotfire Blogs

©Copyright 2000-2011 TIBCO Software Inc | Privacy Policy | Terms of Use I Blog I Contact Us I Content Center