NOD507 / SenseDateRangePicker

A date range picker extension for qliksense
36 stars 39 forks source link

DateRangePicker extension become irresponsible on server #23

Open prashant800 opened 6 years ago

prashant800 commented 6 years ago

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 commented 6 years ago

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

virilo commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Thank you!

I'll try it.

From: Aiham Azmeh [mailto:notifications@github.com] Sent: Wednesday, February 21, 2018 9:02 PM To: NOD507/SenseDateRangePicker SenseDateRangePicker@noreply.github.com Cc: Sapir Tayri sapir.t@sensebi.com; Comment comment@noreply.github.com Subject: Re: [NOD507/SenseDateRangePicker] DateRangePicker extension become irresponsible on server (#23)

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 1st, at L189 : https://github.com/NOD507/SenseDateRangePicker/blob/master/DateRangePicker.js#L189

function (x) {

self.backendApi.model.getLayout().then(function(){

self.backendApi.acceptSearch(false);

})

})

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/NOD507/SenseDateRangePicker/issues/23#issuecomment-367433817, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgQvj25crmayAx9l9iawWjOYWGKrgYd-ks5tXGgQgaJpZM4QK4g4.

virilo commented 6 years ago

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

bujnakb commented 6 years ago

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

mengmengda01 commented 5 years ago

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