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
    • YouTube Videos
    • 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
  • Downloads
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • >> Go to dataminer.services

Export / Import tree views

Solved5.34K views18th July 2023import views move to production
3
Julien Caldana [DevOps Member]10 14th October 2021 0 Comments

Hi all,

I'm looking for a way to export a complexe tree structure of my views in Lab (only the views, not the elements and services) and then import this structure into my production environement.

Any idea how to complete such action quickly and easily?

regards,

Julien

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

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Jens Vandewalle [SLC] [DevOps Enabler]9.50K Posted 15th October 2021 1 Comment

Hi Julien,

This is not possible by default.

I would suggest to use an automation script for this. Below code is a good starting point to get all the views that you want.

IDms dms = engine.GetDms();
IDmsView myStartView = dms.GetView("view name");

foreach (IDmsView childView in myStartView.ChildViews)
{
// ....
}

You can store the result in a format of your choice in a file. Then on the other system you need to read out this file and create the view structure by using below code.

IDms dms = engine.GetDms();

IDmsView parentView = dms.GetView("name of parent view");
ViewConfiguration viewConfiguration = new ViewConfiguration("name of view", parentView);

int newViewID = dms.CreateView(viewConfiguration);

Robin Spruytte [SLC] [DevOps Advocate] Posted new comment 15th October 2021
Robin Spruytte [SLC] [DevOps Advocate] commented 15th October 2021

Note this could take a considerable time when you have a big view structure with lots of different levels. The Childviews and Parent properties are not loaded by default and are loaded via a new Dataminer call when called from code. Having to access these properties a lot of time will increase the overall time of the operation.

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
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