Skip to main content



      Home
Home » Archived » BIRT » Inserting data into text using <value-of>
Inserting data into text using <value-of> [message #211417] Sat, 13 January 2007 14:50 Go to next message
Eclipse UserFriend
Originally posted by: james.kin.ucalgary.ca

I appologize if this is the wrong newsgroup - I am new to eclipse and BIRT.

I am trying to write a report (akin to a form letter) with data values
taken from a mysql database.

I have followed the tutorials and have the mysql database as a data
source. I am able to drag the data set columns into the template and they
appear in the preview.

When I define a text object and use <value-of> tags as shown in the
tutorial nothing shows up in the preview.

I have read the tutorials but can't see the problem.
So, I downloaded the example ProductCatalog.rptdesign which also has a
text object and data within a <value-of> tag, and this works fine. I have
compared the example with my design but I still can't see the problem.

Any advice would be appreciated.
Thank you,
JC
Re: Inserting data into text using <value-of> [message #211491 is a reply to message #211417] Mon, 15 January 2007 00:00 Go to previous message
Eclipse UserFriend
Originally posted by: dmorehouse.mn.rr.com

Here's a quick walkthrough to get dynamic text working for you.
First add a report parameter named "imageName". Give it a default value
(doesn't really matter what value).
Next create a Text Block and insert the following:
Start Static <VALUE-OF>params.imageName</VALUE-OF> End Static
Next make sure to set the Content Type to "HTML", if it's Auto or Plain then
you'll just see <VALUE-OF>params.imageName</VALUE-OF> (not interpretted) in
the html preview.
Now look in the preview and the VALUE-OF should be replaced with the value
that you entered for the imageName report parameter.


"James" <james@kin.ucalgary.ca> wrote in message
news:f66916f92aabad25a49b6b3e80f5c844$1@www.eclipse.org...
> I appologize if this is the wrong newsgroup - I am new to eclipse and
BIRT.
>
> I am trying to write a report (akin to a form letter) with data values
> taken from a mysql database.
>
> I have followed the tutorials and have the mysql database as a data
> source. I am able to drag the data set columns into the template and they
> appear in the preview.
>
> When I define a text object and use <value-of> tags as shown in the
> tutorial nothing shows up in the preview.
>
> I have read the tutorials but can't see the problem.
> So, I downloaded the example ProductCatalog.rptdesign which also has a
> text object and data within a <value-of> tag, and this works fine. I have
> compared the example with my design but I still can't see the problem.
>
> Any advice would be appreciated.
> Thank you,
> JC
>
Previous Topic:Convert mouse X coordinate to data value
Next Topic:Birt2.1.1 problem with Xerces in Weblogic
Goto Forum:
  


Current Time: Wed Jun 18 12:16:31 EDT 2025

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

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

Back to the top