Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » DataRow.rowNo how does this work
DataRow.rowNo how does this work [message #39304] Mon, 23 May 2005 18:47 Go to next message
Mike Boyersmith is currently offline Mike BoyersmithFriend
Messages: 143
Registered: July 2009
Senior Member
A couple more questions

Q: I'm trying to write some Java script as part of an expression
and I have

var count = DataRow.rowNo;

but I get an error when I go to preview, any ideas why this doesn't
evaluate.


Q: When will the expression editor have intelli-sense, to support Object
available methods and attributes?
Re: DataRow.rowNo how does this work [message #39334 is a reply to message #39304] Mon, 23 May 2005 18:59 Go to previous messageGo to next message
Mike Boyersmith is currently offline Mike BoyersmithFriend
Messages: 143
Registered: July 2009
Senior Member
hmmm :| I also tried. from the rom spec

var r = report.dataSets["DataInfo"].row
var rowNumber = r.rowNo

where "DataInfo" is the name of my data set.
and still can't get the row index, any idea how this is done?

Also

Q: When will the expression editor have intelli-sense, to support Object
available methods and attributes?

----

Mike Boyersmith wrote:
> A couple more questions
>
> Q: I'm trying to write some Java script as part of an expression
> and I have
>
> var count = DataRow.rowNo;
>
> but I get an error when I go to preview, any ideas why this doesn't
> evaluate.
>
>
> Q: When will the expression editor have intelli-sense, to support Object
> available methods and attributes?
>
>
Re: DataRow.rowNo how does this work [message #39364 is a reply to message #39304] Mon, 23 May 2005 20:33 Go to previous messageGo to next message
Scott Rosenbaum is currently offline Scott RosenbaumFriend
Messages: 425
Registered: July 2009
Senior Member
Mike,

I found this same issue and have logged a bug on it. In the meantime
you can use:
row[0] which gets a field that holds a zero based number for the
position of the record in the DataSet.

Scott Rosenbaum
BIRT PMC

Mike Boyersmith wrote:

> A couple more questions
>
> Q: I'm trying to write some Java script as part of an expression
> and I have
>
> var count = DataRow.rowNo;
>
> but I get an error when I go to preview, any ideas why this doesn't
> evaluate.
>
>
> Q: When will the expression editor have intelli-sense, to support
> Object available methods and attributes?
>
>
Re: DataRow.rowNo how does this work [message #40661 is a reply to message #39334] Tue, 24 May 2005 23:05 Go to previous message
Paul Rogers is currently offline Paul RogersFriend
Messages: 152
Registered: July 2009
Senior Member
Mike,

As Scott pointed out, the team decided to drop the name alias for the row
number column out of concern for the "rowNo" name clashing with a real
column name. The data row is an array of values, and allows both numeric and
string indexes. Even though the "rowNo" string index is not available, you
can use the numeric index: row[0]. (Columns from your data set are defined
to start with index 1, so BIRT reserves index 0 for the row count.)

On intellisense; the UI team is looking at possible projects for the next
release and intellisense is on their list. However, at this point, no post
1.0 feature list is yet available, but watch for the candidate list in the
coming weeks.

- Paul

Paul Rogers
BIRT PMC

"Mike Boyersmith" <mjboyers@us.ibm.com> wrote in message
news:d6t9bd$euh$1@news.eclipse.org...
> hmmm :| I also tried. from the rom spec
>
> var r = report.dataSets["DataInfo"].row
> var rowNumber = r.rowNo
>
> where "DataInfo" is the name of my data set.
> and still can't get the row index, any idea how this is done?
>
> Also
>
> Q: When will the expression editor have intelli-sense, to support Object
> available methods and attributes?
>
> ----
>
> Mike Boyersmith wrote:
>> A couple more questions
>>
>> Q: I'm trying to write some Java script as part of an expression
>> and I have
>>
>> var count = DataRow.rowNo;
>>
>> but I get an error when I go to preview, any ideas why this doesn't
>> evaluate.
>>
>>
>> Q: When will the expression editor have intelli-sense, to support Object
>> available methods and attributes?
>>
Previous Topic:combining rowset data with text using java script when and where is it legal, and on what elements?
Next Topic:Scripting which images to include in my report
Goto Forum:
  


Current Time: Thu Nov 14 10:00:01 GMT 2024

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

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

Back to the top