Column
Optional XML element with column options
| XML | |
|---|---|
convert to img tag in system UI
Attributes
Required
name, required
Optional
lg- (true/false) show/hide column on desktopsm- (true/false) show/hide column on mobileex- (true/false) show/hide column on export for example exceltitletitle for name exampletitle="{invoiceFullNR} {printoutName}"textURL/item/{anycolumnname}/{anycolumnname}?app_name=[[app_name]]&columnx1={columnx1},- server side variables
[[variable]]are available see server side variables - IMPORTANT server side variables will be replaced with empty string if not found
- Warning
&need to be replaced with&
- server side variables
label- label- server side variables
[[variable]]are available see server side variables - IMPORTANT server side variables will be replaced with empty string if not found
- server side variables
requiredtrue/falsetypesee sectionColumn typeaclcolumn permissioncsscustom class - see xd.css https://kotynia.github.io/xd-css/widthcolumn widthoptsuiinline- render inline component in rowuianonymize- when role uianonymize assigned sensitive information are removeduisum- total in table footerglobal-on- Information: column configuration was inherited from global configurationglobal.xmllg-auto- lg set to false when column is emptylg-true,lg-false- override desktop visibility, can be setup through Business logic insrssetupsm-true,sm-false- override mobile visibility, can be setup through Business logic insrssetup
Column type
Autodiscover
List of autodiscover types from database schema
tguidtdate- date . On the client, the UTC offset is applied to convert it to local timetbool- Booleantinteger- Integer, example 2tdecimal- Decimal, example 2.02tstring
UI types
tdatetime- date with time DD/MM/YYYY HH:mm . On the client, the UTC offset is applied to convert it to local timetinput_number- input numbertinput_text- texttinput_bool- checkbox numbertlink- link- text value = url
- if
panulltext value not link
tlink_frame- link , when ctrl key then modal- text value = url
- if
panulltext value not link
tlink_modal- tlink_frame with default modaltlink_tag- build tag link with color based on texttlink_icon- internal link with icon font awesome 4 icon- text value = url
- column.css - font awesome 4 class https://fontawesome.com/v4.7.0/icons/ example
fa fa-bar-chart
tlink_download- dedicated for files downloadtlink_icon_download_pdf- dedicated for download files pdf.- The downloaded file name can be set by column.title property.
- only work for icons! Make sure you passed it in column.css
- example use:
<itm model="column" name="action" label="Drukuj" type="tlink_icon_download_pdf" title="{invoiceFullNR} {printoutName}" css="fa fa-print">{action}</itm>
tlink_post- send javascript object to urlturl_blank- external link in new windowtcolor_progressturl_progresstformat_bytes- Human readable size input bytestformat_k- Human readable size for large numbers, REturn 10K, 20Mttag- build tag list with color based on texttstring_multi-- multiline Text with Line breaks similar to HTMLpretagtimg- imagetmailemail separated by space
server side transformation
tcolor, render hexadecimal color code based on texttbase64- server side base64 datastore image render return bytes- support : "jpg", "png", "jpeg", "apng", "webp", "gif" with optimization, optional w,h,o - width,height,option, default w=400
- example item
00000000-0000-0000-0000-000000000000.png?w=400
tbarcode- server side barcode returns bytes , can usewidthattribute andopts="label"to display labeltqrcode- server side qrcode returns bytestmarkdown, renders markdown to htmltjson, renders xml to json s
Special column names
pa_backgroundHexadecimal color for backgroundpa_colorHexadecimal color for text
Examples
tlink tlink_modal tlink_frame,tlink_post
All link types require a URL IN text , in URL You can use:
- row data, for example
{planid}. - server side variables
[[variable]]are available see server side variables - client side parameters are available
{parameter}, which will be replaced with (in order of priority):- client side parameters passed to the srs
- query string parameters
- Warning
&need to be replaced with&
tjson Examples
<Array force array output for single item (if not provided will return object)
Example 1
IN
| XML | |
|---|---|
OUT
- force array output
<Array
| JSON | |
|---|---|
IN
- Warning json will be different for single itm node
{ "diff": { "itm": {} } }to avoid this prefix root with Array text
| XML | |
|---|---|
OUT
| JSON | |
|---|---|
timg images
Important notice ampersand (&) must be replace with & in attributes or you can use cdata section
turl_blank external linking
| XML | |
|---|---|
tstring_multi Text with Line breaks similar to HTML pre tag
SQL Server Example:
| SQL | |
|---|---|
pa_background color for background
Used with 'var(--xd-green1)'
| XML | |
|---|---|
Used with hex value (e.g. '#112233') or column name from query (e.g.column_hex_example)