Filter löschen
Filter löschen

How can you include requirements in Embedded Web View Report?

27 Ansichten (letzte 30 Tage)
Joseba
Joseba am 17 Jul. 2024
Kommentiert: Satwik am 23 Aug. 2024 um 10:48
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.
  1 Kommentar
Satwik
Satwik am 23 Aug. 2024 um 10:48
Hi,
Currently, in version R2024a, there is no option to include requirements in an Embedded Web View Report. The ‘slreportgen.webview.EmbeddedWebViewDocument’ class does not provide this facility, as noted in this documentation:
Meanwhile you can programmatically export a web view and include your requirements using ‘slwebview’ by using the following command:
htmlFileName = slwebview(gcs,'OptionalViews', {'requirements' 'coverage'});

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by