bug with dataset column alias [message #93064] |
Sat, 19 November 2005 13:41  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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!!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07750 seconds