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 implement buttons switching bitrates prefix and show the bitrate values on a view.

Solved1.05K views18th July 2023
1
Tomoya Horiguchi(3365) 堀口 朋也 19th May 2021 0 Comments

If I would like to create the Visio view like above and add three buttons “Kbps”, “Mbps”, “Gbps” to change the prefix of the bitrate, how should I implement it?
In the Image, I would like to change the showing of bitrate by pressing the button. For example, if I press the Gbps button, the bitrate is shown as 0.8Gbps.

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

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Jochen Dewachter [SLC] [DevOps Advocate]2.16K Posted 19th May 2021 3 Comments

I don’t think there’s a way to do calculations on client side (dividing/multiplying with a factor). This is something that is done on server side (the driver in this case). Anyone correct me if I’m wrong.

I’d make these calculations in the driver. By clicking one of the buttons, a session variable would be set that points to another parameter in the driver that holds the value in kbps, mbps or gbps.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2023
Tomoya Horiguchi(3365) 堀口 朋也 commented 20th May 2021

Is there any way to output the value calculated in Automation to display it on a Visio?
For example,
Element is 24204/91,
A parameter’s value is 18000000
Expected output is 18000(ConvertedValue )

C# Scripts are as follows.
———————————
Element element = engine.FindElement(24204,91);
var AvalableMemory = element.GetParameter(1020);
int AvalableMemory2 = Convert.ToInt32(AvalableMemory);
int thousand = 1000;
int ConvertedValue = AvalableMemory2 / thousand;
———————————-

Jochen Dewachter [SLC] [DevOps Advocate] commented 20th May 2021

You could try to execute an automation script that does the calculation and sets a session variable that is displayed in the visual overview. More info on how to do this can be found here: https://community.dataminer.services/question/is-it-possible-for-a-script-to-update-a-session-variable/

Tomoya Horiguchi(3365) 堀口 朋也 commented 24th May 2021

Thank you for sharing the link but I still don’t really understand how to use it.
Would it be possible to show a detailed example?

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