Skip to main content



      Home
Home » Archived » BIRT » make the fields flexible
make the fields flexible [message #234904] Mon, 16 April 2007 23:45 Go to next message
Eclipse UserFriend
i would like to change the field name from 'NAME' to 'CODE' refering to
the parameters that passed.for exam if the param1 pass the value of
'NAME', then the label will dispaly as name but when param1 pass the value
of 'code' then the label will display as 'CODE'. so do if i wanna make the
dataRow['code'] displayed when the param1 = 'code' and dataRow['name']
displayed when the param1 = 'name'. how to do it??
Re: make the fields flexible [message #235044 is a reply to message #234904] Tue, 17 April 2007 13:31 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.alltel.net

In the expression you could enter an if statement or just put in
something like:
dataSetRow[params["param"]]

Jason


moon wrote:
> i would like to change the field name from 'NAME' to 'CODE' refering to
> the parameters that passed.for exam if the param1 pass the value of
> 'NAME', then the label will dispaly as name but when param1 pass the
> value of 'code' then the label will display as 'CODE'. so do if i wanna
> make the dataRow['code'] displayed when the param1 = 'code' and
> dataRow['name'] displayed when the param1 = 'name'. how to do it??
Previous Topic:Scripted datasource & scope of variable
Next Topic:No empty pages despite multiple empty text items with page breaks
Goto Forum:
  


Current Time: Mon Jul 21 21:49:13 EDT 2025

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

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

Back to the top