Skip to main content



      Home
Home » Archived » BIRT » bug with dataset column alias
bug with dataset column alias [message #93064] Sat, 19 November 2005 13:41 Go to next message
Eclipse UserFriend
Originally posted by: ryan.mi-roof.com

I think I've identified a bug with having two datasets with the same column
names.

- I have a list with a binded dataset with a column called "Name"
- I have a nested table within this list that also has a different binded
dataset with a column called "Name".
- I changed the first dataset to use alias of "PersonName".

When I try to output row["PersonName"] in the table, it's throwing an error.
If I try outputting any of the other columns from the first dataset, it
works fine.....only errors out on the column with the alias. I'm able to
output row["PersonName"] in the list, but not in the listed table.

Can someone verify that this is a bug? Or, tell me what I'm doing wrong???

Thanks!!
Re: bug with dataset column alias [message #94990 is a reply to message #93064] Mon, 28 November 2005 22:18 Go to previous message
Eclipse UserFriend
Since your inner table has its own data set, you can only use "row" to
access its data set, which according to your description does not contain
the PersonName column.
To access the outer list's row data within the inner table, use the "rows"
variable. Try ( rows[0]["PersonName"] ). Does this help?

Gary Xue
BIRT Committer

"Ryan Schulz" <ryan@mi-roof.com> wrote in message
news:dlnrka$5va$1@news.eclipse.org...
> I think I've identified a bug with having two datasets with the same
column
> names.
>
> - I have a list with a binded dataset with a column called "Name"
> - I have a nested table within this list that also has a different binded
> dataset with a column called "Name".
> - I changed the first dataset to use alias of "PersonName".
>
> When I try to output row["PersonName"] in the table, it's throwing an
error.
> If I try outputting any of the other columns from the first dataset, it
> works fine.....only errors out on the column with the alias. I'm able to
> output row["PersonName"] in the list, but not in the listed table.
>
> Can someone verify that this is a bug? Or, tell me what I'm doing
wrong???
>
> Thanks!!
>
>
Previous Topic:Specify JDBC Connection URL at RunTime (or at least deployment time)?
Next Topic:Images problem
Goto Forum:
  


Current Time: Fri Jul 18 05:29:05 EDT 2025

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

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

Back to the top