Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Get design handle from simpleapi
Get design handle from simpleapi [message #1584764] Mon, 26 January 2015 00:13 Go to next message
Javier L de los Mozos is currently offline Javier L de los MozosFriend
Messages: 2
Registered: January 2015
Junior Member
Hi, I need to get a design handle for a report element from simpleapi script. I know how to do it with reportContex.getDesignHandle().findElement(name), but I have some problems when the elements aren't named.

I would like to use getElementById() but I can't find a way to get the id from the this available in the event script.

I don't know if there is any other way to get this done.

Thank you.
Re: Get design handle from simpleapi [message #1586064 is a reply to message #1584764] Mon, 26 January 2015 16:50 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

So, you need this to be more dynamic than finding the elements in the design and getting their ID from the property editor?

Michael

Developer Evangelist, Silanis
Re: Get design handle from simpleapi [message #1586110 is a reply to message #1586064] Mon, 26 January 2015 17:17 Go to previous messageGo to next message
Javier L de los Mozos is currently offline Javier L de los MozosFriend
Messages: 2
Registered: January 2015
Junior Member
Yes, I need to get the ID within a script. Specifically in the table onPrepare event.
Re: Get design handle from simpleapi [message #1586244 is a reply to message #1586110] Mon, 26 January 2015 19:03 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

I don't see where you can access the ID from the simpleapi, but you could do something like this:

this.name = "myTable";
reportContext.getDesignHandle().findElement("myTable")//do something


Michael

Developer Evangelist, Silanis
Previous Topic:Authority to Operate (AtO) or Certificate of Networthiness (CoN)
Next Topic:What is the alternative to DrillDownGroupLevel function in Birt?
Goto Forum:
  


Current Time: Wed Nov 14 04:19:15 GMT 2018

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

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

Back to the top