Skip to main content



      Home
Home » Archived » BIRT » chart series dataset altering
chart series dataset altering [message #179081] Thu, 20 July 2006 09:14 Go to next message
Eclipse UserFriend
Originally posted by: lgodard.indesko.com

Hi

still a newbye question

i try to alter the values of a dataset

series.getDataset.getValues()
returns a
java.lang.Object
(an array of string or double)

how can i manipulate these values (add values) in a chart script
so that series.getDataset.setValues(newArray) is processed

i get here an error
Error0 : Unable to process dataset content specified as
org.mozilla.javascript.NativeArray@e229be for dataset
org.eclipse.birt.chart.model.data.impl.NumberDataSetImpl@22b8ff (values:
org.mozilla.javascript.NativeArray@e229be) ( 1 time(s) )

feel free to ask for more details

thanks in advance

Laurent
Re: chart series dataset altering [message #179104 is a reply to message #179081] Thu, 20 July 2006 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Maybe you can check the Rhino syntax to create such typed arrays.
http://www.mozilla.org/rhino/ That's the engine being used in scripting.
Alternatively you can write your script in Java, so you don't have to worry
about this Java/JavaScript conversion.

Thanks,

David

"Laurent Godard" <lgodard@indesko.com> wrote in message
news:e9nvbn$3cu$1@utils.eclipse.org...
> Hi
>
> still a newbye question
>
> i try to alter the values of a dataset
>
> series.getDataset.getValues()
> returns a
> java.lang.Object
> (an array of string or double)
>
> how can i manipulate these values (add values) in a chart script
> so that series.getDataset.setValues(newArray) is processed
>
> i get here an error
> Error0 : Unable to process dataset content specified as
> org.mozilla.javascript.NativeArray@e229be for dataset
> org.eclipse.birt.chart.model.data.impl.NumberDataSetImpl@22b8ff (values:
> org.mozilla.javascript.NativeArray@e229be) ( 1 time(s) )
>
> feel free to ask for more details
>
> thanks in advance
>
> Laurent
Re: chart series dataset altering [message #179128 is a reply to message #179104] Thu, 20 July 2006 12:00 Go to previous message
Eclipse UserFriend
Originally posted by: lgodard.indesko.com

Hi again

> Maybe you can check the Rhino syntax to create such typed arrays.
> http://www.mozilla.org/rhino/ That's the engine being used in scripting.

thanks, i'll have a look

> Alternatively you can write your script in Java, so you don't have to worry
> about this Java/JavaScript conversion.
>

i'll try, but is this also included in the .rptdesign file (so standalone)

Thanks again

Laurent
Previous Topic:add data to chart by script
Next Topic:Invalid JDBC escape syntax [with JDTS Driver]
Goto Forum:
  


Current Time: Thu May 08 14:18:04 EDT 2025

Powered by FUDForum. Page generated in 0.25457 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top