Incorrect RequirementInfo Formatting from ''Requirements Summary Table'' slreportgen component
Afficher commentaires plus anciens
In 19a (no update installed just the baseline release) when the property "RequirementInfo" is selected in the property columns of the report generator component "Requirement Summary Table", the resulting Requirement info in the table is poorly formatted. This occurs only when the requirement is coming from a Requirement Set file (slreqx). The online examples using excel etc are reporting "RequirementInfo" correctly.
It was expected to see just the requirement description text here. However, there is some leading and trailing html style referencing of the location of this Requirement Description text cluttering up the field in the table.
Is this fixed in a 19a update or is there a work around?
As work around I had considered:
- extracting the necessary requirements as an object (req=find(rs,'Type','Requirement','ID',reqIDxyz)
- Get the Description of the requirement reqDescriptionString = req.Description (at this step you will see a bunch of leading and trailing edge html code wrapped around the Description field).
- Remove the necessary html code using extractBefore/ extractAfter commands
Above gives you the requirement description text clean. But it's a long way around and now you also need to setup your own table in the report, instead of using the convenient "Report Summary Table".
1 commentaire
Adam Whitmill
le 6 Mai 2020
Réponses (1)
Artem
le 27 Mar 2020
1 vote
Yes, this is a bug in the Product. I have just created a formal record (g2206550) and will be nominating it for next update of released product. What happens, req.Description is a rich-text field, but we need plain text for this report purpose. There is a step to strip HTML tags, but we make a mistake and leave some parts of the <style> tag. I will attach a fixed file here. You will need to put it under toolbox/shared/reqmgt/+linktypes. Sorry about the inconvenience.
3 commentaires
Adam Whitmill
le 31 Mar 2020
ruili
le 7 Déc 2022
Is there any good way to do this on R2020b, as I tried it seems to have the same problem as the 2019 version.
Artem
le 20 Déc 2022
Ruili, this was fixed in FCS of R2020b, and also in R2020a update 1, although the fix is different from what we did in R2019b. If you are still experiencing a similar problem in R2020b, please confirm.
Catégories
En savoir plus sur Reporting and Database Access dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!