How can you include requirements in Embedded Web View Report?

42 次查看(过去 30 天)
I have searched the forums, Google and the documentation for hours, but i cannot find a way to include the requirements in an Embedded Web View Report. My MATLAB version is R2024a.
While it is easy to include the requirements when generating an standard webview form Simulink (see image below), it does not seem to be possible to do so with code in Embedded Web View Report generation.
The following code belongs to the class that i am using to generate this report (it is worth mentioning that there are no issues here, the report is correctly generated):
function rpt = classReportGeneratorWebview(reportName,modelName)
rpt@slreportgen.webview.EmbeddedWebViewDocument(...
reportName,modelName);
% Suppress Link Warning Messages for Embedded Web View Reports:
rpt.ValidateLinksAndAnchors = false;
% Specify Export Options for Embedded Web View Reports:
rpt.ExportOptions.SearchScope = 'All';
rpt.ExportOptions.IncludeReferencedModels = true;
rpt.ExportOptions.IncludeMaskedSubsystems = true;
end
As can be seen, the ExportOptions has properties that allow including multiple aspects. However, in the documentation (https://es.mathworks.com/help/rptgenext/ug/slreportgen.webview.exportoptions-class.html), there is no property related to including the requirements.
Therefore, when the report is generated, the button that allows access to the requirements view is obviously missing.
I would like to know if there is a way to include requirements in an Embedded Web View Report, inside the webview. Help would be much appreciated.

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by