Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 244980 - NoOuterResultsExist thrown when accessing cube data on a chart
Summary: NoOuterResultsExist thrown when accessing cube data on a chart
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: Future   Edit
Assignee: Yulin Wang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-22 13:12 EDT by erlich CLA
Modified: 2008-09-18 04:55 EDT (History)
3 users (show)

See Also:


Attachments
The report design that shows the problem. (75.79 KB, application/octet-stream)
2008-08-25 23:26 EDT, Lin Zhu CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description erlich CLA 2008-08-22 13:12:16 EDT
 
Comment 1 erlich CLA 2008-08-22 13:16:04 EDT
sory
here's the description:
i have a report with a pie chart with a cube data source..
the category definition is based on a parameter, so i put:
data[params["a"].value+"/"+params["b"].value];
this throws me a NoOuterResultsExist

so i played a little, i found that is a do data["a/a"] it works but if a use data["a"+"/"+"a"] it throws me the same error.. 
is this a bug? o did i do something wrong?
Comment 2 erlich CLA 2008-08-22 15:44:50 EDT
i tried to do something to work with this.. but it seems that only the data["a/a"] may be included in the script..
if i do something like a conditional for choosing between a and b ( the parameter values) it also throws the exception.
here is the message:
InternalError: data.engine.NoOuterResultsExist (<inline>#5)

where 5 is the line in which the data["a/a"] appears in the script editor..
Comment 3 Lin Zhu CLA 2008-08-25 09:16:01 EDT
Thanks for reporting this bug. This is indeed not a bug. We do not allow script expression in column binding name.

However, the exception message is not proper in the case. We will seek for enhancement.

Comment 4 erlich CLA 2008-08-25 09:35:56 EDT
But this appears on the chart wizard when setting the category / value definition when it's binded to a cube instead of a data set
if i use data set it works fine, it's just that i prefer to use the cube 
Comment 5 erlich CLA 2008-08-25 12:16:26 EDT
with BIRT 2.2 i use row[params["a"]] but now grouping doesn't work well for me so i try to use cube.. but i need the category definition to work in the same way
Comment 6 Lin Zhu CLA 2008-08-25 23:24:33 EDT
Sorry I've made a mistake. In script expression, you can use script like row["A"+"B"].

However when define binding names, you should always use string.

I've made a test against BIRT 2.3.1, when using Chart, the exception is thrown.When use xTab, everything simply works fine.

By debuging, it looks as if chart has not populate the CubeQuery correctly.

Reassign to chart team for further investigation.
Comment 7 Lin Zhu CLA 2008-08-25 23:26:09 EDT
Created attachment 110883 [details]
The report design that shows the problem.
Comment 8 Lin Zhu CLA 2008-08-25 23:26:48 EDT
Please see attached which reproduce the problem based on Sample DB.
Comment 9 erlich CLA 2008-08-29 11:41:10 EDT
Also... when using data set if the category or value description is configured with somethign like row[param["a"]] the grouping doesn't work well
Comment 10 erlich CLA 2008-09-02 12:17:33 EDT
In general.. Scripting DOESNT work on BIRT 2.3 neither with Pie charts nor Bar charts when defining category, value, nor series.. 
Comment 11 Yulin Wang CLA 2008-09-16 00:05:49 EDT
Added evaluate support for script expression like measure["count"+"ry"], dimension["count"+"ry"]["ci"+"ty"] and data["count"+"ry"].
Regarding expression like row[param["a"]], it can't be supported. User could write the expression in parameter directly.
Comment 12 erlich CLA 2008-09-16 09:22:58 EDT
Why can't it be supported?? it did work on previous BIRT versions for charts with data sets, why doesn't it work now neither for data sets nor cubes?
Comment 13 Yulin Wang CLA 2008-09-16 21:57:25 EDT
(In reply to comment #12)
> Why can't it be supported?? it did work on previous BIRT versions for charts
> with data sets, why doesn't it work now neither for data sets nor cubes?
> 
Maybe the expression with parameter only works in runtime, i.e. in web viewer. But in design time, i.e. in chart builder, it can't be supported, because it doesn't get parameter value. I think what you want can work now.
Comment 14 erlich CLA 2008-09-17 09:12:48 EDT
But it doesn't even work in runtime..
I don't mind if it works in the viewer.. but it used to work on 2.2 runtime in web viewer and now it doesn't..
I use grouping for the values and category.. maybe it has to do with that..
Comment 15 Yulin Wang CLA 2008-09-17 22:46:11 EDT
Reassign to DTE team to investigate why expression with parameter can't work in runtime. We are unable to support it in design time.
Comment 16 Mingxia Wu CLA 2008-09-18 04:46:57 EDT
Chart needs to known which edge is used to build the cube query definition. In this case, it cannot handle the expression like data[params["xxx"]], so caused this error.
Comment 17 Yulin Wang CLA 2008-09-18 04:55:47 EDT
Chart is unable to support expression like data[params["a"].value+"/"+params["b"].value], but support row[params["a"].value].
The reason is chart needs to know actual value of data expression to generate cube query definition, but in generation time chart can't evaluate parameter expression.