Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » [HOW] : Dynamically changing Label value(Label value should be changed dynamically through java code)
icon4.gif  [HOW] : Dynamically changing Label value [message #1007957] Fri, 08 February 2013 13:43 Go to next message
praneeth botta is currently offline praneeth bottaFriend
Messages: 6
Registered: January 2012
Junior Member
I need to dynamically change the Label value.

For example Label with name: X, has value= "Total Invoice"

How can i dynamically modify this to another value from java code ???

[Updated on: Fri, 08 February 2013 13:45]

Report message to a moderator

Re: [HOW] : Dynamically changing Label value [message #1008033 is a reply to message #1007957] Fri, 08 February 2013 15:40 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

From java or javascript within the report? Also, is this any label? Or just specific labels?

Michael

Developer Evangelist, Silanis
Re: [HOW] : Dynamically changing Label value [message #1008048 is a reply to message #1008033] Fri, 08 February 2013 16:11 Go to previous messageGo to next message
praneeth botta is currently offline praneeth bottaFriend
Messages: 6
Registered: January 2012
Junior Member
Michael Williams wrote on Fri, 08 February 2013 10:40
From java or javascript within the report? Also, is this any label? Or just specific labels?


1)From Java
2)Any label - I will give each label unique name that i know
Re: [HOW] : Dynamically changing Label value [message #1008074 is a reply to message #1008048] Fri, 08 February 2013 18:24 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

From your report design handle, you should be able to do something like:

designHandle.findElement("myLabel").setText("myValue");


Michael

Developer Evangelist, Silanis
Previous Topic:Zoom Capability
Next Topic:Reg : Particular column should not repeat
Goto Forum:
  


Current Time: Sat Aug 01 09:55:45 GMT 2015

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

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