Skip to main content



      Home
Home » Archived » BIRT » Cannot seem to get any Native Javascript Funcions to work
Cannot seem to get any Native Javascript Funcions to work [message #200415] Sun, 12 November 2006 04:14 Go to next message
Eclipse UserFriend
Originally posted by: shlomo.sanders.exlibris.co.il

I am trying to write an Expression to control Visibility (see below).
I cannot seem to get any Native Javascript Funcions to work.
What am I doing wrong.

Here is the error message tha I am getting:
There are errors evaluating script "row["HOME_PHONE"].toString()=="""

I have also tried simple things like row["HOME_PHONE"].length()==0

The problem actually started when I have tried row["HOME_PHONE"]=="" and
the row stayed visible. I am sure there is no data in the field. My data
source is an Oracle table.
Re: Cannot seem to get any Native Javascript Funcions to work [message #200658 is a reply to message #200415] Mon, 13 November 2006 21:42 Go to previous message
Eclipse UserFriend
Hi Shlomo,
The scripts you lists are invalid.
"row["HOME_PHONE"].toString()=="""---->The function toString(){natvie code
for String.toString} can not be used as the left-hand side of assignment or
as an operand of ++ or -- operator.
" row["HOME_PHONE"].length()==0"-----> length is not a function at all. You
can use row["HOME_PHONE"].length attribute to refer its length attribute.
"row["HOME_PHONE"]=="""----->Put value on result set row is not supported.
So if you want to get your target, maybe you could try this:
if(row["HOME_PHONE"]!= null )
"";
Wish it could work.

Thanks
Mingxia

"Shlomo" <shlomo.sanders@exlibris.co.il> wrote in message
news:210f91c6c0801f54c00f005189997ba8$1@www.eclipse.org...
>I am trying to write an Expression to control Visibility (see below).
> I cannot seem to get any Native Javascript Funcions to work.
> What am I doing wrong.
>
> Here is the error message tha I am getting:
> There are errors evaluating script "row["HOME_PHONE"].toString()=="""
>
> I have also tried simple things like row["HOME_PHONE"].length()==0
>
> The problem actually started when I have tried row["HOME_PHONE"]=="" and
> the row stayed visible. I am sure there is no data in the field. My data
> source is an Oracle table.
>
Previous Topic:Instructions to run tests after checking out and building birt.
Next Topic:I need help creating line chart programatically
Goto Forum:
  


Current Time: Sun Jun 08 13:11:17 EDT 2025

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

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

Back to the top