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
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to disable write parameters based on certain state

Solved1.38K views17th July 2023
0
Stijn Declerck [SLC] [DevOps Advocate]800 15th March 2022 0 Comments

Hi all,

What would be the best way to inform the user a couple of parameters are not writable in a certain device state. This state is indicated by a state parameter in the connector. My first idea was to hide the write parameters, but I think that's not possible. Some other ideas:

- Add a fixed parameter under those write parameters with a message explaining this behaviour.
- Display an information message saying it is not possible to perform a set when the user tries to set a value.
- Don't show anything, the value won't be updated anyway.
- Other suggestions

Thanks in advance!

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 17th July 2023

4 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Pedro Almeida [SLC]296 Posted 15th March 2022 2 Comments

Hello,

To display a message when you click on a write parameter please use the tag Message on the Parameter tag:

https://help.dataminer.services/development/#t=DataMinerDevelopmentLibrary_Customer%2Fpart3MarkupLanguage%2FMARProtocolParams%2FProtocol_Params_Param_Message.htm&rhsearch=message&rhhlterm=message&rhsyns=%20

If you want to disable a write parameter based on another parameter value, please use the disable option on the discreet tag.

https://help.dataminer.services/development/#t=DataMinerDevelopmentLibrary_Customer%2Fpart3MarkupLanguage%2FMARProtocolParams%2FProtocol_Params_Param_Measurement_Discreets_Discreet.htm&rhsearch=disabled&rhhlterm=disabled&rhsyns=%20

You could also have a QAction linked to that write parameter and validate the value before you set it.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 17th July 2023
Stijn Declerck [SLC] [DevOps Advocate] commented 15th March 2022

Hi,
I don’t think a message needs to be displayed every time one of the parameters is changed. It might be better to first check the device state and if necessary a message can be shown if the set won’t be executed.
The disable option won’t work since it are all standalone parameters.
The set is already being validated, my question is more about how to inform the user the set won’t be executed.

Pedro Almeida [SLC] commented 15th March 2022

If you trigger a QAction on that, you could then do protocol.ShowInformationMessage(“The value selected is invalid and it won’t be executed!”); to inform the user of the invalid option selected.

You are viewing 1 out of 4 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