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

Data item calculations

Sometimes the answer provided back from back office APIs is in a format one would not want to show the customer.

Sometimes you might want to show data that is retrieved from the back office in a different way. OneVu now has the ability to do calculations to derive a value that is not present in the back office APIs.

For example, entitlement to benefit is always passed as a weekly value. But what if you wanted to show this as a monthly value for someone that is paid monthly.

So let's say you wanted to show this:

  • You are entitled to: £100.00 per week

  • This is the same as: £433.33 per month

The back office APIs for all three back-office systems will give the value weekly so there will be a data item for weekly HB entitlement. As we want to show the monthly value we can do a calculation to get this.

The following is an example Data Item for weekly HB award (Capita back office)

${Claim.Hb.BenefitAward.AwardAmount}

To calculate the monthly amount I use the following:

${(Claim.Hb.BenefitAward.AwardAmount * 52 / 12)}

Therefore to do a calculation one needs to add regular brackets () around the data item name and the calculation to be done. So in this case it will automatically multiple the weekly value by 52 and then divide that by 12 to get the monthly amount.

If it were a council tax benefit award you might want to show it as an annual award so:

${(Claim.Hb.CouncilTaxAward.AwardAmount / 7 * 365)}

I.e. the value is being divided by 7 to get the daily award and then multiplied by 365.

Calculations can be as complex as you like. The only thing that's important is understanding the format that needs to be used. In the following example, say we want to calculate:

Weekly Council Tax Charge - CTS non dep deductions - (20% of Excess Income) to get to the CTS award.

The following is the calculation for this:

${

(

(CurrentEntitlement.Lcts.Breakdown.Weekly

-

CurrentEntitlement.Lcts.Breakdown.NonDepDeduction)

-

(CurrentEntitlement.Lcts.Breakdown.ExcessIncome * 20 / 100)

)

}

I.e. the two separate calculations need to be inside brackets. And the overall calculation needs to be inside brackets too. Also of note in the above is that is possible to add / subtract / multiply / divide back office values together.

Cool Example

The following example does rely upon you having some knowledge of HTML / CSS but illustrates that with little effort something v nice can be achieved:

Here is what was added and on the right is what the user sees. Basically we are creating a pie chart. And the pie chart wedge is being filled by the amount of their housing benefit entitlement as a percentage of their rent. We can see the weekly HB amount is divided by the weekly rent and multiplied by 100 to calculate it as a percentage:

<div class=“awesome">

<div class="pie"

style="width: 200px;

height: 200px;

border-radius: 50%;

background: conic-gradient(var(--accent-color) 0, var(--accent-dark)

${

(

(Claim.Hb.Entitlement.WeeklyAmount /Claim.Hb.Entitlement.WeeklyLiability)

*100

)}

%,

var(--main-color) 0, var(--main-color-dark) 100%);”>

</div>

The only limitation with calculations is that it cannot be used on arrays/collections of data.

PreviousCollection Item FormattingNextHigh Level Conditions

Last updated 3 years ago

Was this helpful?

🛠️
Pie chart driven by data items from a back office system