Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filters in internet explorer fail #169

Open
jortilles opened this issue Nov 16, 2012 · 3 comments
Open

filters in internet explorer fail #169

jortilles opened this issue Nov 16, 2012 · 3 comments

Comments

@jortilles
Copy link

When i set a filter for a report in firefox or chorme it works fine but when i'm tring to set a filter in internet explorer it fail.

By default it launch this 2 errors:

state-machine.js, Línea 71 Carácter 79 => Not handled exception... not really important.

SCRIPT5007: Cant set the value for '_renderItem': the object is null or not defined in SelectionsModal.js, Línea 80 Carácter 3

I told you about org.saiku.adhoc.exceptions.SaikuAdhocEx ception: Encoding not supported but i couldnt get nothing from that so maybe is not related to that.

@jortilles
Copy link
Author

Hi.
Some of my friends, Arnaldo, found something.

First of all in the file adhoc/views/DragResize.js
There is a variable in the 164 line wich name is var position = $(el).offset() wich have the same name of an id in the HTML code so we changed the name to var _position = $(el).offset() in all the cases

var position = $(el).offset()  

to

por var _position = $(el).offset()

after that in adhoc/views/SelectionsModal.js

We changed arount line 144 ;

from :

            this.available_values = _.select(this.available_values, function(obj) {              
                    return used_values.indexOf(obj[0]) === -1;              
            });

To:

 this.available_values = _.select(this.available_values, function(obj) {                                    
        return used_values.toString().indexOf(obj[0]) === -1;                    
  });

finally in models/QueryAction.js in line 57 we found a problem with ie cache

So we changed from

   this.url = this.query.url() + escape(action) 

to

  this.url = this.query.url() + escape(action) +"?nocache="+new Date();

Hope it help

@Mgiepz
Copy link
Owner

Mgiepz commented Nov 29, 2012

Great thanks!

@Mgiepz
Copy link
Owner

Mgiepz commented Nov 29, 2012

Can you send a pull request with these changes please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants