SPECUSA / SelfServiceBI

11 stars 3 forks source link

Date FIlter issue #16

Open JBComputech opened 6 years ago

JBComputech commented 6 years ago

Still having the same issue, it shows two dates in both start and enddate

http://localhost:8083/pentaho/plugin/cda/api/doQuery?path=/home/Sparsh/tset2.cda&dataAccessId=Lab&paramstartDate=%222018-01-01%22,%222018-04-16%22&paramendDate=%222018-01-01%22,%222018-04-16%22&outputIndexId=1

Implemented) send @ jquery-1.12.3.min.js:4 ajax @ jquery-1.12.3.min.js:4 readJSONFile @ commonUtils.min.js:1 getQueryData @ commonUtils.min.js:1 i.render @ Pinboard.min.js:1 resizeChart @ Pinboard.min.js:1 (anonymous) @ Pinboard.min.js:1 dispatch @ jquery-1.12.3.min.js:3 r.handle @ jquery-1.12.3.min.js:3 angular.min.js:117 TypeError: Cannot read property 'length' of undefined at i.render (Pinboard.min.js:1) at Object.resizeChart (Pinboard.min.js:1) at Pinboard.min.js:1 at dispatch (jquery-1.12.3.min.js:3) at r.handle (jquery-1.12.3.min.js:3) (anonymous) @ angular.min.js:117 i.render @ Pinboard.min.js:1 resizeChart @ Pinboard.min.js:1 (anonymous) @ Pinboard.min.js:1 dispatch @ jquery-1.12.3.min.js:3 r.handle @ jquery-1.12.3.min.js:3 jquery-1.12.3.min.js:4 GET http://localhost:8083/pentaho/plugin/cda

JBComputech commented 6 years ago

Can you please help me to fix this issue

SPECUSA commented 6 years ago

Hi @JBComputech

On submit, date filter will return both start and end date values in one parameter only.

Need to parse values in the query to get the start and end date separately.

JBComputech commented 6 years ago

Ok, I will try that and update you asap..