How to get the formatted data in report
I have a data field in my SQL database that stores a raw phone number like '9802408243'. Instead of using VARCHAR for the field at the SQL level.
In the report, I'd like to format it to appear as (980) 240-8243 because we won't always receive perfectly formatted data from our customers.
Comments
-
This can be achieved by using a Flow Inline Field to dynamically populate a report row via a flow.
By fetching a row containing the unformatted number, we can pass it through the Flow Inline Field to format the number using the 'Split String By Character Positions' step. This step breaks down the string by its character positions and outputs it as a list. Next, using the 'Get Item By Index' step, we fetch the middle value and then reassemble the number into its expected format using the 'Merge Plain Text' step.
-
Flow Inline Fields can impose significant load on larger reports. While this isn't an issue for small datasets.
-
Please refer to our Documentation page for more details:
https://documentation.decisions.com/docs/using-flow-inline-fields-to-extend-report-data
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions