Concatenate: Difference between revisions

From Planfix
Jump to: navigation, search
No edit summary
No edit summary
 
Line 25: Line 25:
*'''<nowiki>{{Task.Services provided.</nowiki><span style="color:green;">!concatenate</span>.Supervisor}}''' — all values of the "Supervisor" field will be displayed in one line, separated by a comma without a space:
*'''<nowiki>{{Task.Services provided.</nowiki><span style="color:green;">!concatenate</span>.Supervisor}}''' — all values of the "Supervisor" field will be displayed in one line, separated by a comma without a space:


  Smith,Carter,Anderson
  Smith, Carter, Anderson





Latest revision as of 10:51, 28 March 2024

Set of directory values is a multiplying field when used in document templates.

In some cases, it is necessary to display a set of directory values in one row in documents, for example, a list of services provided. For this, use !concatenate in the document template variable:

  • {{Task.Services provided.!concatenate}} — all variable values from the first column of the directory are displayed in the document, separated by a comma without spaces (this is the default setting):
dent repair,filler application,painting


You can specify your delimiter, for example, a comma with a space. To do this, specify the additional attribute «::delimiter="delimiter_value"»:

  • {{Task.Services provided.!concatenate::delimiter=", "}} — all variable values from the first column of the directory will be displayed in one line, separated by a comma with a space:
dent repair, filler application, painting


The same rules apply to internal fields of the directory entry:

  • {{Task.Services provided.!concatenate.Supervisor}} — all values of the "Supervisor" field will be displayed in one line, separated by a comma without a space:
Smith, Carter, Anderson


You can also specify an additional attribute - "delimiter":

  • {{Task.Services provided.!concatenate.Supervisor::delimiter=", "}} — all values of the "Supervisor" field will be displayed in one line, separated by a comma with a space:
 Smith, Carter, Anderson


Go To