This worked for me:

NSMutableArray<?> accplsh = new NSMutableArray(checklist.accomplishments());

ERXArrayUtilities.sortArrayWithKey( accplsh, "orderInt", null); //not important 
for example

ERJRFoundationDataSource accomplishDataSource = new 
ERJRFoundationDataSource((NSArray<? extends NSKeyValueCodingAdditions>) 
accplsh);
                
parameters.put("accomplishments", accomplishDataSource);

then in iReport accomplishments is a parameter of type: java.lang.Object

the subreport has a Data Source Expression :  $P{accomplishments}

and it worked.

Ted

--- On Fri, 10/26/12, [Pyramide Ingenierie] Bruno WIESEN 
<[email protected]> wrote:

> From: [Pyramide Ingenierie] Bruno WIESEN <[email protected]>
> Subject: ERJasperReports
> To: "[email protected]" <[email protected]>
> Date: Friday, October 26, 2012, 6:16 AM
> Hi,
> I currently try to use the wonder framework
> ERJasperReports, everything was ok until i try to create a
> sub report that uses a new datasource…
> Here is what I do:
> ERJRFoundationDataSource
> livclisDataSource 
> = new ERJRFoundationDataSource(fSession.fMenuClients.fEditedFactureCli.livclisSortedByDateLiv());
> parameters.put("livclis",
> livclisDataSource);
> In iReport, I created a
> parameter (type Object) in my master report and I set it as
> the datasource for the sub report… The problem is that my
> report is no more generated since then… Safari keeps
> loading for hours... 
> Is there a log
> ? What can be wrong
> ?
> Best
> Regards,
> Bruno 
> WIESEN..................................................................Bruno 
> WIESEN          
>         [email protected] OS Software
> Developer
> Pyramide Ingenierie
> sprl    
>   Tel:  +32 87 292130188 rue de
> Liege          
>     Fax:  +32 87 292139B-4800 Verviers         
>       
> Mail: [email protected]..................................................................
> 
> 
> 
> -----Inline Attachment Follows-----
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to [email protected]
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to