Author Topic: Version 3.3.0  (Read 8365 times)

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
Version 3.3.0
« on: March 20, 2016, 07:31:08 am »
Hi, I'm getting the following error when I switch to version 3.3.0.

pqgrid.min.js:297 Uncaught TypeError: b.cGroupView is not a constructor

The same code works on version 3.2.0

Any ideas what could be causing this?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6173
    • View Profile
Re: Version 3.3.0
« Reply #1 on: March 21, 2016, 02:14:57 pm »
Row Grouping is changed in 3.3.0 and is not fully backward compatible.

Please read through the upgrade guide for 3.3.0 and share a small test case if the error is not resolved.

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
Re: Version 3.3.0
« Reply #2 on: March 21, 2016, 06:42:35 pm »
We're not setting the group model, which is why this is strange.

See these two URLs showing examples:

3.2.0
https://csc.webauthor.com/go/test-grid.cfm?version=3.2.0

3.3.0
https://csc.webauthor.com/go/test-grid.cfm?version=3.3.0


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6173
    • View Profile
Re: Version 3.3.0
« Reply #3 on: March 21, 2016, 09:59:00 pm »
I could see the error on your url but am unable to check what's causing the error.

Please share an isolated test case in jsfiddle.

http://jsfiddle.net/6h47hL9n/

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
Re: Version 3.3.0
« Reply #4 on: March 22, 2016, 05:08:14 am »
Found the issue.  One of our script libraries used $ as a function, that was different than jQuery.  Looks like the new update doesn't make it safe to use $ for other functions like it did before.

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
Re: Version 3.3.0
« Reply #5 on: March 22, 2016, 05:58:49 am »
New issue.  Do you have an example that uses remote data and sets grouping after initialization?  I'm not able to get this to work.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6173
    • View Profile
Re: Version 3.3.0
« Reply #6 on: March 22, 2016, 07:51:02 am »
Remote data is used in both these demos:

http://paramquery.com/pro/demos/group_rows

http://paramquery.com/pro/demos/group_remote

groupModel: { on: false } can be set initially ( use Edit and Run button ) and when Toggle grouping button is pressed, it sets groupModel.on = true after initialization.
« Last Edit: March 22, 2016, 07:54:46 am by paramquery »

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
Re: Version 3.3.0
« Reply #7 on: March 22, 2016, 08:00:36 am »
Excellent.  That works great.  Only thing I see is that the grouping only shows the number of rows summarized locally.  How can we get the summary number to reflect the full remote count?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6173
    • View Profile
Re: Version 3.3.0
« Reply #8 on: March 22, 2016, 08:10:58 am »
Didn't get your complete question but in case of paged data ( with either local or remote paging ), grouping and summary takes place only for current page.

Webauthor

  • Pro OEM
  • Jr. Member
  • *
  • Posts: 51
    • View Profile
Re: Version 3.3.0
« Reply #9 on: March 22, 2016, 08:12:33 am »
Got it.  Thanks so much.

dvm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Version 3.3.0
« Reply #10 on: May 27, 2016, 12:19:35 am »
Curious about the status of the original problem mentioned in this post (the cGroupView is not a constructor script error). Is there a fix planned or a workaround? I'm trying to evaluate ParamQuery for use at my company and this script error is blocking me.

Thanks!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6173
    • View Profile
Re: Version 3.3.0
« Reply #11 on: May 27, 2016, 02:16:52 pm »
With v3.3.0, the workaround is not to overwrite $ variable. You might have some scripts which use and modify $ variable.

It has been fixed in the upcoming version, so that it won't be an issue to use $.

dvm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Version 3.3.0
« Reply #12 on: May 27, 2016, 06:07:16 pm »
Thanks for the prompt reply. Unfortunately, there are no scripts overwriting $ in my application. I even wrote a quick test file with nothing but jQuery, jQuery UI, ParamQuery Pro 3.3.0, and a constructor for a table. Even with just this I was able to reproduce this issue. I also tried running jQuery in no conflict mode, but that just broke ParamQuery entirely (which is it's own problem - we need to use no conflict mode, but that's another issue).

Is there a way I could get a build of 3.2.0 for evaluation?

Thanks!

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6173
    • View Profile
Re: Version 3.3.0
« Reply #13 on: May 27, 2016, 06:23:03 pm »
Please check the demo: http://paramquery.com/pro/demos/group_rows

and jsfiddle which I created to double check: http://jsfiddle.net/xdmf56Lv/

I don't see the mentioned issue.
« Last Edit: May 27, 2016, 06:25:10 pm by paramquery »

dvm

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Version 3.3.0
« Reply #14 on: May 27, 2016, 08:46:33 pm »
Ok, it looks like some of the scripts weren't loading before it tried to execute the constructor. Odd, but fair enough. I've got it working now using jQuery(document).ready(). Thanks for the example.