Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » computed column problem
computed column problem [message #200809] Tue, 14 November 2006 18:39 Go to next message
Eclipse UserFriend
Originally posted by: Carole_l_hargrave.yahoo.ca

I'm trying to build a data set with a computed column, and it just isn't
working....

My Query contains the following columns:

lob_cd
lob_en
lob_fr

I have a report parameter called language_cd - based on a ddlb with the
following values en, fr - en is the default.

My computed column contains the following expression:

if( valueOf(params["language_cd"]) =='en')
row["lob_en"];
else
row["lob_fr"];

I'm always getting the contents of "lob_fr", whether language_cd is
defaulted to fr or en.

Any help would be appreciated

THanks
Carole
Re: computed column problem [message #200817 is a reply to message #200809] Tue, 14 November 2006 18:45 Go to previous message
Eclipse UserFriend
Originally posted by: Carole_l_hargrave.yahoo.ca

figured it out.....

if( BirtComp.equalTo(params["language_cd"], 'en'))
row["lob_en"];
else
row["lob_fr"];


Carole Hargrave wrote:

> I'm trying to build a data set with a computed column, and it just isn't
> working....

> My Query contains the following columns:

> lob_cd
> lob_en
> lob_fr

> I have a report parameter called language_cd - based on a ddlb with the
> following values en, fr - en is the default.

> My computed column contains the following expression:

> if( valueOf(params["language_cd"]) =='en')
> row["lob_en"];
> else
> row["lob_fr"];

> I'm always getting the contents of "lob_fr", whether language_cd is
> defaulted to fr or en.

> Any help would be appreciated

> THanks
> Carole
figured it out.....

if( BirtComp.equalTo(params["language_cd"], 'en'))
row["lob_en"];
else
row["lob_fr"];
Previous Topic:Error.ScriptClassNotFoundError using class that implements IDataSourceEventHandl
Next Topic:test
Goto Forum:
  


Current Time: Sun Oct 20 13:12:15 GMT 2024

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

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

Back to the top