javascript - How do I give a default string value to a null cell in BIRT? -


i new birt , javascript. have made report in null values represented blanks. want replace these blanks default string, eg "--". how current report being displayed:

 date         temperature    pressure    weight    colour 20130717       102                                  red 20130716                                   100      blue 20130715                        20         150 

the blank spaces correspond null values of columns in database. now, want report displayed in following manner:

 date         temperature    pressure    weight    colour 20130717         102             --         --      red 20130716         --              --        100      blue 20130715         --              20        150       -- 

i.e., cells null values replaced default string "--". how do in birt using javascript or other method? also, datasets of type varchar.

you don't data source is, if sql data base, use 1 of these sql functions convert null, in sql query.

isnull()  nvl(), ifnull(),   coalesce()  

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -