Announcement

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

    #16
    We made the fix in the 2.5p branch, so it will show up in the next nightly build in that branch
    (This issue had already been resolved in the 3.x branches)

    Is there a reason you can't move to the next 2.5p nightly?

    Comment


      #17
      Unfortunately, our process requires we get approval for using different library versions.

      Comment


        #18
        We can get you a patch. What is your exact version string reported by evaluating "isc.version" in the developer console?

        Comment


          #19
          Awesome!

          SC_SNAPSHOT-2012-01-06_v8.1p/PowerEdition Deployment

          Comment


            #20
            Ok - we've assembled a patch which should work for you (below).
            To apply this, either drop this into a .js file, or embed in script tags, and load it in your HTML bootstrap file after loading the SmartClient libraries.
            If you're not explicitly loading the SmartClient libraries in the bootstrap file, you should be able to add this after the line that loads the application logic (the *.nocache.js include).

            Also a note on the "p" builds. These are actually "patch" builds - they differ from the release version only in that they have all known patches applied to them. You can think of them as a "patched version of SmartGWT 2.5" rather than as a new library version. Not sure if this impacts your decision on whether or not to upgrade to the more recent patched version but we felt it was worth clarifying in case you had any confusion around this.

            Code:
            if (window.isc) {
                if (isc.version == "SC_SNAPSHOT-2012-01-06_v8.1p/PowerEdition Deployment") {
                    if (isc.ListGrid) {
                        isc.ListGrid.addProperties({
                            getEditDisplayValues : function (rowNum, colNum) {
                                
                                var editValues = this.getEditValues(rowNum, colNum),
                                    record = this.getCellRecord(rowNum, colNum),
                                    values = {};
                                
                                for (var fieldName in record) {
                                    values[fieldName] = record[fieldName];
                                }
                                for (var fieldName in editValues) {
                                    values[fieldName] = editValues[fieldName];
                                }
                            
                                for (var fieldName in values) {
                                    var fieldNum = this.getFieldNum(fieldName);
                                    if (fieldNum >=0 && this.$329 != null) {
                                        values[fieldName] = this.$329(values[fieldName], record, rowNum, fieldNum);
                                    }
                                }
                            
                                return values;
                            }
                        });
                    }
                } else {
                    isc.logWarn("Patch code included for SmartGWT with isc version:" + 
                        "SC_SNAPSHOT-2012-01-06_v8.1p/PowerEdition Deployment. " +
                        "This application is running: " + isc.version +
                        ". Patch code will have no effect and may be removed.");
                }
            }

            Comment


              #21
              I tested it out on my code and it works. Thanks!

              Comment

              Working...
              X