Nested Groups not displaying correctly

Stimulsoft Reports.Flex discussion
Locked
esfisher
Posts: 9
Joined: Wed Dec 15, 2010 3:37 pm
Location: Aurora, IL

Nested Groups not displaying correctly

Post by esfisher »

Hello again. I'm trying to create a report with a nested group. The documentation on this is very limited and provides no examples.

The desired output would be a list of facilities, the programs in those facilities, and the events that those programs are associated with.

Here is how the list should look: (abbreviated version)

- test facility 1
-- (SP-3) Sample Program
---- Dec 27th... Program: Sample Program (SP-3)
-- (SP-2) Sample Program
---- Dec 29th... Program: Sample Program (SP-2)

- test facility 2
-- (SP-2) Sample Program
---- Dec 27th... Program: Sample Program (SP-2)


And here is how it is displaying:

- test facility 1
-- (SP-3) Sample Program
---- Dec 27th... Program: Sample Program (SP-3)

- test facility 2
-- (SP-2) Sample Program
---- Dec 27th... Program: Sample Program (SP-2)
---- Dec 29th... Program: Sample Program (SP-2)


Here is the xml and report file

Code: Select all

  
    test3
    A new season
    http://parkpro.bockyn.com/parkpro/php/organization_files/2/elmhurst_logo.png
  
  
    test facility 1
    469
  
  
    test facility 2
    470
  
  
    (SP-3) Sample Program
    211
    469
  
  
    (SP-2) Sample Program
    210
    469
  
  
    (SP-2) Sample Program
    210
    470
  
  
    211
    469
    Program: Sample Program (SP-3)
    Dec 27th from 1:00 AM to 1:00 AM
    
  
  
    210
    470
    Program: Sample Program (SP-2)
    Dec 27th from 1:00 AM to 1:00 AM
    
  
  
    210
    469
    Program: Sample Program (SP-2)
    Dec 29th from 1:00 AM to 1:00 AM
    
  

Code: Select all


  
    
    
      
        header_data
        
          location_name,System.String
          organization_logo,System.String
          season_name,System.String
        
        
        header_data
        report_data.header_data
      
      
        event_data
        
          time_range,System.String
          event_name,System.String
          event_comments,System.String
          item_name,System.String
          date_id,System.String
          program_id,System.String
          facility_id,System.String
        
        
        event_data
        report_data.event_data
      
      
        facility_data
        
          facility_id,System.String
          facility_name,System.String
        
        
        facility_data
        report_data.facility_data
      
      
        program_data
        
          program_id,System.String
          facility_id,System.String
          program_name,System.String
        
        
        program_data
        report_data.program_data
      
    
    
      
        program_data
        
          program_id
          facility_id
        
        
        
        program_data
        event_dataprogram_data
        
          program_id
          facility_id
        
        
      
      
        facility_data
        
          facility_id
        
        
        
        facility_data
        program_datafacility_data
        
          facility_id
        
        
      
    
    
    
  
  EngineV2
  
  
    
      None;Black;2;Solid;False;4;Black
      Transparent
      
        
          Bottom;Black;1;Double;False;4;Black
          Transparent
          0,0.2,7.49,0.8
          
            
              True
              Transparent
              True
              True
              1.3,0.2,6.2,0.2
              
              Arial,10
              Right
              0,0,0,0
              Text10
              
              
              {"Season: " + header_data.season_name + " / Location: " + header_data.location_name}
              Black
            
            
              True
              Transparent
              True
              0,0,0.8,0.8
              
              {header_data.organization_logo}
              Image1
              
              
              True
            
            
              Transparent
              5.2,0.6,2.3,0.2
              
              Arial,8
              Right
              0,0,0,0
              Text11
              
              
              Printed: {Time}
              Black
            
            
              Transparent
              5.2,0.4,2.3,0.2
              
              Arial,8
              Right
              0,0,0,0
              Text12
              
              
              {PageNofM}
              Black
            
            
              Transparent
              5.2,0,2.3,0.2
              
              Arial,12,Bold
              Right
              0,0,0,0
              Text13
              
              
              Facility Assignment Report
              Black
            
          
          
          PageHeaderBand1
          
          
        
        
          Transparent
          0,1.4,7.49,0.2
          
            
              Transparent
              0,0,7.5,0.2
              
              Arial,8,Bold
              0,0,0,0
              Text6
              
              
              {event_data.program_data.facility_data.facility_name}
              Black
            
          
          {event_data.program_data.facility_data.facility_id}
          
          GroupHeaderBand1
          
          
          None
        
        
          Bottom;Black;1;Solid;False;4;Black
          Transparent
          0,2,7.49,0.4
          
            
              Transparent
              True
              0.4,0.2,2.4,0.2
              
              Arial,8,Bold
              0,0,0,0
              Text2
              
              
              Time
              Black
              Bottom
            
            
              Transparent
              True
              3.4,0.2,4.1,0.2
              
              Arial,8,Bold
              0,0,0,0
              Text3
              
              
              Event/Program
              Black
              Bottom
            
            
              Transparent
              0.4,0,7.1,0.2
              
              Arial,8,Bold
              0,0,0,0
              Text4
              
              
              {event_data.program_data.program_name}
              Black
            
          
          {event_data.program_data.program_id}
          
          GroupHeaderBand2
          
          
          None
        
        
          None;Black;1;Dash;False;4;[153:153:153]
          White
          0,2.8,7.49,0.2
          
            
              Transparent
              0.6,0,2.4,0.2
              
              Arial,8
              0,0,0,0
              Text1
              
              
              {event_data.time_range}
              Black
            
            
              Transparent
              3.4,0,2,0.2
              
              Arial,8
              0,0,0,0
              Text5
              
              
              {event_data.event_name}
              Black
            
            
              Transparent
              True
              5.5,0,2,0.2
              
              Arial,8,Italic
              0,0,0,0
              Text7
              
              
              {event_data.event_comments}
              Black
              HotkeyPrefix=None, LineLimit=False, RightToLeft=False, Trimming=None, WordWrap=True, Angle=0, FirstTabOffset=40, DistanceBetweenTabs=20,
            
          
          white_row
          
          event_dataprogram_data
          event_data
          white_row
          
          DataBand1
          color_row
          
          
          
        
      
      
      ffd73b8024d9655d5761f225b090d456
      0.39,0.39,0.39,0.39
      Page1
      11.69
      8.27
      
      
        Arial,100
        [50:0:0:0]
      
    
  
  
  Report
  12/22/2010 12:55:30 PM
  12/22/2010 12:55:30 PM
  C:\Users\Eric\Adobe Flash Builder 4\ParkPro2_Flex\bin-debug\reports\programLocationReport.mrt
  ee0f3544aa724844a1d3f225b09047dd
  Report
  Inches
  
  CSharp
  
    
      None;Black;1;Dash;False;4;[153:153:153]
      Gainsboro
      Arial,8
      color_row
      Black
    
    
      None;Black;1;Dash;False;4;[153:153:153]
      White
      Arial,8
      white_row
      Black
    
    
      All;Black;1;Dash;False;4;Black
      Transparent
      Arial,8
      databand_list_style
      Black
    
    
      Transparent
      Arial,8
      Style1
      Black
    
  
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Nested Groups not displaying correctly

Post by Ivan »

Hello,

Please set the SortDirection property of GroupHeaderBand1 to Ascending, and the SortDirection property of GroupHeaderBand2 to Descending.

Thank you.
Locked