update
All checks were successful
Deploy Static Site / deploy (push) Successful in 6m6s

This commit is contained in:
2025-05-29 16:42:45 +04:00
parent e217f89702
commit 00717a92fb
2681 changed files with 173810 additions and 0 deletions

View File

@ -0,0 +1,285 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Special functions of template syntax</title>
<meta name="generator" content="Help+Manual" />
<meta name="keywords" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="The article describes the rules of using additional functions of template syntax:" />
<meta name="picture" content="" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Full documentation for BRIX365 platform. Low-code developer guide. User guide. Admin guide. Developer guide." />
<meta property="og:url" content="https://brix365.com/en/help" />
<meta property="og:image" content="" />
<link rel="icon" href="favicon.png" type="image/png" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="./jquery-ui.min.css" />
<link rel="stylesheet" href="default.css" />
<link rel="stylesheet" href="./search-yandex.css" />
<link rel="stylesheet" href="./article.css" />
<link rel="stylesheet" href="./glossary.css" />
<link rel="stylesheet" href="./theme.css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="helpman_settings.js"></script>
<script type="text/javascript" src="helpman_topicinit.js"></script>
<script type="text/javascript" src="highlight.js"></script>
<script type="text/javascript">
$(document).ready(function(){highlight();});
</script>
</head>
<body>
<script>!function(e,t,c,n,r,a,m){e.ym=e.ym||function(){(e.ym.a=e.ym.a||[]).push(arguments)},e.ym.l=1*new Date;for(var s=0;s<document.scripts.length;s++)if(document.scripts[s].src===n)return;a=t.createElement(c),m=t.getElementsByTagName(c)[0],a.async=1,a.src=n,m.parentNode.insertBefore(a,m)}(window,document,"script","https://mc.yandex.ru/metrika/tag.js"),ym(83179930,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:!0})</script><noscript><div><img alt=""src=https://mc.yandex.ru/watch/83179930 style=position:absolute;left:-9999px></div></noscript>
<header class="header elma-365">
<div class="container">
<a class="header__logo" href="https://brix365.com/en/help">
<img src="./logo-en.svg" alt="header logo">
</a>
<!-- <div class="hero__search-form" id="search-panel">
<form class="search-form" onsubmit="ym(83180416,'reachGoal','poisk')">
<label class="search-form__label">
<span id="reset-search" class="search__icon"></span>
<input class="search-form__input" type="text">
</label>
<input class="search-form__submit" type="submit" value="Submit">
</form>
</div> -->
<div class="hero__search-form" id="search-panel"> <form class="search-form"> <label class="search-form__label"> <span id="reset-search" class="search__icon"></span> <input class="search-form__input" type="text"> </label> <input class="search-form__submit" type="submit" value="Submit"> </form> </div>
<div class="hero__search">
<a href="#" id="search-icon" class="hero__search-icon">
<img src="search-icon-white.svg" alt="search string">
</a>
<a href="#" id="side-menu-icon" class="hero__side-icon">
<img src="side_menu.svg" alt="side menu">
</a>
</div>
<div class="header__navi">
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a class="project-link" href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://brix365.com/en/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li><li><a class="project-link" href="https://brix365.com/en/help/business_solutions/-elma365-store.html">Business Solutions</a></li></ul></span></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li><li><a href="https://tssdk.brix365.com/" target="_blank">SDK</a></li></ul>
</div>
</div>
</header>
<main class="main container">
<aside class="sidebar" id="sidebar">
<div class="sidebar__header">
<a class="header__logo" href="https://brix365.com/en/help">
<img src="./logo-light-en.svg">
</a>
<span class="sidebar__close elma-365-close" id="close"></span>
</div>
<div class="sidebar__wrapper" id="side-menu">
</div>
</aside>
<article class="article" id="article">
<div class="article-inner">
<div class="content">
<header class="article__header">
<div class="article__bread" style="display:flex; gap:10px;">
<span id="subcategory" class="search-res__item-category search-res__item-category_subcategory subcategory article__badge"></span>
<div class="topic__breadcrumbs">
<p>Business process designer &gt; <a href="360026936731.html">Document templates</a> / Special functions of template syntax</p>
</div>
</div>
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">Special functions of template syntax</span></h1>
</div>
</header>
<section class="article__content">
<div class="scroll-top-inner">
<a href="#h1-article" class="scroll-top"></a>
</div>
<!-- Placeholder for topic body. -->
<p class="p_Normal">The article describes the rules of using additional functions of <a href="360026936731.html" class="topiclink">template syntax</a>:</p>
<ul style="list-style-type:disc">
<li class="p_Normal"><a href="another-template-syntax-functions.html#barcode" class="topiclink">Barcode</a> to display the contents of a variable in a document as a barcode.</li><li class="p_Normal"><a href="another-template-syntax-functions.html#job-position" class="topiclink">JobPosition</a> to add the user's position.</li><li class="p_Normal"><a href="another-template-syntax-functions.html#pasteimage" class="topiclink">PasteImage</a> to insert an image in place of the variable.</li><li class="p_Normal"><a href="another-template-syntax-functions.html#hyperlink" class="topiclink">HYPERLINK</a> to convert the table content into a hyperlink.</li><li class="p_Normal"><a href="another-template-syntax-functions.html#exttext" class="topiclink">ExtText</a> to create a custom function for advanced features of working with the document template.</li></ul>
<h2 class="p_Heading2"><a id="barcode" class="hmanchor"></a><span class="f_Heading2">Barcode function</span></h2>
<p style="line-height: 1.20; margin: 14px 0 0 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">To encode a </span><span style="font-size: 13px; font-family: Inter; font-weight: bold; color: #394149;">String</span><span style="font-size: 13px; font-family: Inter; color: #394149;"> type field in an app and add it to a document as a barcode, use the </span><code><b>Barcode</b></code><span style="font-size: 13px; font-family: Inter; color: #394149;"> function. For instance, you can use it to generate a barcode for a contracts registration number or another unique number assigned to a document. Later you can use this barcode to match the hard copy of a document with its digital version. </span></p>
<p style="line-height: 1.20; margin: 14px 0 0 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">You can use barcode scanning software in BRIX if you configure an appropriate integration module. Read more about it in <a href="360024498352.html" class="topiclink">Standard modules</a> and <a href="https://api.brix365.com/en/public-api/guides/IntroWebAPI/" target="_blank" class="weblink">Introduction to Web API</a>.</span></p>
<p style="line-height: 1.20; margin: 14px 0 0 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">The system allows you to generate barcodes for </span><span style="font-size: 13px; font-family: Inter; font-weight: bold; color: #394149;">Word</span><span style="font-size: 13px; font-family: Inter; color: #394149;"> and </span><span style="font-size: 13px; font-family: Inter; font-weight: bold; color: #394149;">Excel</span><span style="font-size: 13px; font-family: Inter; color: #394149;"> files.</span></p>
<p style="line-height: 1.20; margin: 14px 0 0 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">Syntax: </span><code><b>GenerateBarcode(&lt;text: srting:1&gt;, &lt;format: code format:2&gt;, &lt;height of the generaed barcode in pixels&gt;)</b></code><span style="font-size: 13px; font-family: Inter; color: #394149;">. Specifying the height is optional.</span></p>
<ul style="list-style-type:disc">
<li style="line-height: 1.20; margin-top: 7px; margin-right: 0; margin-bottom: 16px;"><span style="font-family: Inter; font-weight: bold;">[1]</span><span style="font-family: Inter;">: the content of the string depends on the format specified in the second parameter.</span></li><li style="line-height: 1.20; margin-top: 7px; margin-right: 0; margin-bottom: 16px;"><span style="font-family: Inter; font-weight: bold;">[2]</span><span style="font-family: Inter;">: available barcode formats and requirements to the string:</span></li></ul>
<ul style="list-style-type:disc"><ul style="list-style-type:circle">
<li class="p_Normal" style="line-height: 1.20;"><span style="font-weight: bold;">QR Code</span>:<span style="font-weight: bold;"> </span>Any string. Resolution up to 300 DPI is supported.</li><li class="p_Normal"><span style="font-weight: bold;">EAN-8</span>: A string consisting either of 7 digits or of 8 digits (seven digits and a check digit).</li><li class="p_Normal"><span style="font-weight: bold;">EAN-13</span>: A string consisting either of 12 digits or of 13 digits (twelve digits and a check digit).<br />
&nbsp;<br />
You can also add <span style="font-weight: bold;">EAN</span> format without specifying the type. In this case, the type of the generated barcode will depend on the number of digits in the sent string.</li></ul></li></ul>
<ul style="list-style-type:disc">
<li style="line-height: 1.20; margin-top: 7px; margin-right: 0; margin-bottom: 16px;"><span style="font-family: Inter; font-weight: bold;">[3]</span><span style="font-family: Inter;">: barcode height in pixels is an optional parameter. For correct recognition, the height is specified based on the number of characters used.</span></li></ul>
<p style="line-height: 1.20; margin: 14px 0 0 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">If the template uses the same string to generate a QR code twice, but specifies a different size, a QR code of the same size will be generated in both cases.</span></p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало&nbsp;внимание</span></p>
<p style="line-height: 1.20; margin: 7px 0 7px 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">If no checksum was specified when using </span><span style="font-size: 13px; font-family: Inter; font-weight: bold; color: #394149;">EAN</span><span style="font-size: 13px; font-family: Inter; color: #394149;"> formats, it will be added automatically. For correct operation, the barcode scanner must be configured to work with these formats.</span></p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец&nbsp;внимание</span></p>
<p style="line-height: 1.20; margin: 7px 0 7px 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">It is recommended to use the </span><span style="font-size: 13px; font-family: Inter; font-weight: bold; color: #394149;">QR Code</span><span style="font-size: 13px; font-family: Inter; color: #394149;"> format, as it can be applied to a greater variety of data, while the </span><span style="font-size: 13px; font-family: Inter; font-weight: bold; color: #394149;">EAN</span><span style="font-size: 13px; font-family: Inter; color: #394149;"> formats are limited.</span></p>
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">For example, there is a variable </span><code><b>$numberstring</b></code><span style="font-size: 13px; font-family: Inter; color: #394149;">, and its value is </span><span style="font-size: 13px; font-family: Inter; font-weight: bold; color: #394149;">5901234123457</span><span style="font-size: 13px; font-family: Inter; color: #394149;">. From this string, a QR code or an EAN-13 can be generated.</span></p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало&nbsp;примера</span></p>
<p style="line-height: 1.20; margin: 14px 0 0 0;">Examples</p>
<ol style="list-style-type:decimal">
<li value="1" class="p_Normal"><code><b>{GenerateBarcode({$numberstring}, "QR Code", "125" )}</b></code>.</li><li value="2" class="p_Normal"><code><b>{GenerateBarcode({$numberstring}, "EAN-13", "125" )}</b></code>.</li></ol>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец&nbsp;примера</span></p>
<p style="line-height: 1.20; margin: 14px 0 0 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">For an EAN-8, the string can only include 8 digits: </span><code><b>$numberstring = "59012341"</b></code><span style="font-size: 13px; font-family: Inter; color: #394149;">.</span></p>
<h2 class="p_Heading2"><a id="job-position" class="hmanchor"></a><span class="f_Heading2">JobPosition() function</span></h2>
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">This function is used to get a users job position.</span></p>
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">Syntax: </span><code><b>JobPosition(&lt;param1: user&gt;, &lt;format:string&gt;)</b></code></p>
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">You can use the </span><code><b>&laquo;first&raquo;</b></code><span style="font-size: 13px; font-family: Inter; color: #394149;"> variable to get only the first job position or the </span><code><b>"all"</b></code><span style="font-size: 13px; font-family: Inter; color: #394149;"> variable to get all job positions of a user.</span></p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало&nbsp;примера</span></p>
<p style="line-height: 1.20; background: #f7f7f7; margin: 7px 0 7px 0;"><span style="font-size: 13px; font-family: Inter; color: #394149;">Example</span></p>
<p class="p_Normal"><code><b>{JobPosition({$__createdBy},"all")}</b></code>&gt;<span style="font-size: 13px; font-family: Inter; color: #394149;"> The function will pass all job positions of the user specified as the app items </span><span style="font-size: 13px; font-family: Inter; font-weight: bold; color: #394149;">Author</span><span style="font-size: 13px; font-family: Inter; color: #394149;">.</span></p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец&nbsp;примера</span></p>
<p class="p_Normal">&nbsp;</p>
<h2 class="p_Heading2"><a id="pasteimage" class="hmanchor"></a><span class="f_Heading2">PasteImage function</span></h2>
<p class="p_Normal">To paste an image from a context variable of the <a href="360009707032.html#image" class="topiclink">Image</a> or <a href="360009707032.html#file_type" class="topiclink">Files</a> type &nbsp;into a document template, use the <code><b>PasteImage</b></code> function.</p>
<p class="p_Normal">Syntax: <code><b>PasteImage(&lt;param1: image/file&gt;, &lt;width in pixels&gt;, &lt;height in pixels&gt;, &lt;crop instead of compression: true/false&gt;)</b></code></p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">Начало&nbsp;примера</span></p>
<p class="p_Normal">Examples</p>
<ol style="list-style-type:decimal">
<li value="1" class="p_Normal"><code><b>{PasteImage({$image})}</b></code>. The image will be inserted with the original width and height values into the variable of the <span style="font-weight: bold;">Image</span> type.</li><li value="2" class="p_Normal"><code><b>{PasteImage({$file.__id})}</b></code>. The image will be inserted with the original width and height values into the variable of the <span style="font-weight: bold;">Files</span> type.</li><li value="3" class="p_Normal"><code><b>{PasteImage({$image}, 200)}</b></code>. The image will be displayed with a width of 200 pixels in the variable of the <span style="font-weight: bold;">Image</span> type. The height value will change, the original proportions will be preserved.</li><li value="4" class="p_Normal"><code><b>{PasteImage({$file.__id}, 200, 400)}</b></code>. In the <span style="font-weight: bold;">Files</span> type field, the function scales the image to a strictly specified size.</li><li value="5" class="p_Normal"><code><b>{PasteImage({$image}, auto, 400)}</b></code>. The image from the variable will be displayed with a height of 400 pixels. The width value will be scaled, the original proportions will be preserved.</li><li value="6" class="p_Normal"><code><b>{PasteImage({$file.__id}, 200, 400, true)}</b></code>. In the <span style="font-weight: bold;">Files</span> type field, the function will crop the image to the specified size without taking into account the original proportions.</li></ol>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">Конец&nbsp;примера</span></p>
<h2 class="p_Heading2"><a id="hyperlink" class="hmanchor"></a><span class="f_Heading2">HYPERLINK function for tables</span></h2>
<p style="line-height: 1.28; margin: 0 0 11px 0;">When generating a template in a <span style="font-weight: bold;">.xls</span> and <span style="font-weight: bold;">.xlsx</span> file, you can use the <code><b>HYPERLINK</b></code><span style="font-size: 13px;"> </span>function. This is a standard Excel function that allows you to convert a given value into a hyperlink.</p>
<p style="line-height: 1.28; margin: 0 0 11px 0;">You can use variables of type <a href="360009707032.html" class="topiclink">String</a> from the app context as arguments, as well as set values manually. For the function to work correctly, the full URL of the link is specified. &nbsp;</p>
<p class="p_Normal">Syntax: <code><b>HYPERLINK("{$param1: string}" or "&lt;complete url adress&gt;";"{$param2: string}" or "&lt;hyperlink value&gt;")</b></code>.</p>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало&nbsp;примера</span></p>
<p class="p_Normal">Examples</p>
<ol style="list-style-type:decimal">
<li value="1" class="p_Normal"><code><b>=HYPERLINK("{$site}";"See the official site")</b></code>. The site address is specified as a string in the app item, the hyperlink value is set manually.</li><li value="2" class="p_Normal"><code><b>=HYPERLINK("https://elma365.com/en/";"{$__name}")</b></code>. The site address is specified manually, the hyperlink value is formed from a field in the app item. </li></ol>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец&nbsp;примера</span></p>
<h2 class="p_Heading2"><a id="exttext" class="hmanchor"></a><span class="f_Heading2">ExtText function</span></h2>
<p class="p_Normal">In case system functions are not enough to customize a template, you can create a custom <code><b>ExtText</b></code> function. The function allows you to call <a href="extention-api.html" class="topiclink">API methods</a> described in custom modules and apply them to the generated template.</p>
<p class="p_Normal">Syntax: <code><b>{ExtText("module id", "method address", {$additional parameter})}</b></code>: </p>
<ul style="list-style-type:disc">
<li class="p_Normal"><span style="font-weight: bold;">Module id</span>. Characters from the module URL coming after <span style="font-weight: bold;">/ext_</span>. For example, if the module URL is <span style="font-weight: bold;">mycompany.brix365.com/admin/extensions/ext_12ab-1212</span>, then <span style="font-weight: bold;">12ab-1212 </span>should be inserted into the function.</li><li class="p_Normal"><span style="font-weight: bold;">Method address</span>. The value of the <span style="font-weight: bold;">Address</span> field from the table located on the <span style="font-weight: bold;">API Methods</span> tab in the <a href="extention-api.html" class="topiclink">settings of the module</a>. </li><li class="p_Normal"><span style="font-weight: bold;">Additional parameters</span>. An optional parameter that is passed to the specified method, for example, an app property. In the request body the additional parameters are displayed as <span style="font-weight: bold;">p1</span>, <span style="font-weight: bold;">p2</span>, etc. The are passed in the <code><b>ExtText</b></code> function separated with a comma after the mandatory parameters. Please note, the values will be assigned to the parameters in the order in which they are declared in the method request body.</li></ul>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">Начало&nbsp;примера</span></p>
<p class="p_Normal">Example</p>
<p class="p_Normal">You can apply the <code><b>ExtText</b></code> function in naming app items. To do that:</p>
<ol style="list-style-type:decimal">
<li value="1" class="p_Normal">Create a module and set up an API method that will be used for generating app item names.</li><li value="2" class="p_Normal">Create a <a href="360007679591.html#name_template" class="topiclink">name template</a> by using the <code><b>ExtText</b></code> function.</li></ol>
<p class="p_Normal" style="margin: 0 0 0 34px;">For example:</p>
<p style="line-height: 1.28; margin: 0 0 11px 34px;"><code><b>{ExtText("4c34-822c", "name", "Example text", {$_index})}</b></code></p>
<ol style="list-style-type:decimal">
<li value="3" class="p_Normal">The function will trigger the method that will process the passed parameters. After the conditions specified in the method are executed, the result can be used as an app item name.</li></ol>
<p class="p_Normal"><a class="dropdown-toggle" style="font-style: normal; font-weight: normal; color: #000000; background-color: transparent; text-decoration: none;" href="javascript:HMToggle('toggle','TOGGLE0186A1')">Example of an API method script for creating app item names</a></p>
<div id="TOGGLE0186A1" class="dropdown-toggle-body" style="text-align: left; text-indent: 0; line-height: 1.0; page-break-inside: avoid; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="border:none; border-spacing:0;">
<tr>
<td style="vertical-align:top; padding:0; border:none"><p class="p_CodeExample" style="white-space: normal; page-break-inside: auto;"><span class="f_CodeExample">async function name(req: HttpApiRequest): Promise&lt;HttpResponse | void&gt; {</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; const resp = new HttpResponse();</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; let result: string = &quot;&quot;;</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; let bodystr: string = req!.body!.toString();</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; </span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; JSON.parse(bodystr, function (k, v) { // k and v - key and value</span><br />
<span class="f_CodeExample">&nbsp;</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; &nbsp; &nbsp; if (k != '') { // you can set your conditions</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result += &quot;_key&quot;+k</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result += &quot;_value&quot;+v</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; &nbsp; &nbsp; }</span><br />
<span class="f_CodeExample">&nbsp;</span><br />
<span class="f_CodeExample"> &nbsp; });</span><br />
<span class="f_CodeExample">&nbsp;</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; resp</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; &nbsp; &nbsp;.status(200)</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; &nbsp; &nbsp;.content(result)</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp; &nbsp; &nbsp;.set('Content-Type', 'text/html')</span><br />
<span class="f_CodeExample">&nbsp;</span><br />
<span class="f_CodeExample"> &nbsp; &nbsp;return resp</span><br />
<span class="f_CodeExample">}</span></p>
</td>
</tr>
</table>
</div>
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">Конец&nbsp;примера</span></p>
<p class="p_Normal"><a id="feature-flag" class="hmanchor"></a>When using complex custom functions, you can change their processing mode to speed up the generation of template documents. All variables and functions will be processed in parallel instead of sequentially one after another.</p>
<p class="p_Normal">For this purpose, you can enable the <code><b>enableConcurrencyTemplateMapper</b></code> flag in some system editions:</p>
<ul style="list-style-type:disc">
<li class="p_Normal">For<span style="font-weight: bold;"> </span>BRIX On-premises Enterprise in the <code><b>values-elma365.yaml</b></code> configuration file. For more details, see <a href="change-settings-enterprise.html#enable-feature-flag-enterpeise" class="topiclink">Modify BRIX Enterprise parameters</a>.</li></ul>
<ul style="list-style-type:disc">
<li class="p_Normal">For<span style="font-weight: bold;"> </span>BRIX On-Premises Standard in the <code><b>config-elma365.txt</b></code> configuration file. For more details, see <a href="change-elma365standard-parameters.html#enable-feature-flag-standard" class="topiclink">Modify BRIX Standard parameters</a>.</li></ul>
<p class="p_Normal">After enabling the flag, you can set the number of parallel processing threads using <a href="change-settings-enterprise.html" class="topiclink">additional parameters</a>.</p>
<div class="bottom-nav">
<a id="prev-link" class="topic__navi_prev" href="360027003711.html">
<span class="bottom-nav__arrow bottom-nav__arrow--prev"></span> <span
class="bottom-nav__link">360027003711.html</span>
</a>
<a id="next-link" class="topic__navi_next" href="360012267032.html">
<span class="bottom-nav__link">360012267032.html</span> <span
class="bottom-nav__arrow bottom-nav__arrow--next"></span>
</a>
</div>
<!-- добавляет на страницу строку блок Была ли статья полезной? -->
<div class="feedback" id="feedback"><div class="feedback-help"><span><b>Was this helpful?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx" style="display: none;">Thanks for your feedback!</div><div class="feedback__popup" id="feedback__popup_why" style="display: none;"><div class="feedback__popup-header">Please specify why:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Recommendations did not help me</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Article is hard to understand</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Didn`t answer my question</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Content does not match the topic</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Other</label></div><div class="feedback__popup" id="feedback__popup-other" style="display: none;"><div class="feedback__popup-header">How we can improve it?</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Submit"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg" class="small-img" alt="like"><spanclass="feedback-form__btn-group_yes-btn">Yes</spanclass="feedback-form__btn-group_yes-btn"></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg" class="small-img" alt="dislike"><spanclass="feedback-form__btn-group_no-btn">No</spanclass="feedback-form__btn-group_no-btn"></label></div><select name="category"><option disabled="">Please specify why</option><option value="bad_recommendation" selected="">Recommendations did not help me</option><option value="difficult_text">Article is hard to understand</option><option value="no_answer">Didn`t answer my question</option><option value="bad_header">Content does not match the topic</option><option value="other_reason">Other</option></select><input type="submit"></form></div><div class="found_typo"><p style="margin: 0px; margin-top: 16px !important;"><span><b>Found a typo?</b></span> Select it and press <i>Ctrl+Enter</i> to send us feedback</p></div></div>
</section>
</div>
<aside class="article__sidebar" style="display:none">
<input type="checkbox" />
<div class="article__arrow"></div>
<div class="table-of-contents elma365-right" id="toc2Content">
<h3 class="h3-toc">In this topic</h3>
<nav id="toc2"></nav>
</div>
</aside>
</div>
</article>
</main>
<footer class="footer">
<div class="footer-container">
<div class="footer-mobile">
<ul class="footer-mobile__list"><li><a href="https://brix365.com/en/" target="_blank">BRIX</a></li><li><a href="https://tssdk.brix365.com/en/latest/" target="_blank">SDK</a></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li></ul><ul class="footer-mobile__list"><li><a href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li></ul>
</div>
<div class="footer-wrap">
<div><span class="mobile-question-popup">Send feedback</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Ask a question</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Send"></div></form><div class="hidden fade-in question-success-xs">Sent</div></div>
<div class="footer-flex-b">
<span class="footer-copy">&copy; 2025 BRIX</span>
<ul class="footer-list">
<li class="footer-item">
<a href="#" class="arrow-top" style="display: block;"></a>
</li>
</ul>
</div>
</div>
</div>
</footer>
<iframe name="hmnavigation" style="display:none!important"></iframe>
<script src="./jquery-ui.js"></script>
<!--script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script-->
<script src="./jquery.tocify.min.js"></script>
<script src="./TypoReporter.min.js"></script>
<script src="./google-search.js"></script>
<script src="./main.js"></script>
<script type="text/javascript">
HMInitToggle('TOGGLE0186A1','hm.type','dropdown','hm.state','0');
</script>
</body>
</html>