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

Clear Action and Clear on Display For Stand Alone Parameter

Solved1.77K views27th March 2023action clear database protocol
1
Geovanny Galeano [SLC] [DevOps Advocate]725 18th August 2020 0 Comments

I’m trying to do something simple which is to clear the value of a parameter when the value of another parameter changes.

I want the parameter to be “Not initialized” rather than empty therefore i don’t think this is possible from a Qaction.

I’m currently calling a trigger with two actions a “clear” and “clear on display”

After this executes the value of the parameter is set to “Not initialized” both in the client and server since if i do a GetParameter at this point null is returned.

The issue now occurs if i restart the element since this parameter has the save=”true” the values before the clear come back and it shows both in the client and server.

Is there something else i need to do to clear the values in the database??

Geovanny Galeano [SLC] [DevOps Advocate] Selected answer as best 27th March 2023

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Thijs Vanovenacker [SLC] [DevOps Advocate]2.20K Posted 19th August 2020 2 Comments

Hi Geovanny, From what you’ve tested, it seems that the clear action doesn’t remove the value from the database (SLDMADB.ElementData). That’s why on restart of the element (or DataMiner restart) the values will be retrieved from the database and pop back up.

Instead, I would suggest you to define an Exception on your parameter interprete definition. That way when you want to bring the value in a empty or special state, you can use this exception value to highlight the state. This will be more meaningful and you will be even able to alarm on this specific state.

Don’t forget when defining a default alarm threshold for exception values, that you need to prefix the value with ‘$’ (See: Exception Values)

The advantage of setting this parameter to use the exception value/state, is that since your parameter is saved, this specific value will also be saved. So after element (or DataMiner) restart you will remain with the same value/state.

Geovanny Galeano [SLC] [DevOps Advocate] Selected answer as best 27th March 2023
Thijs Vanovenacker [SLC] [DevOps Advocate] commented 19th August 2020

I made a small test and when you perform a save action on the parameter after you’ve cleared the value, it will update the value in the database to an empty string.
So after restarting your element the value will now go from “Not Initialized” to an empty string.

You could still implement an after startup logic that would do another “clear on display” action based on a condition if the value is an “emptystring”.

Jan Staelens [SLC] [DevOps Advocate] commented 19th August 2020

This is the correct way. Not Initialized should never be set from within the driver.

Not Initialized may only exist after a restart, it indicates no polling or no logic has been performed to handle filling in that parameter.

If a parameter is ‘not initialized’ for a long time after restart it’s usually an indication of a bug.

When you think: I want this to be set to Not Initialized. You should immediately think: I need to use an exception value here instead.

0
Davy Degrande [SLC] [DevOps Advocate]1.43K Posted 15th September 2020 0 Comments

Indeed the clear action only clears the value in memory.
After the clear actions are done you can add another action ‘save’ this will push the value to the database.

Davy Degrande [SLC] [DevOps Advocate] Answered question 15th September 2020
-1
Brent [SLC]1.57K Posted 18th August 2020 2 Comments

If the value does not need to be persisted between element restarts, then you should simply remove the save=”true” from the element. This way the value will only be kept in memory but will not be saved to database.

Thijs Vanovenacker [SLC] [DevOps Advocate] Posted new comment 19th August 2020
Geovanny Galeano [SLC] [DevOps Advocate] commented 18th August 2020

Hi Brent, I do need the value to stay in case of a restart, I should have mentioned that.

I only want to set that parameter to “Not initialized” when another parameter changes and if I restart it should stay as “Not initialized”. I still want the original values to stay if a change was not detected, but an element restart takes place.

Thijs Vanovenacker [SLC] [DevOps Advocate] commented 19th August 2020

Be careful with removing the save option on a parameter for a protocol with an existing element. This means that new value updates will no longer be pushed towards the database. The old/last value will still be in the database. On element (or DataMiner) restart the old/last value will still be returned and pushed back.
To overcome this, you can recreate your element. That way you start with a clean elementdata workspace for your element.
Another way is to manually remove the record from the ElementData table in the database. (Be careful when removing data from the DB)

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