API/CodeSamples/ExtendedFunctions.md
... ...
@@ -24,7 +24,7 @@ public class CustomAdHocConfig : Izenda.AdHoc.DatabaseAdHocConfig
24 24
//Creates a connection to Microsoft SQL Server
25 25
AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE";
26 26
Izenda.AdHoc.AdHocSettings.AdHocConfig = new CustomAdHocConfig();
27
- AdHocSettings.ExtendedFunctions = new string[] { "[dbo].[SafeDivide]" };
27
+ AdHocSettings.ExtendedFunctions = new string[] { "[dbo].[SafeDivide]", "LEFT", "SUBSTRING" };
28 28
HttpContext.Current.Session["ReportingInitialized"] = true;
29 29
}
30 30
}
... ...
@@ -45,7 +45,7 @@ Public Class CustomAdHocConfig
45 45
AdHocSettings.LicenseKey = "INSERT_LICENSE_KEY_HERE"
46 46
AdHocSettings.SqlServerConnectionString = "INSERT_CONNECTION_STRING_HERE"
47 47
Izenda.AdHoc.AdHocSettings.AdHocConfig = New CustomAdHocConfig()
48
- AdHocSettings.ExtendedFunctions = New String() { "[dbo].[SafeDivide]" }
48
+ AdHocSettings.ExtendedFunctions = New String() { "[dbo].[SafeDivide]", "LEFT", "SUBSTRING" }
49 49
HttpContext.Current.Session("ReportingInitialized") = True
50 50
End Sub
51 51
End Class