Any examples or tutorials for integrating scripting? [message #61712] |
Mon, 25 July 2005 11:53  |
Eclipse User |
|
|
|
Originally posted by: benn.tilby.tangozebra.com
Hi,
The BIRT ROM_Scripting Spec document (pdf) and some of the ROM overview
provide detailed spec on the different script contexts for the report
generation phases and events/methods for element state objects, but there is
only one small part which gives an example of how to start using javascript
here. Does anyone know if there are any tutorials for this area of BIRT or
any working examples which show the kind of things that can be done here?
|
|
|
|
Re: Any examples or tutorials for integrating scripting? [message #62255 is a reply to message #61926] |
Thu, 28 July 2005 08:25   |
Eclipse User |
|
|
|
Originally posted by: benn.tilby.tangozebra.com
Jane, thanks
I have now followed the section on 'Setting expression properties' in
'Scripted control of report items' in 'Using scripting in a report design'
in the online help. Is this the help you mean?
If so, here is the technical difficulty I am having. I tried to override the
expression in a data element with some script. Have tried various options :
onCreate: me.value = "hello"; //as per the ROM_Scripting spec section
'4.2.2 Methods'
onCreate: this.value = "hello"; //as per online help (a confusing
discrepancy)
onCreate: this.keyExpr = "hello"; //getting creative here
onCreate: me.keyExpr = "hello";
onCreate: this.keyExpr.value = "hello"; //getting desperate here
onCreate: me.keyExpr.value = "hello"; //getting bored here
and the same again all with onRender (although I get that this is for
formatting so I didnt expect it to work).
I also tried these with removing the row["col_name"] from the expression, so
as to leave a 'blank' data cell (although for some reason hovering over the
cell popped up the expression I had just removed - as though it still
remained in some niche somwhere... ). Anyhow I dont see how I can bring data
into the script to have extra business logic applied to it if it removed
from the cell. And none of these attempts seemed to get my simple task to
work anyway.
Any help or direction please??
Thanks,
BT.
"Jane Tatchell" <jtatchell@actuate.com> wrote in message
news:dc6jmq$hcj$1@news.eclipse.org...
> Check out the online help in a BIRT build with a date of 20050726 or
> later.
> There are new chapters on scripting, how to use it, how to make a scripted
> data source, and reference material.
>
> --
> Jane Tatchell
> BIRT documentation lead
>
>
> "Benn Tilby" <benn.tilby@tangozebra.com> wrote in message
> news:dc31tm$m85$1@news.eclipse.org...
>> Hi,
>>
>> The BIRT ROM_Scripting Spec document (pdf) and some of the ROM overview
>> provide detailed spec on the different script contexts for the report
>> generation phases and events/methods for element state objects, but there
> is
>> only one small part which gives an example of how to start using
> javascript
>> here. Does anyone know if there are any tutorials for this area of BIRT
>> or
>> any working examples which show the kind of things that can be done here?
>>
>>
>
>
|
|
|
Re: Any examples or tutorials for integrating scripting? [message #62279 is a reply to message #62255] |
Thu, 28 July 2005 10:55  |
Eclipse User |
|
|
|
Originally posted by: benn.tilby.tangozebra.com
Jane,
Have just found the latest tutorials in the recent nightly build.
Unfortunately when I closed my rptdesign files with this version it rendered
them unreadable. Now I cant access them from my stable version.
"Benn Tilby" <benn.tilby@tangozebra.com> wrote in message
news:dcaiqo$o5f$1@news.eclipse.org...
> Jane, thanks
>
> I have now followed the section on 'Setting expression properties' in
> 'Scripted control of report items' in 'Using scripting in a report design'
> in the online help. Is this the help you mean?
>
> If so, here is the technical difficulty I am having. I tried to override
> the expression in a data element with some script. Have tried various
> options :
> onCreate: me.value = "hello"; //as per the ROM_Scripting spec section
> '4.2.2 Methods'
> onCreate: this.value = "hello"; //as per online help (a confusing
> discrepancy)
> onCreate: this.keyExpr = "hello"; //getting creative here
> onCreate: me.keyExpr = "hello";
> onCreate: this.keyExpr.value = "hello"; //getting desperate here
> onCreate: me.keyExpr.value = "hello"; //getting bored here
>
> and the same again all with onRender (although I get that this is for
> formatting so I didnt expect it to work).
> I also tried these with removing the row["col_name"] from the expression,
> so as to leave a 'blank' data cell (although for some reason hovering over
> the cell popped up the expression I had just removed - as though it still
> remained in some niche somwhere... ). Anyhow I dont see how I can bring
> data into the script to have extra business logic applied to it if it
> removed from the cell. And none of these attempts seemed to get my simple
> task to work anyway.
>
> Any help or direction please??
> Thanks,
> BT.
>
>
>
> "Jane Tatchell" <jtatchell@actuate.com> wrote in message
> news:dc6jmq$hcj$1@news.eclipse.org...
>> Check out the online help in a BIRT build with a date of 20050726 or
>> later.
>> There are new chapters on scripting, how to use it, how to make a
>> scripted
>> data source, and reference material.
>>
>> --
>> Jane Tatchell
>> BIRT documentation lead
>>
>>
>> "Benn Tilby" <benn.tilby@tangozebra.com> wrote in message
>> news:dc31tm$m85$1@news.eclipse.org...
>>> Hi,
>>>
>>> The BIRT ROM_Scripting Spec document (pdf) and some of the ROM overview
>>> provide detailed spec on the different script contexts for the report
>>> generation phases and events/methods for element state objects, but
>>> there
>> is
>>> only one small part which gives an example of how to start using
>> javascript
>>> here. Does anyone know if there are any tutorials for this area of BIRT
>>> or
>>> any working examples which show the kind of things that can be done
>>> here?
>>>
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03434 seconds