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
    • 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
    • DataMiner Insights
      • Security
      • System Architecture
      • DataMiner Releases & Updates
    • 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

running script from dashboards using the element feed as input parameter

Solved1.18K views18th July 2023automation scipt Dashboard
3
Tim Vandenbruwaene [SLC] [DevOps Enabler]2.18K 5th August 2021 0 Comments

I'm able to trigger an automation script from dashboards using the button component.

However that script has an input parameter  "Data".

This needs to be the element id, same used as in the url of the dasboard

http://.../Desk.dmadb?elements=326%2F50441

Is there a way I can configure the button component so that it triggers the script with the value of the input script paramater "Data" to be  326/50411 or another data structure that contains that ID?

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

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Gilles Bara [SLC] [DevOps Enabler]6.80K Posted 13th August 2021 0 Comments

For the sake of completeness, it's is also possible to filter a button with elements for dummies and/or script inputs for general values.

It's that last one that might be of most interest to your use case. It allows you to fill in any value to a script parameter through the url.

Just provide the parameters to the url https://[ip]/dashboard/#/mydashboard.dmadb?script inputs=0%1FvalueForScriptParameterWithId0/1%1FvalueForScriptParameterWithId1

So the syntax of the script inputs url parameters has to be

"[id1]%1F[value1]/[id2]%1F[value2]"

Where

  • id is the script parameter ID (which you can verify in the response from the webAPI GetAutomationScript call).
  • %1F is the separator between key and value, a non printable character.
  • value is the string that needs to be injected as value.
  • / is the optional separator between multiple parameters.

The only thing you then have to do is to link the url as a filter to your button.

This allows you to provide all or some of the parameters dynamically through the URL. The missing ones will then be prompted before launching the script. Be aware that the ones fed through the URL will not overwrite the static values provided in the settings of the button.

Good to know: you can even disable the button if the url is not containing the parameter, by marking the parameter as required in the button settings.

Sidenote: for your specific use case you might want to split up the input parameter into two separate parameters, as the dmaID/elementID syntax will mess up the parsing of the script inputs because of a conflicting "/" character.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 18th July 2023
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

Recent questions

Invoke HTTP Session from QAction 1 Answer | 1 Vote
Masked alarmes permission management 0 Answers | 0 Votes
Remove all Widgets from Section 2 Answers | 5 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 (109) Correlation (69) Correlation rule (52) Cube (151) Dashboard (194) Dashboards (188) database (83) DataMiner Cube (57) DIS (81) DMS (71) DOM (140) driver (65) DVE (56) Elastic (83) Elasticsearch (115) elements (80) Failover (104) GQI (159) HTTP (76) IDP (74) LCA (152) low code app (166) low code apps (93) lowcodeapps (75) MySQL (53) protocol (203) QAction (83) security (88) 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