LogoLogo
No Code Service CreationPowerful Integrated FormsGCloud Information
  • The OneVu Digital Platform
  • Features and Benefits
  • Core Functionality
    • Creating an account
    • Get Answers Fast
    • Submit a Request
    • Track My Requests
    • Profile
      • Changing Contact Details
        • Changing Email
        • Changing Mobile Number
        • Linking to Messenger
        • Linking to WhatsApp
      • Changing Address
      • Changing Name
      • Changing Date of Birth
      • Notification Preferences
      • Citizen Timeline
      • Family and Friends
      • Bookmarked Services
    • MyAccount
    • Two factor authentication
  • 🌩️Integrations
    • Introduction
    • Council Tax
      • Civica
      • Northgate
      • Capita
    • Payments
      • Capita Pay360
      • Civica Pay - eStore2
      • GOV.UK Pay
    • Waste
      • Bartec Collective
      • Whitespace Powersuite
      • Yotta Mayrise
      • Yotta Alloy
      • Civica APP (Flare)
    • Housing Rents/Repairs
      • Northgate
    • Benefits
      • Capita
      • Civica
      • Northgate
    • Landlords
      • Capita
      • Civica
      • Northgate
    • Business Rates
      • Capita
      • Civica
      • Northgate
    • Business Improvement Districts
      • Northgate
    • Licensing
      • IDOX Uniform
    • Environmental Health
      • Civica APP (Flare)
    • Concessionary Travel
      • IEG4 Blue Badge
    • Health
      • Digital CHC
    • Notifications
      • GOV.UK Notify
      • Facebook Messenger
      • WhatsApp
    • Fraud & Identity
      • Loqate - Bank validation
      • Xantura - RBV
      • Transunion - RBV
      • TransUnion - ID Verification
    • Maps / Assets
      • Bing Maps
      • Symology
    • Address Look Ups
      • Ordnance Survey - Places API
      • Loqate
    • Bookings
      • Microsoft Bookings
    • OAuth2 - Identity
    • DfE FSM Eligibility Checker
    • DfT Blue Badge
  • 🛠️OneVu Control
    • Data Silos
      • The basics
      • Content Management - Simple
        • Adding static content
        • Settings
      • Dynamic Content Management
        • Registration
        • Connection Requirements
        • Using back-office data
          • Simple Data Items
          • Arrays of data
          • Data Item Collections
          • Nested Collections
          • Simple Item Formatting
          • Collection Item Formatting
          • Data item calculations
        • High Level Conditions
          • Simple true / false rules
          • Dynamic true/false rules
          • Deeper Dynamic rules
          • AND Conditions
          • OR Conditions
          • NOT Conditions
        • In Section Visibility/Rules
          • If True
          • If Not True
          • If Equal To (v1)
          • If Equal To (v2)
          • If Not Equal To
          • If Greater Than
          • If Less Than
          • If Last
          • If First
          • If Null
          • If Not Null
          • Collections & complex rules
        • Importing a silo
    • Groups
      • Permissions
    • Users
    • Settings - OneVu
    • Account Management
    • Portals
    • Banners
    • Privacy Statements
    • Audit Logs
    • Diagnostics
  • 📞Customer Service Vu
    • Introduction
    • Contact Logging
      • Notes
    • A Single Timeline
    • Set up
      • Service Areas
      • Locations
  • 💬Broadcast
    • Introduction
    • Generic notifications
      • Adding From Addresses
      • Adding Email Headers
      • Adding Email Footers
      • GOV.UK Notify Templates
      • Notification Frequency
      • Broadcast Topics
        • Linking - GOV.UK Notify Template
        • Linking - Email Header
        • Linking - Email Footer
        • Linking - SMS Template
      • Broadcast Articles
        • Web Content
        • Plain Text Emails
        • HTML based emails
        • Messages
      • Topic visibility in OneVu
      • Broadcast and CitizenVu
    • eNotifications/eBilling
      • Introduction
      • Functionality
        • Opt In functionality
        • Your Profile
      • Set up
        • Setting up notification types
        • Notification content
          • Notification placeholders
          • Email (Standard)
          • Email (GOV.UK Notify)
          • SMS (GOV.UK Notify)
          • Facebook Messenger
          • WhatsApp
        • Import notification files
          • File Column Mapping
          • Bulky File Import
        • Bulk Export File
      • Notification Audit
      • Contact Management
  • 🗺️Your Area
    • Introduction
    • Community Directory
    • Your Issues
  • ☁️OneVu API
    • Introduction
    • Methods
  • 📘My Area Directories
    • Presentation
    • Creating/editing a directory
    • Defining fields in an empty directory
    • Adding records to an empty directory
    • Adding a URL endpoint to an API Directory & Hybrid Directory
    • Importing a CSV file to a Hybrid Directory
    • Importing a CSV file to a Hybrid Directory
    • Configure My Area Directory Display Component
    • Configure My Area Directory Component
    • Configure My Area Directory Component
    • Configure My Area Directory Component
    • Configure My Area Directory Container/Directory Groups component
    • Configure My Area Directory Container/Directory Groups component
    • Configure My Area to display in OneVu
  • ✅OpenProcess
    • Introduction
    • My tasks
    • Supervise Tasks
    • Search Processes
    • Start Process
    • Abandon a Process
    • Process Retention Periods
    • Building Processes
      • Your first process
      • Step Set Up
        • Standard Steps
        • Auto-completing steps
        • Branches
        • REST API Steps
          • Worked example
      • Actions
        • IEG4 Emails
        • GOV.UK Notify Emails
        • GOV.UK Notify SMS
        • WhatsApp Messages
        • Messenger Messages
    • Two-way Communication
    • 🛠️Set Up
      • Fields
      • Categories
      • Groups
        • Permissions
      • Users
      • Organisations
    • 💾Export to CSV
    • ⚡OpenProcess Flex
      • Cases Functionality
      • Process Branches
        • Nested Branches
        • Multiple Conditions
        • Advanced Conditions
      • Work allocation in branches
      • Choice Fields
      • Mandatory Fields
      • Branches - Search Processes
      • OneVu - Track my Requests
      • Dynamic Notifications
        • Worked Example
      • Worked Example - Simple
      • Worked Example - Advanced
    • 🔀OpenProcess EDMS
      • Document Indexing
        • Multiple Indexing Queues
      • Bulk Document Import
      • Create a Document
      • Set Up
        • Document Types
        • Document Templates
          • Headers
          • Footers
          • Stylesheets
          • Templates Admin/Use
        • Service Areas
        • Account Extracts
          • User Functionality
          • IT Facing Functionality
  • ☁️OpenProcess API
    • Introduction
    • Getting an API Key
    • Methods
    • Webhooks - REST API Steps
  • 📈Reporting
    • OneVu
    • CS Vu
    • OpenProcess
    • Reporting Database
  • 💏Community Content
    • OneVu
      • Council Tax
        • Capita Content
        • Civica Content
        • Northgate Content
        • Sample Demo Content
      • Benefits
        • Capita Content
        • Civica Content
        • Northgate Content
      • Business Rates
        • Capita Content
        • Civica Content
        • Northgate Content
      • Licensing
        • IDOX Uniform Content
      • Housing
        • Northgate Rents Content
        • Northgate Repairs Content
    • eDesigner
    • OpenProcess
      • Council Tax
      • Benefits
      • Business Rates
      • Building Control
      • Adult Social Care
      • Licensing
      • Planning
      • Street Name and Numbering
      • Complaints
      • Housing
      • Waste
      • Environmental Health
      • Streets and Parks
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. OneVu Control
  2. Data Silos
  3. Dynamic Content Management
  4. Using back-office data

