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 08: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 08:45]

Report message to a moderator

Re: [HOW] : Dynamically changing Label value [message #1008033 is a reply to message #1007957] Fri, 08 February 2013 10:40 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1560
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 11: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 13:24 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1560
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: Wed Aug 27 05:10:05 EDT 2014

Powered by FUDForum. Page generated in 0.02748 seconds