|Re: Inserting Background Image Problem [message #775845 is a reply to message #775839]
||Fri, 06 January 2012 19:17
| Jason Weathersby
Registered: July 2009
We have a small primer on scripting at:|
We need to expand this.
When you change styles in the before factory you are using the DE API
and we have a lot of examples and even a webinar on this api at
BIRT-exchange.org. Here is an example
StyleHandle.COLOR_PROP, "#009B9B" );
StyleHandle.FONT_WEIGHT_PROP, DesignChoiceConstants.FONT_WEIGHT_BOLD );
StyleHandle.BACKGROUND_IMAGE_TYPE_PROP, "" );
On 1/6/2012 2:01 PM, JB wrote:
> I am changing the background based on parameters so beforeFactory would
> actually work. Your solution of setting the backgroundImage to "" is a
> good fit for my report.
> One of the things that I am struggling with in learning the scripting side
> of things is the actual keywords and options for an object.
> For example, what would the code be to change a background in a style?
> I am spending hours every day just combing through websites and forums
> looking for the small snippet of code that will work for me every time I
> try to do something new. Overall though, I like the BIRT and am finding
> the support very helpful.
> On Fri, 06 Jan 2012 13:38:08 -0500, Jason Weathersby wrote:
>> Styles can only be changed in the beforeFactory, so that is probably to
>> early if you want to changed based on data. It is not to late if you
>> want to change based on parameter. To drop the image from the grid you
>> could always use this.getStyle().backgroundImage = ""; in the onRender
>> On 1/6/2012 1:19 PM, JB wrote:
Powered by FUDForum
. Page generated in 0.02747 seconds