<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://spotfire.tibco.com/community/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Knowledge Base - All Comments</title><link>http://spotfire.tibco.com/community/blogs/stn/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>re: Using pivot and self-joins to prepare data using the API</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2009/01/14/using-pivot-and-self-joins-to-prepare-data-using-the-api.aspx#3984</link><pubDate>Mon, 06 Dec 2010 20:34:00 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:3984</guid><dc:creator>Jonas Svensson</dc:creator><description>&lt;p&gt;Yes, it is possible to convert this to an iron python script, here is a version of the same code in iron python assuming that &amp;quot;table&amp;quot; is a DataTable parameter to the script:&lt;/p&gt;
&lt;p&gt;from Spotfire.Dxp.Data.Import import *&lt;/p&gt;
&lt;p&gt;from Spotfire.Dxp.Data import *&lt;/p&gt;
&lt;p&gt;from Spotfire.Dxp.Data.Transformations import *&lt;/p&gt;
&lt;p&gt;from Spotfire.Dxp.Application.Visuals import *&lt;/p&gt;
&lt;p&gt;from System.Collections.Generic import *&lt;/p&gt;
&lt;p&gt;dtds = DataTableDataSource(table)&lt;/p&gt;
&lt;p&gt;pivot = PivotTransformation()&lt;/p&gt;
&lt;p&gt;connection = dtds.Connect(Application.Document, DataSourcePromptMode.None)&lt;/p&gt;
&lt;p&gt;reader = connection.ExecuteQuery2()&lt;/p&gt;
&lt;p&gt;sellerSignature = DataColumnSignature(reader.Columns[&amp;quot;Seller&amp;quot;])&lt;/p&gt;
&lt;p&gt;customerSignature = DataColumnSignature(reader.Columns[&amp;quot;Customer&amp;quot;])&lt;/p&gt;
&lt;p&gt;salesSignature = DataColumnSignature(reader.Columns[&amp;quot;Sales Amount ($)&amp;quot;])&lt;/p&gt;
&lt;p&gt;pivot.IdentityColumns = [sellerSignature, customerSignature]&lt;/p&gt;
&lt;p&gt;pivot.TransferColumns = [ColumnAggregation(salesSignature, &amp;quot;sum&amp;quot;)]&lt;/p&gt;
&lt;p&gt;reader.Dispose()&lt;/p&gt;
&lt;p&gt;connection.Dispose()&lt;/p&gt;
&lt;p&gt;builder = DataFlowBuilder(dtds, Application.ImportContext)&lt;/p&gt;
&lt;p&gt;builder.AddTransformation(pivot)&lt;/p&gt;
&lt;p&gt;dataFlow = builder.Build()&lt;/p&gt;
&lt;p&gt;uniqueName = Application.Document.Data.Tables.CreateUniqueName(&amp;quot;Data Table (Pivot)&amp;quot;)&lt;/p&gt;
&lt;p&gt;transformedTable = Application.Document.Data.Tables.Add(uniqueName, dataFlow)&lt;/p&gt;
&lt;p&gt;leftCustomer = DataColumnSignature(transformedTable.Columns[&amp;quot;Customer&amp;quot;])&lt;/p&gt;
&lt;p&gt;connection = dataFlow.Connect(Application.Document, DataSourcePromptMode.None)&lt;/p&gt;
&lt;p&gt;reader = connection.ExecuteQuery2()&lt;/p&gt;
&lt;p&gt;rightCustomer = DataColumnSignature(reader.Columns[&amp;quot;Customer&amp;quot;])&lt;/p&gt;
&lt;p&gt;reader.Dispose()&lt;/p&gt;
&lt;p&gt;connection.Dispose()&lt;/p&gt;
&lt;p&gt;mapping = Dictionary[DataColumnSignature,DataColumnSignature]({leftCustomer:rightCustomer})&lt;/p&gt;
&lt;p&gt;addColumnsSettings = AddColumnsSettings(mapping, JoinType.FullOuterJoin, [])&lt;/p&gt;
&lt;p&gt;transformedTable.AddColumns(dataFlow, addColumnsSettings)&lt;/p&gt;
&lt;p&gt;page = Application.Document.Pages.AddNew(&amp;quot;Transformed table&amp;quot;)&lt;/p&gt;
&lt;p&gt;page.AutoConfigure()&lt;/p&gt;
&lt;p&gt;plot = page.Visuals.AddNew[TablePlot]()&lt;/p&gt;
&lt;p&gt;plot.Data.DataTableReference = transformedTable&lt;/p&gt;
&lt;p&gt;plot.AutoConfigure()&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=3984" width="1" height="1"&gt;</description></item><item><title>re: Using pivot and self-joins to prepare data using the API</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2009/01/14/using-pivot-and-self-joins-to-prepare-data-using-the-api.aspx#3979</link><pubDate>Mon, 06 Dec 2010 16:36:37 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:3979</guid><dc:creator>JTR</dc:creator><description>&lt;p&gt;Is it even possible to convert this to IronPython?&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=3979" width="1" height="1"&gt;</description></item><item><title>re: Creating a file based “on-demand” using data functions</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2010/03/30/creating-a-file-based-on-demand-using-data-functions.aspx#3682</link><pubDate>Mon, 01 Nov 2010 19:12:12 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:3682</guid><dc:creator>Greg Goldsmith</dc:creator><description>&lt;p&gt;c&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=3682" width="1" height="1"&gt;</description></item><item><title>re: Use the TIBCO Spotfire S+ Server Java API to Develop a Web Application </title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2009/02/24/use-the-tibco-spotfire-s-server-java-api-to-develop-a-web-application.aspx#2559</link><pubDate>Tue, 20 Jul 2010 12:29:30 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:2559</guid><dc:creator>Anonymous</dc:creator><description>&lt;p&gt;Thanks a lot for the information&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=2559" width="1" height="1"&gt;</description></item><item><title>re: Implementing a Test Harness Using Automation Services</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2010/01/04/implementing-a-test-harness-using-automation-services.aspx#2254</link><pubDate>Mon, 21 Jun 2010 14:45:30 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:2254</guid><dc:creator>Mark Harris</dc:creator><description>&lt;p&gt;Note that as of version 3.1, the Package Builder appears to pick up the reference to Automation Services automatically. &amp;nbsp;You can omit the step 3 in &amp;quot;Set up the Package Builder Configuration for Local Testing&amp;quot; which adds TIBCO Spotfire Automation Services into the active configuration, or you might find that an exception occurs.&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=2254" width="1" height="1"&gt;</description></item><item><title>190d Part 1981 Mercedes, 190d Car Buyer - 259.defutbolazo.com</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2010/03/11/tibco-spotfire-administration-console.aspx#1761</link><pubDate>Tue, 25 May 2010 18:17:06 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1761</guid><dc:creator>190d Part 1981 Mercedes, 190d Car Buyer - 259.defutbolazo.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;190d Part 1981 Mercedes, 190d Car Buyer - 259.defutbolazo.com&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1761" width="1" height="1"&gt;</description></item><item><title>Ramcharger Coupon Oem, Aftermarket Rebel Xt Charger - 100.tgrconversions.com</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2010/03/08/spotfire-integration-with-s-and-r.aspx#1759</link><pubDate>Tue, 25 May 2010 17:52:10 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1759</guid><dc:creator>Ramcharger Coupon Oem, Aftermarket Rebel Xt Charger - 100.tgrconversions.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Ramcharger Coupon Oem, Aftermarket Rebel Xt Charger - 100.tgrconversions.com&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1759" width="1" height="1"&gt;</description></item><item><title>Es330 Parts Buy Lexus Brake Rotors, Es330 Removal Heater - 390.myipgirl.com</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2010/03/08/spotfire-integration-with-s-and-r.aspx#1758</link><pubDate>Tue, 25 May 2010 17:52:09 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1758</guid><dc:creator>Es330 Parts Buy Lexus Brake Rotors, Es330 Removal Heater - 390.myipgirl.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Es330 Parts Buy Lexus Brake Rotors, Es330 Removal Heater - 390.myipgirl.com&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1758" width="1" height="1"&gt;</description></item><item><title>Miranda Mx3, 1992 Mazda Mx3 Precidia Review - 452.tgrconversions.com</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2009/10/26/Performance-tips-for-large-datasets.aspx#1757</link><pubDate>Tue, 25 May 2010 17:51:47 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1757</guid><dc:creator>Miranda Mx3, 1992 Mazda Mx3 Precidia Review - 452.tgrconversions.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Miranda Mx3, 1992 Mazda Mx3 Precidia Review - 452.tgrconversions.com&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1757" width="1" height="1"&gt;</description></item><item><title>Buy Medallion Fiberglass, Medallion Buy Should - 238.myipgirl.com</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2009/10/26/Performance-tips-for-large-datasets.aspx#1755</link><pubDate>Tue, 25 May 2010 17:43:10 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1755</guid><dc:creator>Buy Medallion Fiberglass, Medallion Buy Should - 238.myipgirl.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Buy Medallion Fiberglass, Medallion Buy Should - 238.myipgirl.com&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1755" width="1" height="1"&gt;</description></item><item><title>Used Cadillac Seville Pictures Volvo S80, Seville Discount Spain Vincci La Rabida Petit Palace Marques Santa Ana - 457.zapstreaming.com</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2009/10/26/Performance-tips-for-large-datasets.aspx#1754</link><pubDate>Tue, 25 May 2010 17:33:59 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1754</guid><dc:creator>Used Cadillac Seville Pictures Volvo S80, Seville Discount Spain Vincci La Rabida Petit Palace Marques Santa Ana - 457.zapstreaming.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Used Cadillac Seville Pictures Volvo S80, Seville Discount Spain Vincci La Rabida Petit Palace Marques Santa Ana - 457.zapstreaming.com&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1754" width="1" height="1"&gt;</description></item><item><title>B3500 Obituaries, Cheap Dodge B3500 Van - 26.renters.ws</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2010/03/11/tibco-spotfire-administration-console.aspx#1753</link><pubDate>Tue, 25 May 2010 17:30:58 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1753</guid><dc:creator>B3500 Obituaries, Cheap Dodge B3500 Van - 26.renters.ws</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;B3500 Obituaries, Cheap Dodge B3500 Van - 26.renters.ws&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1753" width="1" height="1"&gt;</description></item><item><title>D21 Wholesale Black High Quality, Axxess Headlight Honda Salvage Yards D21 - 30.binggreen.com</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2010/03/11/tibco-spotfire-administration-console.aspx#1752</link><pubDate>Tue, 25 May 2010 17:27:16 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1752</guid><dc:creator>D21 Wholesale Black High Quality, Axxess Headlight Honda Salvage Yards D21 - 30.binggreen.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;D21 Wholesale Black High Quality, Axxess Headlight Honda Salvage Yards D21 - 30.binggreen.com&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1752" width="1" height="1"&gt;</description></item><item><title>Ln7 Blower Air Conditioner, Free Shipping Mercury Ln7 - 49.dlmreza.net</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2009/10/26/Performance-tips-for-large-datasets.aspx#1751</link><pubDate>Tue, 25 May 2010 17:26:55 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1751</guid><dc:creator>Ln7 Blower Air Conditioner, Free Shipping Mercury Ln7 - 49.dlmreza.net</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Ln7 Blower Air Conditioner, Free Shipping Mercury Ln7 - 49.dlmreza.net&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1751" width="1" height="1"&gt;</description></item><item><title>E 450 Super Duty Full 2008 Ford F 550, John Deere Frontier Rear Bumper Heavy Duty - 82.luna-atra.net</title><link>http://spotfire.tibco.com/community/blogs/stn/archive/2009/10/26/Performance-tips-for-large-datasets.aspx#1750</link><pubDate>Tue, 25 May 2010 17:24:36 GMT</pubDate><guid isPermaLink="false">affde357-0bb3-4331-9204-9726b0672618:1750</guid><dc:creator>E 450 Super Duty Full 2008 Ford F 550, John Deere Frontier Rear Bumper Heavy Duty - 82.luna-atra.net</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;E 450 Super Duty Full 2008 Ford F 550, John Deere Frontier Rear Bumper Heavy Duty - 82.luna-atra.net&lt;/p&gt;
&lt;img src="http://spotfire.tibco.com/community/aggbug.aspx?PostID=1750" width="1" height="1"&gt;</description></item></channel></rss>
