|
|
|
Re: string concatenation in expression builder [message #74074 is a reply to message #74032] |
Wed, 14 September 2005 07:22 |
|
Jorg
I may be missing what you are asking, but
if I add an image and then using the expression builder I
type
"http://urltomypic" + picvariable
and then in the initialize method of the report I type
var picvariable = "testimage.jpg";
This works for me.
Am I missing something?
Jason Weathersby
BIRT PMC
"Jorg Heymans" <jh@domek.be> wrote in message
news:dg9pg8$aau$1@news.eclipse.org...
> Mike Boyersmith wrote:
>
>> Any luck with this? What are you getting back as a value when you run?
>>
>
> Actually no, I gave up on this :-(
>
> I tested with the simplest concat operation :
> var url ="http://localhost/getImage?param=" + "staticvalue" ;
>
> but when i click preview then it says it can't find the file "var
> url="http....." , so it seems like its not evaluating the expression at
> all.
>
>
> Are expressions supported at all for image URIs ? I didn't get the
> impression from the docs that they're not.
>
>
> Thanks
> Jorg
|
|
|
|
Re: string concatenation in expression builder [message #74399 is a reply to message #74348] |
Thu, 15 September 2005 02:34 |
|
Jorg,
I tested your scenario on my system and it worked fine.
Can you cut the expression and post it?
Dont use
var url ="....
Just let the last line in the expression builder be
"http://urltomypic" + "/testimage.jpg"
Jason Weathersby
BIRT PMC
"Jorg Heymans" <jh@domek.be> wrote in message
news:dgbae7$56i$1@news.eclipse.org...
> Jason Weathersby wrote:
>> Jorg
>> I may be missing what you are asking, but
>> if I add an image and then using the expression builder I
>> type
>> "http://urltomypic" + picvariable
>>
>> and then in the initialize method of the report I type
>>
>> var picvariable = "testimage.jpg";
>>
>> This works for me.
>> Am I missing something?
>
> How would you write this without using the initialize method ? I tried
> exactly this by using the following expression as URI
> "http://urltomypic" + "/testimage.jpg" , this should yield the same
> results no ? It doesn't evaluate this expression somehow.
>
> I was trying to use the results of a query as parameters in my URI
> expression, but when that wasn't working i tried to get it to work
> statically ie with the parameters precomputed. This is how i got to this
> string concatenation problem...
>
>
> Regards,
> Jorg
|
|
|
|
Powered by
FUDForum. Page generated in 0.03523 seconds