Skip to content

Commit dbcbedd

Browse files
docs: add json-based example for the extending expressions article (#1819)
1 parent b81b75d commit dbcbedd

File tree

1 file changed

+13
-3
lines changed
  • designing-reports/connecting-to-data/expressions/extending-expressions

1 file changed

+13
-3
lines changed

designing-reports/connecting-to-data/expressions/extending-expressions/overview.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ previous_url: /expressions-extending-expressions, /designing-reports/connecting-
1313

1414
Expressions can easily be extended by providing user functions written in any .NET language. This is very useful in addition to the built-in functions, providing more complex domain-specific calculations or uniform calculations because it speeds up the processing and boosts the performance. Furthermore, you can add custom aggregate functions to apply domain-specific logic while accumulating values.
1515

16-
In order to expose your custom functions, so they can be utilized by the Reporting engine, you have to add a reference to the assembly they are defined in. The reference is added under the AssemblyReferences configuration section in the application's configuration file.
16+
In order to expose your custom functions, so they can be utilized by the Reporting engine, you have to add a reference to the assembly they are defined in. This can be done through the [assemblyReferences element]({%slug telerikreporting/using-reports-in-applications/export-and-configure/configure-the-report-engine/assemblyreferences-elementAssemblyReferences%}) in the application's configuration file.
1717

1818
````XML
1919
<configuration>
@@ -26,12 +26,22 @@ In order to expose your custom functions, so they can be utilized by the Reporti
2626
</configSections>
2727
2828
<Telerik.Reporting>
29-
<AssemblyReferences>
29+
<assemblyReferences>
3030
<add name="MyCustomAssembly" version="1.0.0.0" />
31-
</AssemblyReferences>
31+
</assemblyReferences>
3232
</Telerik.Reporting>
3333
</configuration>
3434
````
35+
````JSON
36+
"telerikReporting": {
37+
"assemblyReferences": [
38+
{
39+
"name": "MyCustomAssembly",
40+
"version": "1.0.0.0"
41+
}
42+
]
43+
}
44+
````
3545

3646
## See Also
3747

0 commit comments

Comments
 (0)