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
- 68 General
- 11 Training
- 203 Installation / Setup
- 1.1K Flows
- 108 Rules
- 262 Administration
- 212 Portal
- 494 General Q & A
- 699 Forms
- 334 Reports
- 3 Designer Extensions
- 47 Example Flows
- 53 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 180 Pages
- 5 Process Mining
- New Features
- 180 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 80 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 92 Lunch And Learn Questions