From 16b7bbe22fea98b545b77b66d86c556fb6c4c219 Mon Sep 17 00:00:00 2001 From: Jac Fitzgerald Date: Fri, 28 May 2021 22:50:59 -0700 Subject: [PATCH] add basic sample with one namespace --- .../preserve-namespaces/TABLEAU_10_TWB.twb | 22 + samples/preserve-namespaces/filtering.twb | 1766 +++++++++++++++++ .../preserve-namespaces.py | 32 + 3 files changed, 1820 insertions(+) create mode 100644 samples/preserve-namespaces/TABLEAU_10_TWB.twb create mode 100644 samples/preserve-namespaces/filtering.twb create mode 100644 samples/preserve-namespaces/preserve-namespaces.py diff --git a/samples/preserve-namespaces/TABLEAU_10_TWB.twb b/samples/preserve-namespaces/TABLEAU_10_TWB.twb new file mode 100644 index 0000000..aa0207f --- /dev/null +++ b/samples/preserve-namespaces/TABLEAU_10_TWB.twb @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + diff --git a/samples/preserve-namespaces/filtering.twb b/samples/preserve-namespaces/filtering.twb new file mode 100644 index 0000000..68cfcd3 --- /dev/null +++ b/samples/preserve-namespaces/filtering.twb @@ -0,0 +1,1766 @@ + + + + + + + <_.fcp.GroupActionAddRemove.true...GroupActionAddRemove /> + <_.fcp.MarkAnimation.true...MarkAnimation /> + <_.fcp.ObjectModelEncapsulateLegacy.true...ObjectModelEncapsulateLegacy /> + <_.fcp.ObjectModelTableType.true...ObjectModelTableType /> + <_.fcp.SchemaViewerObjectModel.true...SchemaViewerObjectModel /> + <_.fcp.SetMembershipControl.true...SetMembershipControl /> + + + + + + + + + + + + + + + + + + <_.fcp.ObjectModelEncapsulateLegacy.false...relation connection='sqlserver.1nzmabo1alszdd1dqm0c11g0qr0m' name='TestData' table='[dbo].[TestData]' type='table' /> + <_.fcp.ObjectModelEncapsulateLegacy.true...relation connection='sqlserver.1nzmabo1alszdd1dqm0c11g0qr0m' name='TestData' table='[dbo].[TestData]' type='table' /> + + + Account Account Name + 130 + [Account Account Name] + [TestData] + Account Account Name + 1 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Account Number + 5 + [Account Number] + [TestData] + Account Number + 2 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Account Number Burst Out Account + 130 + [Account Number Burst Out Account] + [TestData] + Account Number Burst Out Account + 3 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Acct Name + 130 + [Acct Name] + [TestData] + Acct Name + 4 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Burst Out + 130 + [Burst Out] + [TestData] + Burst Out + 5 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Burst Out Join + 130 + [Burst Out Join] + [TestData] + Burst Out Join + 6 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Burst Out Set list + 5 + [Burst Out Set list] + [TestData] + Burst Out Set list + 7 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Burst Out View + 5 + [Burst Out View] + [TestData] + Burst Out View + 8 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Count JE Number + 5 + [Count JE Number] + [TestData] + Count JE Number + 9 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Entity ID + 130 + [Entity ID] + [TestData] + Entity ID + 10 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Filter + 5 + [Filter] + [TestData] + Filter + 11 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Fiscal Year + 130 + [Fiscal Year] + [TestData] + Fiscal Year + 12 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Flag + 11 + [Flag] + [TestData] + Flag + 13 + boolean + Count + false + + "SQL_BIT" + "SQL_C_BIT" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Flag__copy_ + 11 + [Flag__copy_] + [TestData] + Flag__copy_ + 14 + boolean + Count + false + + "SQL_BIT" + "SQL_C_BIT" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + FS Line + 5 + [FS Line] + [TestData] + FS Line + 15 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + FS Line Burst Out Account + 130 + [FS Line Burst Out Account] + [TestData] + FS Line Burst Out Account + 16 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Group By + 5 + [Group By] + [TestData] + Group By + 17 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Image + 130 + [Image] + [TestData] + Image + 18 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Note Line + 5 + [Note Line] + [TestData] + Note Line + 19 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Note Line Burst Out Account + 130 + [Note Line Burst Out Account] + [TestData] + Note Line Burst Out Account + 20 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Selection + 5 + [Selection] + [TestData] + Selection + 21 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + show + 130 + [show] + [TestData] + show + 22 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Show Cycle Based + 130 + [Show Cycle Based] + [TestData] + Show Cycle Based + 23 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Sub Class + 5 + [Sub Class] + [TestData] + Sub Class + 24 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + SubClass Burst Out Account + 130 + [SubClass Burst Out Account] + [TestData] + SubClass Burst Out Account + 25 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Type + 130 + [Type] + [TestData] + Type + 26 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Amount + 130 + [Amount] + [TestData] + Amount + 27 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Amount1 + 130 + [Amount1] + [TestData] + Amount1 + 28 + string + Count + 255 + true + true + + + "SQL_WVARCHAR" + "SQL_C_WCHAR" + "true" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Count of Amount Calculation + 5 + [Count of Amount Calculation] + [TestData] + Count of Amount Calculation + 29 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Number of Records + 5 + [Number of Records] + [TestData] + Number of Records + 30 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Number of Records1 + 5 + [Number of Records1] + [TestData] + Number of Records1 + 31 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Select Burst Out + 5 + [Select Burst Out] + [TestData] + Select Burst Out + 32 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Select Transaction Analysis view + 5 + [Select Transaction Analysis view] + [TestData] + Select Transaction Analysis view + 33 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Sum Cy + 5 + [Sum Cy] + [TestData] + Sum Cy + 34 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Sum Py1 + 5 + [Sum Py1] + [TestData] + Sum Py1 + 35 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Sum Py2 + 5 + [Sum Py2] + [TestData] + Sum Py2 + 36 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Sum Py3 + 5 + [Sum Py3] + [TestData] + Sum Py3 + 37 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Sum Py4 + 5 + [Sum Py4] + [TestData] + Sum Py4 + 38 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Total Credits + 5 + [Total Credits] + [TestData] + Total Credits + 39 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + Total Debits + 5 + [Total Debits] + [TestData] + Total Debits + 40 + real + Sum + 15 + true + + "SQL_FLOAT" + "SQL_C_DOUBLE" + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[TestData_44D2C885FAEF453C846AC2CCD3577055] + + + + + + + + + + + <_.fcp.ObjectModelTableType.true...column caption='TestData' datatype='table' name='[__tableau_internal_object_id__].[TestData_44D2C885FAEF453C846AC2CCD3577055]' role='measure' type='quantitative' /> + + + + + + + + + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-graph> + + + + + + + + + + + + + + + <_.fcp.GroupActionAddRemove.true...add-or-remove-marks value='assign' /> + + + + + + + + + + + <formatted-text> + <run>Selection</run> + </formatted-text> + + + + + + + + + + + + + + + + + + + + + + + ([federated.1df63xu0j2dvhd1e3sooz18pbrcc].[none:Calculation_88946136969252864:nk] / [federated.1df63xu0j2dvhd1e3sooz18pbrcc].[none:Burst Out Set list:nk]) + +
+ +
+ + + + <formatted-text> + <run>Set Result</run> + </formatted-text> + + + + + + + + + + + + + + +