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
  • Blog
  • Questions
  • Learning
    • E-learning Courses
    • 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
    • Tutorials
    • 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
    • DataMiner Insights
      • Security
      • Integration Studio
      • System Architecture
      • DataMiner Releases & Updates
      • DataMiner Apps
    • 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
    • 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

Convert string to integer

Solved1.40K views20th September 2022integer strings value convert
2
joel Joly489 13th September 2022 0 Comments

Hello DOJO

Is there a way to convert a string value, that represent an integer value, to an integer ?

I am trying to draw a shape that dynamically displays the value of a storage, with a min/max limit, but the storage format value is like this : "48375429 Frames"

Protocol is coded like this
<Type>read</Type>
<Interprete>
<RawType>numeric text</RawType>
<LengthType>next param</LengthType>
<Type>double</Type>
</Interprete>

joel Joly Selected answer as best 20th September 2022

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Mieke Dryepondt [SLC] [DevOps Advocate]3.58K Posted 13th September 2022 2 Comments

Hi,
Do you mean that the raw value from the data source is text-based: "48375429 Frames"
And you would like to have this as a number-based parameter in your protocol so you could link it to a shape?

In that case the protocol will need to take care of the conversion.
This cannot be done right away from the Parameter definition. You will need to work in steps:

  1. Create a (hidden) textual parameter (Interprete other - string)
  2. Create a numeric parameter (that you will use to link to the shape)
  3. Create logic (QAction) that will trigger on change of the textual param and:
    1. trim the text,
    2. set the remaining numeric value in the numeric parameter.
joel Joly Selected answer as best 20th September 2022
joel Joly commented 13th September 2022

Thank Mieke

I will dig this way, but each time I modify a protocol, it’s complicated to manage the future update

Mieke Dryepondt [SLC] [DevOps Advocate] commented 13th September 2022

Hi Joel, what do you mean that it’s complex to manage future update?
Change done by some other party to the protocol?
If this is a protocol owned by skyline so you could request this conversion feature for the param you need. (create a task)

1
Miguel Obregon [SLC] [DevOps Catalyst]18.56K Posted 13th September 2022 0 Comments

Hi Joel,

There is an option to hide the units in a Parameter shape data (Customize the way a parameter value is displayed)
Check the option HideUnit

Miguel Obregon [SLC] [DevOps Catalyst] Edited answer 13th September 2022
0
joel Joly489 Posted 13th September 2022 1 Comment

Thank you Miguel

It's not display side I have a problem, but I need to get the integer value to draw a shape like this :

Jeroen Geldhof [SLC] [DevOps Enabler] Posted new comment 20th September 2022
Jeroen Geldhof [SLC] [DevOps Enabler] commented 20th September 2022

Hi Joel, in that case it’s indeed best to follow the method proposed by Mieke.
If it’s a Skyline driver it’s best to request an official protocol change, so that we convert it to a numeric value.

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

Recent questions

Alarm Dashboard PDF/CSV Export 1 Answer | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes
Is the Microsoft SharePoint Connector Still Usable 0 Answers | 0 Votes

Question Tags

adl2099 (115) alarm (62) Alarm Console (82) alarms (100) alarm template (83) Automation (223) automation scipt (111) Automation script (167) backup (71) Cassandra (180) Connector (108) Correlation (68) Cube (150) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (139) driver (65) DVE (55) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (151) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) services (51) SNMP (86) SRM (337) table (54) trending (87) upgrade (62) Visio (539) Visual Overview (345)
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