Filter all "real" requirements in the requirements editor
23 views (last 30 days)
Show older comments
Matteo
on 27 Nov 2024 at 10:42
Edited: Alex Howard
on 27 Nov 2024 at 16:01
How can I create a view in the Requirements Editor that filters and displays only the "real" requirements? I want to exclude headings, chapters, and other non-requirement items, and only show elements that have a value in the "Req ID" column, as this indicates they are actual requirements.
0 Comments
Accepted Answer
Alex Howard
on 27 Nov 2024 at 14:57
Edited: Alex Howard
on 27 Nov 2024 at 16:01
Hi Matteo,
It sounds like you're trying to use filters in the Requirements Editor. There might be multiple filter criteria that you can use to show only the requirements that you want to. To accomplish this, you should use a view in the Requirements Editor and then create a requirements filter for the view. For more information, see Configure Views in the Requirements Editor.
You might be able to define a filter that only shows requirements that have a certain type. For example, this filter only shows requirements that have the type set to Functional:
{"ReqType","Functional"};
It sounds like you're trying to create a filter for requirements that have a non-empty Id property. I'm not familiar with a configuration where some requirements have an empty value for the Id property, but if that's the case, you might be able to use a requirements filter like this to only show those requirements that have a non-empty value for the Id property:
{"Id:~=",""}
Keep in mind that you can define filters that use built-in properties of the slreq.Requirement class in addition to custom attributes and stereotype properties. For example, this filter shows only requirements that have a non-empty value for a custom attribute called MyCustomAttribute.
{"MyCustomAttribute:~=",""}
Let me know if that helps!
0 Comments
More Answers (0)
See Also
Categories
Find more on Author Requirements 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!