Skip to main content



      Home
Home » Archived » BIRT » Get design handle from simpleapi
Get design handle from simpleapi [message #1584764] Sun, 25 January 2015 19:13 Go to next message
Eclipse UserFriend
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 11:50 Go to previous messageGo to next message
Eclipse UserFriend
So, you need this to be more dynamic than finding the elements in the design and getting their ID from the property editor?
Re: Get design handle from simpleapi [message #1586110 is a reply to message #1586064] Mon, 26 January 2015 12:17 Go to previous messageGo to next message
Eclipse UserFriend
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 14:03 Go to previous message
Eclipse UserFriend
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
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: Sat Mar 15 00:42:18 EDT 2025

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

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

Back to the top