Code: |
Hi, I'm using jasperserver-pro 3.0.2 on linux platform. In he hypertext link I'm calling my analysis like follow : "./olap/viewOlap.html?name=/analysis/views/analyseapcms&new&mdx=select NON EMPTY Crossjoin(Hierarchize(Union({[Delai].[All Delais]}, [Delai].[All Delais].Children)), {[Measures].[qte]}) ON COLUMNS, " + " NON EMPTY Hierarchize(Union({[Const/Produits].[All Const/Produitss],[Const/Produits].[All Const/Produitss].[" + $F{F_LIB_CONST} + "]}," + " [Const/Produits].[All Const/Produitss].[" + $F{F_LIB_CONST} + "].Children)) ON ROWS " + " from [Encours] " + " where ([Secteur].[All Secteurs].[Audio-vidéo], [Constructeur].[All Constructeurs].[" + $F{F_LIB_CONST} + "], Sites=[Sites].[All Sitess].[APCMS])" If you have any idea
|
3 Answers:
HI Sherman,
I have done several test directly on the OLAP analysis using mdx query.
I have got an error message saying something wrong in dimension=member.
So I have copy the correct MDX query in to my hypertext link, add some parameters and now it works fine.
This is the syntaxe i'm using now in my report :
"./olap/viewOlap.html?name=/analysis/views/analyseapcms&new&mdx=select NON EMPTY Crossjoin(Hierarchize(Union({[Delai].[All Delais]}, [Delai].[All Delais].Children)), {[Measures].[qte]}) ON COLUMNS,"
+ " NON EMPTY {[Produit].[All Produits].[" + $F{F_LIB_CONST} + "]} ON ROWS "
+ " from [Encours] "
+ " where ([Secteur].[All Secteurs].[Audio-vidéo], [Sites].[All Sitess].[APCMS])"
I do not understand what was the difference with the earlier version, but it works.
Thanks for your support
Remi