Simple Item Formatting

Sometimes (a lot of the time!) back-office systems provide data in a format that you wouldn't want to show the customer. E.g.

E.g. Next Payment Date for Benefits is returned with a timestamp:

01/01/2017 00:00

So clearly we want to be able to cut that out.

Within the editor it is possible to format the answers using extra snippets of text.

Convert a date to drop the timestamp

The following illustrates the Next Payment Date example above. One can see that to remove the timestamp the highlighted part needs to be added to the end of the Data Field in question:

${NextPayment.Date.ToString(“dd/MM/yyyy")}

I.e. copy and paste this: .ToString(“dd/MM/yyyy") to the end of the template field that is a date.

You can break a date into its constituent elements:

The following will convert the date into just the date of the month:

${Claim.Hb.Entitlement.StartDate.ToString(“dd")}

This will convert the month e.g. 10 to the month into the word October

${Claim.Hb.Entitlement.StartDate.ToString(“MMMM")}

And this will change the date to only show the year e.g. 2018

${Claim.Hb.Entitlement.StartDate.ToString("yyyy")}

Convert a long decimal to only have two decimal places

In some cases the back office APIs actually provide an answer like this: 1244.0323232

Whereas obviously you would want the customer to see: 1244.03

The following will ensure that this formatting is applied to the value:

${PropertyBand.FullYearCharge.ToString("f2")}

The following illustrates examples of this:

What to add

Example

What it changes it to

.ToString("C")

100

£100.00

.ToString("F2")

100

100.00

.ToString("dd/mm/yyyy")

03/12/2018 00:00:00

03/12/2018

.ToString("dddd, dd MMMM yyyy")

03/12/2018 00:00:00

Monday, 3 December 2018

E.g. Adding .ToString("dd/mm/yyyy") to the end of the Data Item NextPayment.Date:

${NextPayment.Date.ToString("dd/MM/yyyy")}

This ensures the date will be presented like 03/08/2021 not 03/08/2021 00:00:000 which is what we get from Civica and Northgate systems.

PreviousNested CollectionsNextCollection Item Formatting

Last updated 3 years ago

Was this helpful?

🛠️