Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Freezing more than one column causes print preview error

    Open the print grid demo:

    http://www.smartclient.com/smartgwt/showcase/#grid_print_grid

    Freeze the Code column and the Country column and press the Print Preview button. In IE 8 you will see the following error:

    Message: 'this.fields[...].shouldPrint' is null or not an object
    Line: 1260
    Char: 53
    Code: 0
    URI: http://www.smartclient.com/smartgwt/showcase/showcase/sc-8.0-2.2/modules/ISC_Grids.js

    I am experiencing the same in my app. Freeze one column or less, print preview is fine. 2 or more causes causes error.

    #2
    Thanks for the clear test case - we've now fixed this - try the next nightly build.

    Comment


      #3
      Thanks for the quick reply!

      I just rebuilt our app with the 7/30 nightly build and I'm still seeing the issue. Any idea if the fix is in yet?

      Comment


        #4
        Can you open your Developer Console and look at the version string to verify that you don't have stale files (due to browser caching, IDE oddities, etc).

        Comment


          #5
          This is the version string I'm seeing in the console:

          SmartClient Version: SC_SNAPSHOT-2010-07-28/LGPL Development Only (built 2010-07-28)

          I downloaded the jar from http://www.smartclient.com/smartgwt/builds/latest/ and the modified date said 7/30.

          Until today I've been using the official 2.2 release jar.

          Comment


            #6
            First problem is that says "LGPL" - it looks like you may have mixed the LGPL and licensed versions or tried to upgrade just part of the package. Never do this - always use the full package and replace everything.

            Second, it's stale. It could be browser caching, not updating all files, or some other IDE issue.

            Comment


              #7
              Strange... I removed and replaced the entire jar with the latest smartgwt.jar from the nightly builds site. I'm not sure how I could have mixed LGPL & licensed versions.

              I also restarted both browsers (firefox & IE) and did a shift-refresh to clear the cache.

              I'll re-download and try again. Could be that eclipse & SVN are working against me.

              Comment


                #8
                Yes - and that's incorrect. Again, replace everything that came from the old package with everything that comes from the new package. In this particular case, the JavaScript files in use are actually in smartgwtee.jar. However, updating just those two .jars is also incorrect and will run you into further problems, so be sure to upgrade the whole package every time.

                Comment


                  #9
                  Ahhh... ok. We are not using the EE version. We have always used the basic LGPL version.

                  So you're saying that the fix for this issue is only in the EE nightly builds located here: http://www.smartclient.com/builds/smartgwtee-eval/

                  and NOT in the LGPL nightly builds located here: http://www.smartclient.com/smartgwt/builds/

                  ???

                  Comment


                    #10
                    The fix is in both. Others in the same organization are using Power edition, so we assumed you were too. If you're actually using the LGPL version, and nothing happened, staleness is elsewhere, probably in your IDE, so focus your efforts there.

                    Comment

                    Working...
                    X