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
    • Video Library
    • 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
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about 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)
    • Books We Like
    • >> Go to DataMiner Docs
  • DevOps Professional Program
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

How can script variables be handled without operator interaction?

731 views8th January 2025Automation script MemoryFile Scheduler Task session variables
4
Daniel Zank [DevOps Advocate]208 3rd January 2025 0 Comments

Hi all!

I have a question on script variables. In the documentation it is explained that:

"Prior to running a script, operators will first have to link the dummies and parameters to actual elements and values in the DMS. Therefore, it is best to give the variables a meaningful name the operators will be able to work with."

Is there any way that this operator interaction is not necessary? The background is that we would like to execute a script via a task in the scheduler, which has a changing value from a memory file for the parameter.

Best regards and thank you in advance for your inspiring answers!

Daniel

Daniel Zank [DevOps Advocate] Answered question 8th January 2025

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
4
Miguel Obregon [SLC] [DevOps Catalyst]19.36K Posted 3rd January 2025 2 Comments

Hi Daniel,

If I understood correctly, you have a memory file defined in the Automation module, and you are using this memory file for your script parameter:

If this is the case, when configuring a scheduled task, the user will need to choose one of the possible values from the memory file:

To avoid this, for example you could remove the script parameter and process the memory file directly in a C# script block. The method GetMemory allows you process the content of a memory file.

Hope it helps.

Miguel Obregon [SLC] [DevOps Catalyst] Edited comment 5 days ago
Daniel Zank [DevOps Advocate] commented 8th January 2025

Hi Miguel, thanks for your answer and the inspiration! I hope I'm on the right track with my script. But now I have the problem that the variable in the view cannot be updated by the script. Please see my additional answer.

Miguel Obregon [SLC] [DevOps Catalyst] commented 5 days ago

Hi Daniel,
Sorry for the late reply. Indeed, to use the method GetMemory you will need to pass the memory file as parameter. A possible alternative is using subscripts. There is description of this workaround in the following question:
https://community.dataminer.services/question/store-permanent-values-that-can-be-access-by-multiple-scripts/?hilite=memory+file
Please let me know if it helps.

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