Main Content

open

Class: slmetric.dashboard.Configuration
Package: slmetric.dashboard

Create slmetric.dashboard.Configuration object associated with XML configuration file in the base workspace

Description

Reads the contents of the XML file containing the Metrics Dashboard layout into memory and returns the corresponding configuration object. If you modify the contents of the configuration object, invoke the save method to write to the XML file.

example

Co = slmetric.dashboard.Configuration.open('FileName','myConfig.xml',... 'Location', pwd,'locale', 'ja_JP') reads a configuration file.

Note

If you do not supply an input argument, the slmetric.dashboard.Configuration.open command reads the contents of the default Metrics Dashboard layout XML file into memory and returns the corresponding slmetric.dashboard.Configuration object.

Input Arguments

expand all

Name of XML file containing custom Metrics Dashboard layout and widgets.

Data Types: char

Name of folder containing XML file that contains Metrics Dashboard layout. This input argument is optional.

Data Types: char

Name of folder containing XML file that contains Metrics Dashboard layout. This input argument is optional.

Data Types: char

Output Arguments

expand all

Name of slmetric.dashboard.Configuration object that you want to open.

Data Types: char

Examples

expand all

Use the open method to add an existing slmetric.dashboard.Configuration object to the base workspace. As an input, specify the name of the XML file that contains the information in the configuration object. If you modify the information that this configuration object contains, use the save method to save this information to the XML file.

CONF = slmetric.dashboard.Configuration.open('FileName',...
 'myConfig.xml', 'Location', pwd(), 'locale', 'ja_JP'); 
Introduced in R2018b