FAQ/Questions/Using-Stored-Procedures-In-Izenda-6.md
... ...
@@ -38,45 +38,11 @@ GO
38 38
39 39
##Making SPs visible in Izenda Reports
40 40
41
-In order to utilize SPs, we will need to setup database mode first in Global.asax.
41
+You can use SPs in either DatabaseAdHocConfig mode or FileSystemAdHocConfig mode, as long as the SP exists in your database.
42 42
43
-###MVC applications
43
+When using SPs, use the [[VisibleDataSources|/API/CodeSamples/VisibleDataSources]]] setting to contain the all the SPs, tables, and views that should be available as DataSources. Each of the strings in this list must exactly mirror the name of the SP, table, or view as it appears in your data source.
44 44
45
-```csharp
46
-void Session_Start(object sender, EventArgs e)
47
-{
48
- AdHocSettings.AdHocConfig = new CustomAdHocConfig();
49
-}
50
-[Serializable]
51
-public class CustomAdHocConfig : DatabaseAdHocConfig
52
-{
53
- public override void ConfigureSettings()
54
- {
55
- AdHocSettings.VisibleTables = new string[] {"GetContact", "DummyTable"};
56
- }
57
-}
58
-```
59
-
60
-###Standard method
61
-
62
-```csharp
63
-[Serializable]
64
-public class CustomAdHocConfig : DatabaseAdHocConfig
65
-{
66
- public static void InitializeReporting()
67
- {
68
- AdHocSettings.AdHocConfig = new CustomAdHocConfig();
69
- }
70
- public override void ConfigureSettings()
71
- {
72
- AdHocSettings.VisibleTables = new string[] {"GetContact", "DummyTable"};
73
- }
74
-}
75
-```
76
-
77
-When using SPs, use the [[VisibleTables|/API/CodeSamples/VisibleTables]] setting to contain the all the SPs, tables, and views that should be available as DataSources. Each of the strings in this list must exactly mirror the name of the SP, table, or view as it appears in your data source.
78
-
79
-**Caveat:** when the VisibleTables property is empty, all tables are visible by default, while all SP are hidden. If VisibleTables contains any names, then all tables not included in VisibleTables will become hidden. To use them, they must also be included in VisibleTables to be used together with SPs. In this code example, the table "DummyTable" is added to VisibleTables along with our SP to make it visible.
45
+**Caveat:** when the VisibleDaataSources property is empty, all tables are visible by default, while all SP are hidden. If VisibleDaataSources contains any names, then all tables not included in VisibleDaataSources will become hidden. To use them, they must also be included in VisibleDaataSources to be used together with SPs. In this code example, the table "DummyTable" is added to VisibleDaataSources along with our SP to make it visible and denote the difference in naming between tables and SPs.
80 46
81 47
##Adding code for filtering the Equals(Select) drop-down.
82 48