Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

Is it possible to have the FillColor correlate to the HistoryMode value returned?

Solved1.04K views3rd August 2022FillColor HistoryMode Visio
0
Steve Purcell [SLC] [DevOps Advocate]1.74K 2nd August 2022 0 Comments

We have a Visio drawing where we are using FillColor rather than alarming to color the shape.  When we implemented HistoryMode using trend data, we can see the value of the shape changing as expected, however, the FillColor does not seem to apply to the HistoryMode returned value and still shows the color of the current value.

Is it possible to have the FillColor correlate to the HistoryMode value returned?

For our operation, we are using a parameter with values of 0, 25, 50, 75 or 100.

We have HistoryMode as a page setting –

State=[var:historyModeToggle]|TimeStamp=[var:myTimeR]|NoDataValue=<NOPE>|TrendDataType=Average

For the shape Parameter we are using the following FillColor option:

|FillColor;=0,Green;=25,Cyan;=50,Yellow;=75,Orange;=100,Red

Steve Purcell [SLC] [DevOps Advocate] Selected answer as best 3rd August 2022

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
Michaël Pincket [SLC] [DevOps Advocate]1.79K Posted 3rd August 2022 1 Comment

Hi Steve,

With the current implementation of the historymode it is not possible to correlate the FillColor to the HistoryMode value. I would suggest that you create a task so we can add this functionality.

Steve Purcell [SLC] [DevOps Advocate] Selected answer as best 3rd August 2022
Steve Purcell [SLC] [DevOps Advocate] commented 3rd August 2022

Thanks for the answer Michael, I will submit a request shortly.

0
Toon Casteele [SLC] [DevOps Enabler]7.05K Posted 3rd August 2022 1 Comment

Although it’s not the most straightforward way, it should be possible to do this with the new BackgroundColor shape data.

The History mode provides some placeholders to insert the history mode value:

  • [average value]
  • [minimum value]
  • [maximum value]

Option 1: Nested regexreplace
Inserting this in a regexreplace could allow you to color the shape appropriately. For instance:

[regexreplace:100,[average value],Red]

Will replace the value with “Red” if the average value matches “100”. Nesting a couple of these could give you the following BackgroundColor shape data:

  • [regexreplace:0,
    • [regexreplace:25,
      • [regexreplace:50,
        • [regexreplace:75,
          • [regexreplace:100,[average value],Red]
        • ,Orange]
      • ,Yellow]
    • ,Cyan]
  • ,Green]

The outer regexreplace could be left out if you make the default color of the shape green in Visio as well.

Option 2: Automation script output variables

You could also write the logic in an automation script that takes the value as input and outputs the text value of the color into a session variable.

For this you will need:

  • Passing Automation script output to session variables
  • Using the ValueChanged SetTrigger on page level to execute the script when the parameter value changes
    • The [param:…] placeholder as script parameter input.
  • The BackgroundColor shape data, which will then link to the session variable that is output by the script.
Steve Purcell [SLC] [DevOps Advocate] Posted new comment 3rd August 2022
Steve Purcell [SLC] [DevOps Advocate] commented 3rd August 2022

Thanks for the options Toon, I will have to see which if these will work better for the page I am working on.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs