Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Accessing Birt Elements
Accessing Birt Elements [message #1196237] Tue, 19 November 2013 10:10 Go to next message
Bathiya Ladduwahetty is currently offline Bathiya LadduwahettyFriend
Messages: 2
Registered: November 2013
Junior Member
I have BIRT Text element in Master page: eg: elementID : 175 element name :myElement

also I have a PI chart: and once I click on its categories I want to invoke a script and write some text to the "TEXT" element. I tried as below: but both didn't work


reportContext.getDesignHandle().getElementByID(175).text = "some text"

reportContext.getDesignHandle().findElement("myElement").text = "some text"

I'm new to BIRT, Appreciate your help on this
Re: Accessing Birt Elements [message #1201215 is a reply to message #1196237] Thu, 21 November 2013 16:33 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

What is your BIRT version?

Michael

Developer Evangelist, Silanis
Re: Accessing Birt Elements [message #1208770 is a reply to message #1201215] Mon, 25 November 2013 07:05 Go to previous messageGo to next message
Bathiya Ladduwahetty is currently offline Bathiya LadduwahettyFriend
Messages: 2
Registered: November 2013
Junior Member
Hi Michael

its
Eclipse BIRT Designer Version 4.3.1


thanks

[Updated on: Mon, 25 November 2013 07:06]

Report message to a moderator

Re: Accessing Birt Elements [message #1219390 is a reply to message #1196237] Tue, 03 December 2013 16:02 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Take a look at this example. There is invoke script interactivity set up on click of the value series. In the masterpage, there's a text box with html creating a textarea block that is edited by the script when you click on a slice. Hope this helps.





Michael

Developer Evangelist, Silanis
Re: Accessing Birt Elements [message #1826232 is a reply to message #1219390] Tue, 21 April 2020 15:35 Go to previous messageGo to next message
Nicole Cochems is currently offline Nicole CochemsFriend
Messages: 2
Registered: April 2020
Junior Member
Hello,

I'm new to BIRT and sticking on just that problem.
I want to do some JavaScript actions on HTML-Elements in my report from a chart script. Unfortunately it seems that I cannot access the elements from chart?

I googled a lot to find a solution and came to this thread which is exactly what I need.
I downloaded the attached report and tried it out, but it didn't work neither!

When I click on the slice JavaScript gives this error in console:
Die Eigenschaft "value" eines undefinierten oder Nullverweises kann nicht festgelegt werden.
= The property "value" of an undefined or null reference cannot be fixed.


This is exactly the same what happened to me when trying to use document.getElementById in the "Invoke Script" action of a chart.

Can anybody help me out?

I use Latest Bild Birt Report Designer 4.8.0 and Runtime 4.8.0.

Re: Accessing Birt Elements [message #1826421 is a reply to message #1826232] Fri, 24 April 2020 16:04 Go to previous message
Nicole Cochems is currently offline Nicole CochemsFriend
Messages: 2
Registered: April 2020
Junior Member
I figured it out myself now; you have to use

top.document.getElementById

instead of

document.getElementById


I uploaded the corrected example if someone needs it.
Previous Topic:Birt 4.8 ignores height of empty table rows
Next Topic:Area Chart v2.0.1
Goto Forum:
  


Current Time: Tue Mar 19 08:06:24 GMT 2024

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

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

Back to the top