on 04-26-2017 12:20 PM
Hello
This is my scenario:
I have an calculation view with a result of 3 values.
I expose this calculation view as a oData service.
On data access the result is not the expected result.
This happens when I use stack-views. In this example, the exposed view is created by a join between two others calculation views.
! On oData result, only the first value from view is repeated. In this example the first row is repeated for 4 times but only 1 time is expected.
Where can be the problem?
Thank you.
The URL you use to access the OData service shows that you request the record count ($count) and not the actual values.
The result (3) is the correct, given your example screenshot.
You may want to adjust the URL to your expected result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"Nothing in your problem description indicates what you just now added".. let's try again.
1. I sad that I have a calculation view with a result of 3 rows, as showing the screenshot number 1.
2. I sad that I want to expose this calculation view as a oData service, as showing the screenshot number 2.
3. I sad that when I access the calculation view from oData service, it gives a result with 6 entities, as showing the screenshot number 3.
4. I sad that the ($count) is used only to see how many entities(rows) are in the result when I access the calculation view.
5. I sad that if the $count is removed, it also give the same result because $count is used only to see how many entities the calculation view returned, as showing in the screenshot below.
Please say if now is specific or not.
Ok, let's try the other way around: how can this be reproduced? Show us to create this behaviour and maybe somebody is willing to reproduce and analyse this for you. I'm certainly not interested in dealing with your defensive argumentation.
After all, you got the issue and seek help, isn't it? So, you should be interested in helping the folks who could help you.
I am not able to infer a lot from the screen shot, but can you check if you are using a prjection or aggregation node in your calc. view. Also the join may be a cross-joins, and not be on an unique field and produces.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.