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

DateRangePicker extension become irresponsible on server #23

Open
prashant800 opened this issue Oct 30, 2017 · 7 comments
Open

DateRangePicker extension become irresponsible on server #23

prashant800 opened this issue Oct 30, 2017 · 7 comments

Comments

@prashant800
Copy link

I am using DateRangePicker extension but sometime its become irresponsible.
I am using QlikSense desktop June 2017 version also we are facing issue on server.
Could you please help me to resolve this ? Do i need to do any setting before using this.

@SapirTayri
Copy link

I have this issue too.
Did u find any solution?

@virilo
Copy link

virilo commented Feb 20, 2018

I am using it in QlikSense Server Feb'18 and sometimes it stops working.

For example, I have to do several tries until it starts working.  Meanwhile, it lets me to chose a date range, but it doesn't make any selection at all. 
When finally it starts working it's going to be working until I leave the page.  Is it a javascript issue?

The same thing happens to me in edit mode: I have to write the dimension field expression several times until I finally it accepts the expression. Sometimes it wrongly marks the expression as an error, others it seems to have accepted the expression, but it does not saves the change.

This is a snapshot of the javascript console corresponding to two consecutive date selections.
daterangepicker-javascript-error

I think I started having this issue since QlikSense Server version Feb'18  (perhaps Nov'17)

@aihazm
Copy link

aihazm commented Feb 21, 2018

It looks like a canceled request GetLayout (due to acceptSearch) didn't restarted... most likely a bug a bug in Qlik Sense.
Try to add a getLayout call first, at L189 : https://github.com/NOD507/SenseDateRangePicker/blob/master/DateRangePicker.js#L189

function (x) {
  self.backendApi.model.getLayout().then(function(){
    self.backendApi.acceptSearch(false);
  })
})

@SapirTayri
Copy link

SapirTayri commented Feb 22, 2018 via email

@virilo
Copy link

virilo commented Feb 22, 2018

Thanks a lot @aihazm!

I've tested your solution and it solves the problem.

I still have problems entering an expression in the fx field.

But after some attempts I can set this field, and DatePicker remains working smoothly thanks to your solution

fscales referenced this issue in fscales/SenseDateRangePicker May 10, 2018
@bujnakb
Copy link

bujnakb commented Jun 14, 2018

I had the same issue. Thanks for the code line that fixed it.

@mengmengda01
Copy link

Hello, i am a new fish, still confused on where can I download the file, and then change the js. Thank you.

NOD507 pushed a commit that referenced this issue Feb 26, 2021
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

6 participants