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 botta
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 Williams
Messages: 1595
Registered: July 2009
Senior Member

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

Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
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 botta
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 Williams
Messages: 1595
Registered: July 2009
Senior Member

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

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


Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:Zoom Capability
Next Topic:Reg : Particular column should not repeat
Goto Forum:
  


Current Time: Sat Sep 20 22:12:23 GMT 2014

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

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