Main Content

slreportgen.finder.DataDictionaryResult class

Package: slreportgen.finder
Superclasses: mlreportgen.finder.Result

Data dictionary search result object


An object of the slreportgen.finder.DataDictionaryResult class represents a result of a search for data dictionaries. You can append a DataDictionaryResult object directly to a report. Alternatively, you can use the getReporter method to access the reporter for the result and then customize the reporter and append it to the report.

The slreportgen.finder.DataDictionaryResult class is a handle class.

Class Attributes


For information on class attributes, see Class Attributes.


You do not create an slreportgen.finder.DataDictionaryResult object explicitly. The slreportgen.finder.DataDictionaryFinder find and next methods create an slreportgen.finder.DataDictionaryResult object for each data dictionary that is found.


expand all

Full path of the data dictionary represented by this result, specified as a string scalar. This property is read-only.

File name of data dictionary represented by this result, specified as a string scalar. This property is read-only.

Additional information to save with this result. You can set this property to any type of value.


expand all


collapse all

Use the getReporter method of an slreportgen.finder.DataDictionaryResult object to access the data dictionary reporter for the result. Then, customize the reporter by setting its properties.

Import the MATLAB and Simulink Report API packages so that you do not have to use long, fully qualified class names.


Create a Simulink report and add a table of contents.

rpt ="MyReport","html-file");

Create a dictionary finder that searches the entire MATLAB path. Find only data dictionaries with names that begin with slrgex__fuelsys.

f = slreportgen.finder.DataDictionaryFinder();
f.Name = "slrgex_fuelsys*";

Create a chapter with a section for each data dictionary result. For each result, customize the reporter to include only the Name, Value, and Class properties in the Design Data summary table.

ch = Chapter("Data Dictionaries");
while hasNext(f)
    result = next(f);
    s = Section(result.Name);
    rptr = getReporter(result);
    rptr.SummaryProperties = ["Name" "Value" "Class"];

Add the chapter to the report. Close and view the report.


The report has a section for each of the found dictionaries, slrgex_fuelsys.sldd and slrgex_fuelsys_fuel_rate_control.sldd. The summary table for each dictionary includes only the Name, Value, and Class properties.

Version History

Introduced in R2020b