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 limit user input for string parameters

Solved500 views5th July 2023Text input
1
Jeff Douglass860 11th May 2023 0 Comments

How to limit user input for a string value to a limited character set? For example, how can I limit users from entering specific characters, say non-pritable non-standard ASCII characters, when attempting to change a string value of a SNMP Device parameter? Is there a way to have a single place in a protocol that defines a valid character set to be used for all, or a subset of, string type parameters? Any way to globally for the entire system, or on a protocol level, to only allow standard pritable ASCII characters and not any extended ASCII or Unicode characters?

Thanks in advance for any advice

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

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
2
Laurens Moutton [SLC] [DevOps Enabler]8.74K Posted 12th May 2023 0 Comments

Hi,

Filtering out only the ASCII characters will have to be done by a QAction. This functionality can be present in one (precompiled) QAction. Other QActions then import that QAction to be able to call the method. The output of that method will then be the ASCII characters that can then be used to perform the actual SNMP set.

Working with a precompiled QAction has the advantage that the code can be adapted easily, but has the downside that the QAction code is needed in every protocol version. An alternative could be to create a custom class library project that generates a dll and then let all protocol versions import that dll, or that class library project could even be stored on a NuGet store. This way the code is stored and maintained in one place, so if something needs to be changed it only has to be done once and it's not needed to start copy-pasting the content everywhere.

Regards,

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 5th July 2023
You are viewing 1 out of 1 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