Go Back   Java Programming Forums > Java EE (Enterprise Edition) > Java Servlet


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-08-2009, 12:35 PM
Junior Member
 

Join Date: Jul 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
retail_deepa is on a distinguished road
Default slicer dimension in MDX

hi ,
I have a doubt in MDX query in jpivot.When i pass a dimension which has text values as a slicer dimension in the where condition it is working fine.But when i pass an integer type dimension in the where condition i am getting the following exception:

org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: com.tonbeller.jpivot.olap.model.OlapException: ERROR: function upper(integer) does not exist

Let me explain this with an example:I have two dimensions in my cube:location and year.I have a measure say no.of products sold.If i want the report for a particular location I pass this in the where condition like : where {[location].[All location].[Boston]}.But when i want the report for a particular year i am trying with the following :{[year].[All year].[1991]}.But i am getting the above mentioned exception.please help me.



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 26-08-2009, 01:00 PM
Json's Avatar
Super Moderator
 

Join Date: Jul 2009
Location: Manchester, United Kingdom
Posts: 1,157
Thanks: 54
Thanked 136 Times in 132 Posts
Json will become famous soon enoughJson will become famous soon enoughJson will become famous soon enough

I'm feeling Happy
Default Re: slicer dimension in MDX

Try passing a String.valueOf(myInteger) into the method instead.

// Json
Reply With Quote
  #3 (permalink)  
Old 27-08-2009, 06:14 AM
Junior Member
 

Join Date: Jul 2009
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
retail_deepa is on a distinguished road
Default Re: slicer dimension in MDX

Thanks for the reply.But how do i do this conversion in the query?Please provide a sample query.
Reply With Quote
  #4 (permalink)  
Old 28-08-2009, 09:01 AM
Json's Avatar
Super Moderator
 

Join Date: Jul 2009
Location: Manchester, United Kingdom
Posts: 1,157
Thanks: 54
Thanked 136 Times in 132 Posts
Json will become famous soon enoughJson will become famous soon enoughJson will become famous soon enough

I'm feeling Happy
Default Re: slicer dimension in MDX

What does the code look like where you write your query which blows up?

// Json
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-dimension ArrayList example helloworld922 Java Code Snippets and Tutorials 1 03-02-2010 03:01 PM


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java addactionlistener addactionlistener java convert double to integer java double format java double to integer in java double to integer java drag en drop programmeren java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double in java format double java get mouse position java java 2d arraylist java actionlistener java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming practice problems java send keystrokes to another application java two dimensional arraylist java.io.ioexception: premature eof java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton action jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics smack api two dimensional arraylist two dimensional arraylist java unable to sendviapost to url what is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

All times are GMT. The time now is 02:00 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.