FAQ/izenda-and-udfs.md
... ...
@@ -1,8 +1,16 @@
1 1
#Izenda and UDFs (User Defined Functions)
2 2
3
-## How do I utilize a complex UDF from my database within Izenda?
3
+[[_TOC_]]
4 4
5
-**1) Create the UDF in the database that performs your calculation:**
5
+##Question
6
+
7
+How do I utilize a complex UDF from my database within Izenda?
8
+
9
+##Answer
10
+
11
+Here is a step-by-step tutorial on how to use UDFs from your database in Izenda.
12
+
13
+**1)** Create the UDF in the database that performs your calculation:
6 14
7 15
**EXAMPLE UDF:**
8 16
... ...
@@ -27,7 +35,7 @@ begin
27 35
end;
28 36
```
29 37
30
-**2) Add this function to Izenda:**
38
+**2)** Add this function to your [[CustomAdHocConfig|http://wiki.izenda.us/Integration/Tutorials/Customizing-Izenda-Settings]]:
31 39
``AdHocSettings.ExtendedFunctions = new string[] { "[dbo].[SafeDivide]" };``
32 40
33 41
**3a) You can now choose this function in the 'Fields' tab function drop down for any column. (Functions, as the one above, with more than one input parameter cannot be chosen for a single column in the functions drop-down and must be implemented as an expression.)**