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
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • 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)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Changing the color of UIblock items like StaticText

Solved449 views15th November 2024Automation script Color low-code style text style
1
Satrap Shojaie [DevOps Member]54 14th November 2024 0 Comments

Hello,

I need to change the color of a UIblock StaticText to red. I'm not using the Automation Toolkit. I've designed my Automation script using the old-fashioned UIBlockDefinition method. I am able to use the Style to change the size and case of the text;

blockStaticText.Style = Style.Text.Title1;

but that is not changing the color.

Any help is appreciated!

Satrap Shojaie [DevOps Member] Selected answer as best 15th November 2024

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
0
José Silva [SLC] [DevOps Catalyst]1.33K Posted 15th November 2024 1 Comment

Hi Satrap,

Unfortunately, as Jarno mentioned, directly changing the text color in a StaticText is not supported.

If your goal is to indicate an issue or highlight something important that is missing, you can achieve this by changing the ValidationState of a block (e.g, TextBox) to Invalid.

This will apply a red border like this:

Example:
Port1SourceIpAddress.ValidationState = UIValidationState.Invalid;

Satrap Shojaie [DevOps Member] Posted new comment 15th November 2024
Satrap Shojaie [DevOps Member] commented 15th November 2024

Much appreciated 🙂

You are viewing 1 out of 2 answers, click here to view all answers.
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

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin