> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/format-data-object-format-variable-report-item.md).

# Format Data Object (Format Variable) - Report Item

Redirect to the [Report Item Form Part article](/release-9/platform-documentation/form-node-parts/report-item-form-part.md) for context-specific information on using this part as a Report Item node in the LogicNets Assessment Framework.

Below is a similar article relating to the general use of format data object as a process step.

## Description

The *format data object* part is available in process nodes under the *Data Objects* dropdown menu. It allows you to format a particular data object and present it or process it using parameters related to the data object type. For example, if your data object is a date, this part allows you to format the way your application users see the date.

## Editor Fields

This part displays parameters options based on the type of data object you want to format.

### Data Source Type = Text

If the data source type you want to format is "text" the system displays the following options:

| Field Name        | Description/Use                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Type/Options                                                                      |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| Mode              | This field tells the system how to handle the report item: either to present it or to process it. Most commonly, users select "Present" to present the results of the formatting. However, it is possible for this node to act like a process node and transform an object variable (e.g. convert a date to a different format) and the result is stored in a new variable that can be used for further processing and/or presented at a later point in the report.         | <p>- Present<br>- Process</p>                                                     |
| Data source       | <p>This is the answer or text you asked the user for that you want to display in your report. It is the data object you identified; for example, if you asked your user for her first name, it would be <em>firstname</em>.<br>If you use the ellipsis (<strong>…</strong>) to choose Data source from the data model the system will complete additional details—such as <em>type</em>—automatically.</p>                                                                  | Data object                                                                       |
| Data source type  | This tells the system whether to show the value the user entered/selected or the caption assigned to their selection option in *Data source*. Note: If you select "Caption" but your item does not have an assigned caption the data item will not display.                                                                                                                                                                                                                 | <p>- Value<br>- Caption</p>                                                       |
| Caption           | <p>If your item does not contain a caption but you want to display one in your report you can enter it in this field.<br>When choosing the data source from the data model the caption is automatically populated with the question, but you can edit this field to include any alphanumeric text, HTML codes, and other variables from the context (the syntax is $(variable\_name)).</p>                                                                                  | Text                                                                              |
| Escape $(..)-text | <p>Uncheck this box if your data object includes $(..) variables that should NOT be encoded. For example:<br><code>mytext = "\<b>Hello\</b></code><br><code>$(mytext) will appear as Hello (off) or \<b>Hello\</b> (on)</code><br>If the data object contains several interpolations and only some of them need to be escaped, use the <em>$(html(mytext))</em> construction to turn off escaping for specific output.<br><code>$(html(mytext)) appears as Hello</code></p> | On \| Off                                                                         |
| Show caption      | With this field you tell the system to either show the caption you have for the item by selecting "Always", or to hide the caption if the user did not provide an answer to the question. To do this you use "When source has a value".                                                                                                                                                                                                                                     | <p>- When source has a value<br>- Always</p>                                      |
| Postfix           | You can opt to put information after your user's answer or leave it blank; for example, if you have asked in the question for a unit of measure you could put "mm" or "inches" after the user's answer in the report. This field will accept HTML and other variables in the $(variable\_name) format. Enter a space first in the postfix field to force a gap between the user's answer and the provided postfix.                                                          | Text                                                                              |
| Type              | This tells the system what type of data is provided with the data source. The system displays additional formatting options for some of the data sources; for example, if the data source is a collection the system provides options for displaying a list of items.                                                                                                                                                                                                       | <p>- text<br>- number<br>- collection<br>- date<br>- date\_time<br>- currency</p> |
| Character limit   | This tells the system how many characters to display.                                                                                                                                                                                                                                                                                                                                                                                                                       | Number                                                                            |

### Data Source Type = Number

If the data source type you want to format is "number" the system displays the following options:

| Field Name                                                      | Description/Use                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Type/Options                                                                      |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| Mode                                                            | This field tells the system how to handle the report item: either to present it or to process it. Most commonly, users select "Present" to present the results of the formatting. However, it is possible for this node to act like a process node and transform an object variable (e.g. convert a date to a different format) and the result is stored in a new variable that can be used for further processing and/or presented at a later point in the report.                                                                               | <p>- Present<br>- Process</p>                                                     |
| Data source                                                     | <p>This is the answer or text you asked the user for that you want to display in your report. It is the data object you identified; for example, if you asked your user for her first name, it would be <em>firstname</em>.<br>If you use the ellipsis (<strong>…</strong>) to choose Data source from the data model the system will complete additional details—such as <em>type</em>—automatically.</p>                                                                                                                                        | Data object                                                                       |
| Data source type                                                | This tells the system whether to show the value the user entered/selected or the caption assigned to their selection option in *Data source*. Note: If you select "Caption" but your item does not have an assigned caption the data item will not display.                                                                                                                                                                                                                                                                                       | <p>- Value<br>- Caption</p>                                                       |
| Caption                                                         | <p>If your item does not contain a caption but you want to display one in your report you can enter it in this field.<br>When choosing the data source from the data model the caption is automatically populated with the question, but you can edit this field to include any alphanumeric text, HTML codes, and other variables from the context (the syntax is $(variable\_name)).</p>                                                                                                                                                        | Text                                                                              |
| Escape $(..)-text                                               | <p>Uncheck this box if your data object includes $(..) variables that should NOT be encoded. For example:<br><code>mytext = "\<b>Hello\</b></code><br><code>$(mytext) will appear as Hello (off) or \<b>Hello\</b> (on)</code><br>If the data object contains several interpolations and only some of them need to be escaped, use the <em>$(html(mytext))</em> construction to turn off escaping for specific output.<br><code>$(html(mytext)) appears as Hello</code></p>                                                                       | On \| Off                                                                         |
| Show caption                                                    | With this field you tell the system to either show the caption you have for the item by selecting "Always", or to hide the caption if the user did not provide an answer to the question. To do this you use "When source has a value".                                                                                                                                                                                                                                                                                                           | <p>- When source has a value<br>- Always</p>                                      |
| Postfix                                                         | You can opt to put information after your user's answer or leave it blank; for example, if you have asked in the question for a unit of measure you could put "mm" or "inches" after the user's answer in the report. This field will accept HTML and other variables in the $(variable\_name) format. Enter a space first in the postfix field to force a gap between the user's answer and the provided postfix.                                                                                                                                | Text                                                                              |
| Type                                                            | This tells the system what type of data is provided with the data source. The system displays additional formatting options for some of the data sources; for example, if the data source is a currency the system provides options for displaying numbers with currency symbol etc.                                                                                                                                                                                                                                                              | <p>- text<br>- number<br>- collection<br>- date<br>- date\_time<br>- currency</p> |
| <p>Currency symbol<br>(available with type = currency only)</p> | Enter the text/symbol for currency. e.g. GBP or $                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Text                                                                              |
| <p>Symbol location<br>(available with type = currency only)</p> | <p>Choose the location for the symbol as follows:<br>\* system default: choosing this option accepts the defaults for round/truncate as specified in the SystemConfig package. Using this option allows the Designer to maintain and/or update consistent choices across the application<br>\* Prefix: show the symbol in front of the number, e.g. $10<br>\* Postfix: show the symbol after the number e.g. 10 €</p>                                                                                                                             | <p>- system default<br>- Prefix<br>- Postfix</p>                                  |
| Decimals                                                        | Enter the number of decimal places required in the answer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Number                                                                            |
| Round / truncate                                                | <p>Choose from the options available:<br>\* system default: choosing this option accepts the defaults for round/truncate as specified in the SystemConfig package. Using this option allows the Designer to maintain and/or update consistent choices across the application<br>\* - (no round/truncate)<br>\* Truncate: truncates the number to the specified number of decimals<br>\* Round: rounds the number to the specified number of decimals above<br>\* Round whole: rounds to the number of digits to the left of the decimal point</p> | <p>- system default<br>- (none)<br>- truncate<br>- round<br>- round whole</p>     |
| Decimal separator                                               | <p>Choose from the options availlable:<br>\* system default: choosing this option accepts the defaults for round/truncate as specified in the SystemConfig package. Using this option allows the Designer to maintain and/or update consistent choices across the application<br>\* . (dot): will show numbers as 123.456 for example<br>\* , (comma): will show numbers as 123,456 for example</p>                                                                                                                                               | <p>- system default<br>- dot<br>- comma</p>                                       |
| Thousands separator                                             | <p>Choose from the options availlable:<br>\* system default: choosing this option accepts the defaults for round/truncate as specified in the SystemConfig package. Using this option allows the Designer to maintain and/or update consistent choices across the application<br>\* . (dot): will show numbers as 123.456 for example<br>\* , (comma): will show numbers as 123,456 for example</p>                                                                                                                                               | <p>- system default<br>- dot<br>- comma</p>                                       |
| Negative Numbers                                                | <p>Choose from the options available:<br>\* system default: choosing this option accepts the defaults for negative numbers as specified in the SystemConfig package. Using this option allows the Designer to maintain and/or update consistent choices across the application<br>\* No: negative numbers will not be shown with parentheses, e.g. -123456<br>\* Yes: negative numbers will be shown with parentheses, e.g. (123456)</p>                                                                                                          | <p>- system default<br>- No<br>- Yes</p>                                          |
| Round whole                                                     | If you click this checkbox the system will round the user's answer to the nearest whole number.                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Checked \| Unchecked                                                              |

### Data Source Type = Collection

If the data source type you want to format is "collection" the system displays the following options:

| Field Name     | Description/Use                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Type/Options                                                                                                                         |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| List view      | This allows you to set the format options for displaying your list.                                                                                                                                                                                                                                                                                                                                                                                                                                                     | <p>- Comma<br>- \*-separator<br>- custom<br>- comma and<br>- bullets<br>- list<br>- quoted and comma separated<br>- no delimiter</p> |
| Key            | This field specifies the object within the collection you want to display in your report. As an example, if you have a collection with *user\_choice\[1].preference* and *user\_choice\[1].state* enter "state" in this field to show only that set of objects.                                                                                                                                                                                                                                                         | Text                                                                                                                                 |
| Value template | <p>You can use this field to display multiple items from a collection in your report. Each key or object has to be defined as $(object). Other text and HTML is also allowed in the field, but you should not include contextual variables that do not exist in the collection. Example: a value template of #$(preference) - $(state) would deliver<br>#1 – NY<br>#2 – CA<br>#3 – DC<br>It is also possible to include div classes and/or column HTML elements to create and style these values in a table format.</p> | Text                                                                                                                                 |

### Data Source Type = Date

If the data source type you want to format is "date" the system displays the following options:

| Field Name                                       | Description/Use                                                                                                                                                                                                                                                                                                              | Type/Options |
| ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| Date format                                      | This tells the system how to display the date. You can use options such as **dd-mm-yy** to show two digits for the date, two digits for the month, and two digits for the year with a dash between each. Note: you must use lowercase letters.                                                                               | Text         |
| Date format (when only month/year are available) | This tells the system how to display the date if only the month and year are available. Enter your formatting into the field using options such as **mm/yy** to show the month with two numbers and the year with two numbers; for example, February 2019 would display as 02/19. Note: You must use lowercase letters.      | Text         |
| Date format (when only year is available)        | This tells the system how to display the date if only the year is available. Enter your formatting into the field using either **yy** or **yyyy** to show the year with all four numbers or with only to numbers. As an example, if you put **yy** the system will display 2019 as 19. Note: You must use lowercase letters. | Text         |

### Data Source Type = date\_time

If the data source type you want to format is "date\_time" the system displays the following options:

| Field Name                                       | Description/Use                                                                                                                                                                                                                                                                                                                          | Type/Options |
| ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| Input type                                       | This dropdown allows you to select the input type used for your date\_time: YYYYMMDD.HHMMSS \| Epoch                                                                                                                                                                                                                                     | Datetime     |
| Time zone                                        | This dropdown allows you to determine if the system uses the time zone of the server on which your application is hosted or GMT as the time zone of your data object: Server \| GMT                                                                                                                                                      | Dropdown     |
| Date format                                      | This tells the system how to display the date. You can use **%d %b %Y** for 14 Feb 2019, for instance. See the table below for acceptable date formats. Additional characters can be used -- so %d xxx %m will show a date as 14 xxx Feb, for example.                                                                                   | Text         |
| Date format (when only month/year are available) | This tells the system how to display the date if only the month and year are available. Enter your formatting into the field using options such as **mm/yy** to show the month with two numbers and the year with two numbers; for example, February 2019 would display as 02/19. See the table below for other acceptable formats.      | Text         |
| Date format (when only year is available)        | This tells the system how to display the date if only the year is available. Enter your formatting into the field using either **yy** or **yyyy** to show the year with all four numbers or with only to numbers. As an example, if you put **yy** the system will display 2019 as 19. See the table below for other acceptable formats. | Text         |
| Date/Time separator                              | This is the character the system will display between the date and time. If this field is blank the system will use a space as the default separator.                                                                                                                                                                                    | String       |
| Time format                                      | This tells the system which format to use to set the time. You can use options like **%I:%M %p** to show the Meridian time. See the table below for other acceptable formats.                                                                                                                                                            | Text         |
| Do not escape HTML                               | If you have used HTML codes in the value template, check this option to prevent the security features from presenting the HTML codes as text.                                                                                                                                                                                            | Checkbox     |
| Character limit                                  | This field allows you to set a limit on the number of characters the system displays in the report.                                                                                                                                                                                                                                      | Number       |

### Acceptable Date Formats

The following table details the codes you can use to create acceptable date formats.

| %a | abbreviated weekday name (e.g., Wed)      |
| -- | ----------------------------------------- |
| %A | full weekday name (e.g., Wednesday)       |
| %b | abbreviated month name (e.g., Sep)        |
| %B | full month name (e.g., September)         |
| %c | date and time (e.g., 09/16/98 23:48:10)   |
| %d | day of the month (16) \[01-31]            |
| %H | hour, using a 24-hour clock (23) \[00-23] |
| %I | hour, using a 12-hour clock (11) \[01-12] |
| %M | minute (48) \[00-59]                      |
| %m | month (09) \[01-12]                       |
| %p | either "am" or "pm" (pm)                  |
| %S | second (10) \[00-61]                      |
| %w | weekday (3) \[0-6 = Sunday-Saturday]      |
| %x | date (e.g., 09/16/98)                     |
| %X | time (e.g., 23:48:10)                     |
| %Y | full year (1998)                          |
| %y | two-digit year (98) \[00-99]              |
| %% | the character '%'                         |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/format-data-object-format-variable-report-item.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
