• Home
  • Diver BI Group
    • Diver | BI
    • Customer Commendations
    • Videos
    • Case Studies
    • Documents and Brochures
    • Diver BI Group Privacy Policy
  • Articles
    • News
    • Accolades
    • Blog
    • Ask Anthony
      • Common ODBC Errors
  • The Team
    • Key Experts
    • Members
      • Dynamic Business Informatics
      • Envisage
      • Chartwell IT
      • Cloud-Works Solutions Ltd
      • Data Management Business Insight
      • Manitex
      • Equiniti ICS
      • Pharma IT
      • Pinnula
      • Formell
      • IBI
    • Partners
      • Dimensional Insight US
      • Dimensional Insight EU
      • Dimensional Insight Asia
      • DI Panama
      • ID Technology (Brazil)
      • Infotool (Nordic Countries)
      • iXias Software – DI France
      • Vision IT
      • KDE Group (Israel)
      • Zight -Partner for Transport
      • 24/7 Uptime
  • Applications
    • Property
      • Property Prices Portal
    • Supply Chain
      • Retail
      • Distributor
      • Wholesale
      • Manufacturing
      • Produce
      • Beverage Alcohol Suppliers
      • Beverage Alcohol Distributors
      • Autoparts
      • Transport
      • Public Transport
      • DI Program Advisor
    • Healthcare
      • Healthcare
      • DI Surgery Advisor
      • DI Physician Performance Advisor
      • Pharma BI Applications of Diver
    • Finance
      • Finance
      • DI GL Advisor
    • Mobile & SaaS
      • Diver BI SaaS
      • SaaS for Sales Gap Analysis
      • BI designed for Tablet
      • DiveTab – Mobile BI
    • Diversity
      • Travel & Tourism
      • Colleges & Universities
      • Waste Management
      • Parking
      • Telecom Brokerage
      • Economic Trends
      • Maps
      • Smart Meters
      • Carbon Emissions Management
  • Workbench
  • Contact
    • Free Consultation with One of Our Experts
    • Add a New Revenue Stream as a Partner

DiverBIGroup

Business Intelligence Experts

Diver BI Group Ask Anthony Using Macros to Save Time in Diveport Design

Using Macros to Save Time in Diveport Design

9th March 2017

Whenever you set about creating a new Diveport or even just a new environment in an existing Diveport, you should take a few moments to set up some macros relating to the colours and fonts you are going to use.

This brief but important job will same you lots of time in the long run – especially if you ever want to make changes to colours and fonts across just one environment, in which case your normal fallback of making a global substitute of the colour values in the portaldb.json (Diveport 7) or portaldb.xml  file will not work easily, as you will overwrite the colours in all the environments at once.

Naming Conventions are Helpful

macros in Diveport dropdown image

Set up unique macros for each colour and font size/type you are going to use – and add more as needed.  In my examples below I have used a naming convention for defining the four user defined colours I am going to use. Although you might think you should give yourself a visual clue like the colour name – red, blue, green etc, this will be confusing if you ever want to change the macro to a different colour value. Enter the RGB codes for each colour value.

Macro set up Diveport

So I just stick to the code and number format. You could use a different code if you use a different set of colours for each environment, or a code that relates to the department or area of the business that is using these colours uniquely.

setting up macros in Diveport

Adding Portlets Using Macro Values

Select the portlet you are going to use e.g. a Background Portlet, and create a background rectangle using the formula for the macro colour you want. (It’s a good idea to keep a Textpad file open with all the macros you have set up listed there so you can just copy and paste them into the fields in Diveport).  Another tip is to create the size of background you want on one page,with any headers etc placed in position – e.g. a different coloured rectangle to serve as a background for quickviews, and then copy this first page to create as many new pages as you might need – before adding any more portlets. This way your pages will all be uniform and look better when navigating form page to page.

macro4

Rectangle background portlet

 

edit background portlet

 

Using Font Macros with Colour Macros

Using the same method you can mix the text font macros with colour macros.

adding a text font macro in diveport

text font macro in Diveport

Extending to Other Macros

The same technique can be used throughout the Diveport – for instance you might want to set up macros for corner radius of  a rectangle, or hover colours etc etc.macro10

Other Formatting Tips

Did you know that using a Text indicator within a Measures Portlet, you can display numerical and textual data using data thresholds and colours to communicate performance – instead of using graphical indicators like traffic lights or arrows?

macro15

set up of text indicator in Diveport

set up text indicator in Diveport

text indicators in Diveport

Customising with Organisation for Easier Maintenance

