From 643b5a8576776fd40b5c5ba55434ca3db2291651 Mon Sep 17 00:00:00 2001 From: epf Date: Tue, 26 Jan 2016 16:23:39 +0100 Subject: [PATCH] Update samples --- Projects/.vs/config/applicationhost.config | 1038 +++++++++++++++++ ...ser input - Select columns to display.srex | 663 +++++++++++ Repository/Sources/Northwind.scfx | 2 +- 3 files changed, 1702 insertions(+), 1 deletion(-) create mode 100644 Projects/.vs/config/applicationhost.config create mode 100644 Repository/Reports/Samples/52-User input - Select columns to display.srex diff --git a/Projects/.vs/config/applicationhost.config b/Projects/.vs/config/applicationhost.config new file mode 100644 index 00000000..fd59f378 --- /dev/null +++ b/Projects/.vs/config/applicationhost.config @@ -0,0 +1,1038 @@ + + + + + + + + +
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Repository/Reports/Samples/52-User input - Select columns to display.srex b/Repository/Reports/Samples/52-User input - Select columns to display.srex new file mode 100644 index 00000000..97b6afd0 --- /dev/null +++ b/Repository/Reports/Samples/52-User input - Select columns to display.srex @@ -0,0 +1,663 @@ + + + ef57917f-dea4-497a-a36e-bf924d6ea8ad + + + 46cfb40c-d55b-4047-86ca-cf56193d12ae + Northwind (Repository) + + + + + + + 1 + false + false + N0 + d + + false + + + + cc6ab3b6-e41d-4913-9443-67d91f488fe7 + SealMasterTable + true + false + false + false + + + + + + + c7e10051-823f-46cb-91a8-971381b5a6ce + Select Columns + select col1,col2 from table order by col2 + false + false + false + false + + + Quantity + Quantity + + + Amount + Amount + + + Discount + Discount + + + 160 + + + + 52833575-11ae-4b7d-8b5e-0f9b29d1267a + + + + + d4b58a38-6b84-40e8-8c93-d69610558bf4 + model + 46cfb40c-d55b-4047-86ca-cf56193d12ae + 2 + @using Seal.Model +@using System.Data +@{ + ReportModel model = Model; + ReportExecutionLog log = model.Report; + + //Use the model tag to store the original elements for several executions... + if (model.Tag == null) + { + model.Tag = model.Elements.ToList(); + } + else + { + model.Elements = ((List<ReportElement>)model.Tag).ToList(); + } + + ReportRestriction restriction = model.GetRestrictionByName("Columns Displayed"); + if (restriction != null && restriction.EnumValues.Count > 0) + { + log.LogMessage("{0} Columns selected. Removing columns not selected", restriction.EnumValues.Count); + model.Elements.RemoveAll(i => !restriction.EnumValues.Contains(i.DisplayNameEl) && i.DisplayNameEl != "Category"); + } +} + + false + + + + + ff807682-c72a-4b3f-be81-ace7a0606c36 + Products.CategoryID + Default + false + Master + 0 + Default + Default + N0 + + + false + + Row + Automatic Ascendant + Default + Count + No + No + Sum + Axis + true + Point + ScatterChart + Primary + Primary + Ascending + Y + f1ca9f05-b6a3-46da-b753-68cb4056cb66 + true + true + + + 17eb0c5d-0f63-41f6-a6c4-ced2062ea429 + [Order Details].Quantity + Default + false + Master + 0 + Default + Default + N0 + + + false + + Data + Automatic Ascendant + Default + Sum + No + No + Sum + NVD3Serie + true + Point + ScatterChart + Primary + Primary + Ascending + Y + cb20a340-73d5-4e52-b7fc-59dab043c176 + true + true + + + 1b92262c-8af8-474b-9c4b-7322f490c94e + (1-Discount)*[Order Details].Quantity*[Order Details].UnitPrice + Default + false + Master + 0 + Default + Default + N0 + + + false + + Data + Automatic Ascendant + Default + Sum + No + No + Sum + NVD3Serie + true + Point + ScatterChart + Primary + Primary + Ascending + Y + 067548ce-bc83-48b8-8212-aa359bd12f9b + true + true + + + 5376bdc7-1376-4f65-95ea-c61ed8f901ec + [Order Details].Discount*[Order Details].Quantity*[Order Details].UnitPrice + Default + false + Master + 0 + Default + Default + N0 + + + false + + Data + Automatic Ascendant + Default + Sum + No + No + Sum + NVD3Serie + true + Point + ScatterChart + Primary + Primary + Ascending + Y + a63be915-3593-4377-8155-5ab3a78f45ba + true + true + + + [a5337be3-9b87-4ecf-a430-18f1f0d84b81] + + + a5337be3-9b87-4ecf-a430-18f1f0d84b81 + Products.CategoryID + Default + false + Master + Columns Displayed + 0 + Default + Default + N0 + c7e10051-823f-46cb-91a8-971381b5a6ce + + + false + + Row + Default + Count + No + No + Sum + None + true + Point + ScatterChart + Primary + Primary + Ascending + Y + f1ca9f05-b6a3-46da-b753-68cb4056cb66 + true + true + Prompt + Default + Default + Default + N0 + + c7e10051-823f-46cb-91a8-971381b5a6ce + true + ValueOnly + + Quantity + Amount + Discount + + 0001-01-01T00:00:00 + 0001-01-01T00:00:00 + 0001-01-01T00:00:00 + 0001-01-01T00:00:00 + + + + + + + d5aee57b-f4db-4889-9039-82f681e9ed1b + Products + false + false + TABLE + false + false + + + b372adcc-127b-4044-98ba-12d9b94af34c + Products.Discontinued + Numeric + false + Products + Discontinued + 9 + Numeric0 + ShortDate + N0 + + false + + false + + + + 087ed2f1-b58b-4407-9291-8329ee5dbfe1 + Products.ProductName + Text + false + Products + Product Name + 2 + Numeric0 + ShortDate + + + false + + 12ce241a-1f80-4b69-a023-66df46152046 + + false + + + + fc5b4299-9a72-44b2-b0a5-8bfcc5e15ef9 + Products.QuantityPerUnit + Text + false + Products + Quantity Per Unit + 4 + Numeric0 + ShortDate + + + false + + false + + + + 75715efd-6f8a-48ba-8f8e-2297d956d184 + Products.ReorderLevel + Numeric + false + Products + Reorder Level + 8 + Numeric0 + ShortDate + N0 + + false + + false + + + + b58c7176-d8e6-4edd-9a6c-6444e5a04b3a + Products.UnitPrice + Numeric + false + Products + Unit Price + 5 + Numeric0 + ShortDate + N0 + + false + + false + + + + e603a329-4e4f-48c5-97e0-60c140f5de8a + Products.UnitsInStock + Numeric + false + Products + Units In Stock + 6 + Numeric0 + ShortDate + N0 + + false + + false + + + + 6fa87b3b-048f-4680-9516-35679cba84bf + Products.UnitsOnOrder + Numeric + false + Products + Units On Order + 7 + Numeric0 + ShortDate + N0 + + false + + false + + + + f1ca9f05-b6a3-46da-b753-68cb4056cb66 + Products.CategoryID + Numeric + false + Products + Category + 3 + Numeric0 + ShortDate + N0 + acc81a1e-6950-4e9f-9fbf-401ab53dbfd8 + false + + 087ed2f1-b58b-4407-9291-8329ee5dbfe1 + + false + + + + d0a693f9-e276-4e6d-9ac2-d4d031610430 + Products.ProductID + Numeric + false + Products + Product ID + 1 + Numeric0 + ShortDate + N0 + + + false + + + + + + 9a7c09ed-aea3-4ce2-8f9f-79dab152ab6d + [Order Details] + false + false + TABLE + false + false + + + f2cf72ab-afdc-4d0e-ba73-80c3d6f47eea + 100*[Order Details].Discount + Numeric + false + Order Details + Discount Rate + 5 + Numeric2 + ShortDate + N2 + + false + + false + + + + cb20a340-73d5-4e52-b7fc-59dab043c176 + [Order Details].Quantity + Numeric + false + Order Details + Quantity + 4 + Numeric0 + ShortDate + N0 + + false + + false + + + + 582298c9-607a-4b0b-bd5a-f29fd2750d66 + [Order Details].UnitPrice + Numeric + false + Order Details + Unit Price + 3 + Numeric2 + ShortDate + N2 + + false + + false + + + + 067548ce-bc83-48b8-8212-aa359bd12f9b + (1-Discount)*[Order Details].Quantity*[Order Details].UnitPrice + Numeric + false + Order Details + Amount + 6 + Numeric0 + ShortDate + N0 + + false + + false + + + + a63be915-3593-4377-8155-5ab3a78f45ba + [Order Details].Discount*[Order Details].Quantity*[Order Details].UnitPrice + Numeric + false + Order Details + Discount + 7 + Numeric0 + ShortDate + N0 + + false + + false + + + + 10f4d9b4-4bc3-4564-b982-db23ba7655a1 + [Order Details].OrderID + Numeric + false + Order Details + Order ID + 1 + Numeric0 + ShortDate + N0 + + + false + + + + 5b9cbdc8-230b-4c0d-b9df-81e5ebbf7da7 + [Order Details].ProductID + Numeric + false + Order Details + Product ID + 2 + Numeric0 + ShortDate + N0 + + + false + + + + + + + + + + @using System.Text +@functions { + //During execution, this script will be copied at the end of all task scripts... + public string MyConvertString(string input) { + return input.Replace("__","_"); + } +} + + + + 37a7cecf-0719-4b51-a760-b79835820841 + view + + + 5ca576ba-0ee8-48f2-85db-d4ccb261856c + Model HTML View + + d4b58a38-6b84-40e8-8c93-d69610558bf4 + Model HTML + + false + false + + + data_tables_enabled + False + + + + + + chart + display:inline; float:left; + + + data_table + display:inline; float:left; + + + nvd3_chart + height:300px; width:400px; page-break-inside:avoid; + + + 1 + + + + + + + Report + + false + false + + + force_execution + True + + + message_button + True + + + + + 0 + + + + + + 37a7cecf-0719-4b51-a760-b79835820841 + + \ No newline at end of file diff --git a/Repository/Sources/Northwind.scfx b/Repository/Sources/Northwind.scfx index 3c7f9a9c..0264ec52 100644 --- a/Repository/Sources/Northwind.scfx +++ b/Repository/Sources/Northwind.scfx @@ -21,7 +21,7 @@ 442f6511-a22b-47ec-a33e-e1c7344adb68 false false - G + N0 d false