Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Problems with hyperlinks on images/report designer
Problems with hyperlinks on images/report designer [message #830257] Tue, 27 March 2012 11:48 Go to next message
Michael Soden is currently offline Michael SodenFriend
Messages: 27
Registered: July 2009
Junior Member
Hi,

I encountered two problems with hyperlinks in BIRT 3.7.1. for which I'm
not sure whether they are already filed:

1. Resetting the hyperlink on an image from "URL" to "none" in the
report designer leaves an empty action entry in the report XML:

<list-property name="action">
<structure>
<property name="linkType">none</property>
</structure>
</list-property>

At least the HTML emitter is failing in a subsequent rendering run with
an assertion (see EngineIRVisitor#createAction( ActionHandle handle ),
line 2088, since it is not dealing with this case).

2. In an emitted HTML, URL hyperlinks on images lead to the generation
of a <div style="width:0"> tag surrounding the actual img tag. This
leads to the images not showing up correctly. This is caused by the
HTMLReportEmitter#startImage( IImageContent image ), line 2895 method,
which seems to be done by intension?

Could anyone help on the two issues?

Many thanks in advance,
Michael
Re: Problems with hyperlinks on images/report designer [message #830775 is a reply to message #830257] Wed, 28 March 2012 03:20 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

This sounds like a bug. If you remove the xml from the report design
manually does the issue happen?

Jason

On 3/27/2012 7:48 AM, Michael Soden wrote:
> Hi,
>
> I encountered two problems with hyperlinks in BIRT 3.7.1. for which I'm
> not sure whether they are already filed:
>
> 1. Resetting the hyperlink on an image from "URL" to "none" in the
> report designer leaves an empty action entry in the report XML:
>
> <list-property name="action">
> <structure>
> <property name="linkType">none</property>
> </structure>
> </list-property>
>
> At least the HTML emitter is failing in a subsequent rendering run with
> an assertion (see EngineIRVisitor#createAction( ActionHandle handle ),
> line 2088, since it is not dealing with this case).
>
> 2. In an emitted HTML, URL hyperlinks on images lead to the generation
> of a <div style="width:0"> tag surrounding the actual img tag. This
> leads to the images not showing up correctly. This is caused by the
> HTMLReportEmitter#startImage( IImageContent image ), line 2895 method,
> which seems to be done by intension?
>
> Could anyone help on the two issues?
>
> Many thanks in advance,
> Michael
Re: Problems with hyperlinks on images/report designer [message #830947 is a reply to message #830775] Wed, 28 March 2012 08:58 Go to previous messageGo to next message
Michael Soden is currently offline Michael SodenFriend
Messages: 27
Registered: July 2009
Junior Member
That's what I did and after removing the action tag from the XML
manually everything works fine.

Any idea about the second issue with the div tag in case of hyperlinks?

Thanks,
Michael


Am 28.03.2012 05:20, schrieb Jason Weathersby:
> This sounds like a bug. If you remove the xml from the report design
> manually does the issue happen?
>
> Jason
>
> On 3/27/2012 7:48 AM, Michael Soden wrote:
>> Hi,
>>
>> I encountered two problems with hyperlinks in BIRT 3.7.1. for which I'm
>> not sure whether they are already filed:
>>
>> 1. Resetting the hyperlink on an image from "URL" to "none" in the
>> report designer leaves an empty action entry in the report XML:
>>
>> <list-property name="action">
>> <structure>
>> <property name="linkType">none</property>
>> </structure>
>> </list-property>
>>
>> At least the HTML emitter is failing in a subsequent rendering run with
>> an assertion (see EngineIRVisitor#createAction( ActionHandle handle ),
>> line 2088, since it is not dealing with this case).
>>
>> 2. In an emitted HTML, URL hyperlinks on images lead to the generation
>> of a <div style="width:0"> tag surrounding the actual img tag. This
>> leads to the images not showing up correctly. This is caused by the
>> HTMLReportEmitter#startImage( IImageContent image ), line 2895 method,
>> which seems to be done by intension?
>>
>> Could anyone help on the two issues?
>>
>> Many thanks in advance,
>> Michael
>
Re: Problems with hyperlinks on images/report designer [message #832177 is a reply to message #830947] Thu, 29 March 2012 21:43 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

I see where this was changed in the code (In HTMLReportEmitter.java):

// In HTML the default display value of image is inline. We use the tag
// <div> to implement the block of the image. For inline elements, we
// need the <span> tag to make them work well.
String tag = openTagByType( display, DISPLAY_FLAG_ALL );

IHyperlinkAction hyperlinkAction = image.getHyperlinkAction( );
String url = validate( hyperlinkAction );
if ( url != null )
{
writer.attribute( HTMLTags.ATTR_STYLE, "width:0;" );
}

But I am not certain why this was added. What does your output look
like. My images still come through fine.

Jason

On 3/28/2012 4:58 AM, Michael Soden wrote:
> That's what I did and after removing the action tag from the XML
> manually everything works fine.
>
> Any idea about the second issue with the div tag in case of hyperlinks?
>
> Thanks,
> Michael
>
>
> Am 28.03.2012 05:20, schrieb Jason Weathersby:
>> This sounds like a bug. If you remove the xml from the report design
>> manually does the issue happen?
>>
>> Jason
>>
>> On 3/27/2012 7:48 AM, Michael Soden wrote:
>>> Hi,
>>>
>>> I encountered two problems with hyperlinks in BIRT 3.7.1. for which I'm
>>> not sure whether they are already filed:
>>>
>>> 1. Resetting the hyperlink on an image from "URL" to "none" in the
>>> report designer leaves an empty action entry in the report XML:
>>>
>>> <list-property name="action">
>>> <structure>
>>> <property name="linkType">none</property>
>>> </structure>
>>> </list-property>
>>>
>>> At least the HTML emitter is failing in a subsequent rendering run with
>>> an assertion (see EngineIRVisitor#createAction( ActionHandle handle ),
>>> line 2088, since it is not dealing with this case).
>>>
>>> 2. In an emitted HTML, URL hyperlinks on images lead to the generation
>>> of a <div style="width:0"> tag surrounding the actual img tag. This
>>> leads to the images not showing up correctly. This is caused by the
>>> HTMLReportEmitter#startImage( IImageContent image ), line 2895 method,
>>> which seems to be done by intension?
>>>
>>> Could anyone help on the two issues?
>>>
>>> Many thanks in advance,
>>> Michael
>>
>
Previous Topic:Set a global variable using report parameter
Next Topic:Unexpected behavior difference between IReportContext.setGlobalVariable/setPageVariable
Goto Forum:
  


Current Time: Fri Mar 29 10:11:44 GMT 2024

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

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

Back to the top