![]() |
Telelogic System Architect (steve huntington) | ![]() |
Topic Title: Sub Reports for definitions Topic Summary: Created On: 20-Mar-2007 12:08 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Hi I have spoken with a collegue and established that the stylesheets are quite particular about the format of the data which they process. It appears that you need to report on the 'Name' of the top level items in the subreport, and specify that it is 'invisible' (since we don't want them output). Since you also want to report on 'Name' at a lower level of the report, you also need to change the 'legend' at that level, to ensure it does not also take the type 'invisible'. Attached is the ammended sub report. Hope this does what you require (it worked in my sample) Thanks Ian | |||
![]() |
|||
We've created countless custom definitions and IWP generation reports for these definitions. However, I'm having problems creating one. Here's what we want to do....
We have a Definition call it A that is used by a definition call it B. We want the "A" definition report to generate the properties of definition A and then 'conditionally' run a sub report that says if there are definitions B that use definition A list them. This would seem to be simple but we can't get it to work. What happens is if definition A is used by B our report/subreport work fine. However for those times when definition A does not have any definition Bs that use it, then it generates none of the properties for the definition A what we want because the sub report is false. If someone can give me a sample report/subreport that will do this I can tailor it for our needs. Thanks! Mark |
|||
![]() |
|||
![]() |
|||
I think what you are trying to do requires the keyword PARTIAL.
If you place this at the level in the report where you are outputting definition A's properties, it will not require the match on definition B. The reporting system requires a match at all levels in order to produce output. PARTIAL tells the reporting system to output the higher levels, even if the lower levels don't produce a match. Hope this helps - if not, please add a sample report, that might help us. Thanks Ian ------------------------- Senior Software Developer Telelogic UK Ltd. |
|||
![]() |
|||
![]() |
|||
Hi Ian, |
|||
![]() |
|||
![]() |
|||
Hi On having a quick look I think the subreport should be as attached. ------------------------- Senior Software Developer Telelogic UK Ltd. |
|||
![]() |
|||
![]() |
|||
Your suggestion does not work. Again what we're trying to do is in IWP we have a report saying what properties we want to display for that definition type. Then we want to run a sub report showing any DIFFERENT definitions of type xxx that USE the definition in our main report. We can show definitions used by the one in our main report but not the reverse.
Edited: 13-Apr-2007 at 21:40 by Mark Frazier |
|||
![]() |
|||
![]() |
|||
Hi ------------------------- Senior Software Developer Telelogic UK Ltd. Edited: 16-Apr-2007 at 13:01 by SA Team |
|||
![]() |
|||
![]() |
|||
Ian,
This almost works. What's now happening is if there are two or more 'Intel Programs' linked to a 'Master Capability Library' then the sub report runs and correctly lists all the intell programs that use it. However, an odd thing is happening. For those cases where there is only one 'Intel Program' that uses a 'Master Capability Library' the sub report runs and does NOT list the one intel program. If I then add to any other 'Intel Program' a link saying it uses the same 'Master Capability Library' that was previously used by only one program, it will then show both programs. But it never works when there is only ONE. P.S. I run these same reports in SA reports and everthing works correctly, however in IWP I'm getting what I descriped above. Mark |
|||
![]() |
|||
![]() |
|||
Hi I have reproduced your scenario in IWP on my machine with my test data. I will take a look to see what is happening, it may be my report, or something in the stylesheet which is not coping with the XML properly. (I'm guessing the stylesheet as I think the subreports are being generated correctly)
------------------------- Senior Software Developer Telelogic UK Ltd. Edited: 18-Apr-2007 at 15:13 by SA Team |
|||
![]() |
|||
![]() |
|||
Hi
I have spoken with a collegue and established that the stylesheets are quite particular about the format of the data which they process. It appears that you need to report on the 'Name' of the top level items in the subreport, and specify that it is 'invisible' (since we don't want them output). Since you also want to report on 'Name' at a lower level of the report, you also need to change the 'legend' at that level, to ensure it does not also take the type 'invisible'. Attached is the ammended sub report. Hope this does what you require (it worked in my sample) Thanks Ian ------------------------- Senior Software Developer Telelogic UK Ltd. |
|||
![]() |
|||
![]() |
|||
Thanks!
Mark |
|||
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.