how are you creating the Report?

I saw an error message like this if I tried to make a ERJRFoundationDataSource 
without first creating a new EC and locking it.

are you following Kieran's example? or rolling your own?


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

> From: [Pyramide Ingenierie] Bruno WIESEN <[email protected]>
> Subject: Re: ERJasperReports
> To: "Theodore Petrosky" <[email protected]>
> Cc: [email protected]
> Date: Wednesday, October 31, 2012, 9:47 AM
> Hello,
> I just found this log:
> [2012-10-31 14:42:16 CET] <WorkerThread0>
> Exception while getting method:
> editingContextShouldFetchObjects on
> class:er.extensions.eof.ERXDefaultEditingContextDelegate[2012-10-31 14:42:16 
> CET] <WorkerThread0>
> java.lang.NoSuchMethodException:
> er.extensions.eof.ERXDefaultEditingContextDelegate.editingContextShouldFetchObjects(com.webobjects.eocontrol.EOEditingContext,
> com.webobjects.eocontrol.EOFetchSpecification)        at
> java.lang.Class.getMethod(Class.java:1605)    at
> com.webobjects.foundation._NSDelegate._delegateMethodForInterfaceMethod(_NSDelegate.java:119)
>  at
> com.webobjects.foundation._NSDelegate._cachedMethodForName(_NSDelegate.java:102)
>       at
> com.webobjects.foundation._NSDelegate.respondsTo(_NSDelegate.java:146)        
> at
> com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4063)…
> Any idea of the
> problem ?
> 
> 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]..................................................................
> 
> 
> 
> 
> 
> Le 26 oct. 2012 à 13:55, Theodore Petrosky <[email protected]>
> a écrit :
> 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