Incorrect RequirementInfo Formatting from ''Requirements Summary Table'' slreportgen component
Show older comments
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 Comment
Adam Whitmill
on 6 May 2020
Answers (1)
Artem
on 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 Comments
Adam Whitmill
on 31 Mar 2020
ruili
on 7 Dec 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
on 20 Dec 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.
Categories
Find more on Requirements Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!