Remember, whenever you set up Diveport or new Diveport Environments, just take a few minutes to plan your method and organise how you will tackle each one. If your environments are likely to have different colours and fonts, give them a unique naming convention – then when it comes to changing colours or fonts all you have to do is change the colour values on the existing macros Macros or add new Macros and replace using text pad global replace on the .json file  – which will work just for that environment.  I wish I had realised this when I first started creating Diveports – it would have saved me so much time!!

Good luck!

About Debbie Lonsdale

Debbie Lonsdale Image

Debbie Lonsdale has been working with the Diver Solution as a BI Consultant at Dynamic Business Informatics since 2008. Her previous experience includes computer programming, analytical and technical roles, team management, account management, sales and marketing in a variety of market sectors, including the Travel Industry and Distribution. She combines this experience as an all round ICT professional in the BI sector.

Articles

  • News
  • Accolades
  • Blog
  • Ask Anthony
    • Common ODBC Errors
  • Diver | BI
  • Customer Commendations
  • Videos
  • Case Studies
  • Documents and Brochures
  • Diver BI Group Privacy Policy

Dynamic Business Informatics Ltd

Distributors of The Diver Solution & Diver Platform, providing business consultancy services, products and applications derived from the Diver Solution & Diver Platform.
14 Mellifont Avenue
Dun Laoghaire
Co. Dublin

+353 1 2302022

10 Kenyon Street
Nenagh
Co Tipperary

+353 67 43309

Contact Us

We would love to hear from you! Please submit your query and we will get in touch with you shortly.

Email addresses are never sold, rented, or shared. See our Privacy Policy.

  • This field is for validation purposes and should be left unchanged.

Accolades

  • Dimensional Insight Earns Top Marks in 2021 Wisdom of Crowds Business Intelligence Market Study
  • Best in Klas 2021
  • 5 Takeaways from the 2020 Wisdom of Crowds Report
  • Dimensional Insight Earns Top Marks in 2020 Wisdom of Crowds Business Intelligence Market Study
  • Best in Klas 2020

Copyright © 2022 Diver BI Group · Privacy Policy · website by cubecolour

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.


What Are Cookies?


As is common practice with almost all professional websites this site uses cookies, which are tiny files that are downloaded to your computer, to improve your experience. This page describes what information they gather, how we use it and why we sometimes need to store these cookies. We will also share how you can prevent these cookies from being stored however this may downgrade or 'break' certain elements of the sites functionality.


For more general information on cookies, please read "What Are Cookies".


How We Use Cookies


We use cookies for a variety of reasons detailed below. Unfortunately in most cases there are no industry standard options for disabling cookies without completely disabling the functionality and features they add to this site. It is recommended that you leave on all cookies if you are not sure whether you need them or not in case they are used to provide a service that you use.


Disabling Cookies


You can prevent the setting of cookies by adjusting the settings on your browser (see your browser Help for how to do this). Be aware that disabling cookies will affect the functionality of this and many other websites that you visit. Disabling cookies will usually result in also disabling certain functionality and features of the this site. Therefore it is recommended that you do not disable cookies.


The Cookies We Set




  • Account related cookies


    If you create an account with us then we will use cookies for the management of the signup process and general administration. These cookies will usually be deleted when you log out however in some cases they may remain afterwards to remember your site preferences when logged out.




  • Login related cookies


    We use cookies when you are logged in so that we can remember this fact. This prevents you from having to log in every single time you visit a new page. These cookies are typically removed or cleared when you log out to ensure that you can only access restricted features and areas when logged in.




  • Forms related cookies


    When you submit data to through a form such as those found on contact pages or comment forms cookies may be set to remember your user details for future correspondence.




  • Site preferences cookies


    In order to provide you with a great experience on this site we provide the functionality to set your preferences for how this site runs when you use it. In order to remember your preferences we need to set cookies so that this information can be called whenever you interact with a page is affected by your preferences.




Third Party Cookies


In some special cases we also use cookies provided by trusted third parties. The following section details which third party cookies you might encounter through this site.




  • This site uses Google Analytics which is one of the most widespread and trusted analytics solution on the web for helping us to understand how you use the site and ways that we can improve your experience. These cookies may track things such as how long you spend on the site and the pages that you visit so we can continue to produce engaging content.


    For more information on Google Analytics cookies, see the official Google Analytics page.




More Information


Hopefully that has clarified things for you and as was previously mentioned if there is something that you aren't sure whether you need or not it's usually safer to leave cookies enabled in case it does interact with one of the features you use on our site.


However if you are still looking for more information then you can contact us through our contact page

Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT