Announcement

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

    #31
    I've run out of ideas please help. This is a major issue that we would like to resolve right away.

    Comment


      #32
      I'm asking again, could someone give me an update of some kind? We want to resolve this issue ASAP.

      Comment


        #33
        What's happening is that the grid is trying to automatically pick what type of editor you want for this field in the FilterEditor and guessing wrongly in this case - it assumes you want to use an optionDataSource.

        You can avoid this via:

        Code:
                        filterEditorProperties:{optionDataSource:null},
        We will be modifying the framework so that the presence of filterEditorValueMap means optionDataSource is not used by default.

        Comment


          #34
          Thanks, this fixes my issue.

          Comment


            #35
            We've now fixed the problem where an optionDataSource would be used even though you specified filterEditorValueMap. So the previously posted code can now be removed (when using tomorrow's nightly and onward).

            Comment


              #36
              Using SC 8.2p Oct 05-2012 build

              Run the testcase. Click on one of the rows to go into edit mode. Now select a value from the dropdown of the first column. Exit edit mode then go into it again. You'll notice the valueMap is now missing the value previously selected. What are we doing wrong exactly?

              Code:
              <HTML><HEAD><TITLE>Filter editor Issue</TITLE>
              
                  
              </HEAD>
              
              
              <body class="pageBackground" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" scroll="no" style="overflow:hidden">
              
              
              <SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT>
                  <SCRIPT>var isomorphicDir = "isomorphic/"</SCRIPT>
                  <SCRIPT SRC=isomorphic/system/modules/ISC_Core.js></SCRIPT>
                  <SCRIPT SRC=isomorphic/system/modules/ISC_Foundation.js></SCRIPT>
                  <SCRIPT SRC=isomorphic/system/modules/ISC_Containers.js></SCRIPT>
                  <SCRIPT SRC=isomorphic/system/modules/ISC_Grids.js></SCRIPT>
                  <SCRIPT SRC=isomorphic/system/modules/ISC_Forms.js></SCRIPT>
                  <SCRIPT SRC=isomorphic/system/modules/ISC_DataBinding.js></SCRIPT>
              	<SCRIPT SRC=isomorphic/skins/Enterprise/load_skin.js></SCRIPT>
              
              <SCRIPT>
              
              var nrefEnum =[
                          {
                              nRef_SF:"414504000", 
                              nRef_SF$DF:"414504000"
                          }, 
                          {
                              nRef_SF:"414504001", 
                              nRef_SF$DF:"414504001"
                          }, 
                          {
                              nRef_SF:"414504002", 
                              nRef_SF$DF:"414504002"
                          }, 
                          {
                              nRef_SF:"414504003", 
                              nRef_SF$DF:"414504003"
                          }, 
                          {
                              nRef_SF:"414504004", 
                              nRef_SF$DF:"414504004"
                          }, 
                          {
                              nRef_SF:"414504005", 
                              nRef_SF$DF:"414504005"
                          }, 
                          {
                              nRef_SF:"414504006", 
                              nRef_SF$DF:"414504006"
                          }, 
                          {
                              nRef_SF:"414504007", 
                              nRef_SF$DF:"414504007"
                          }, 
                          {
                              nRef_SF:"414504008", 
                              nRef_SF$DF:"414504008"
                          }, 
                          {
                              nRef_SF:"414504009", 
                              nRef_SF$DF:"414504009"
                          }, 
                          {
                              nRef_SF:"414504010", 
                              nRef_SF$DF:"414504010"
                          }, 
                          {
                              nRef_SF:"414504011", 
                              nRef_SF$DF:"414504011"
                          }, 
                          {
                              nRef_SF:"414504012", 
                              nRef_SF$DF:"414504012"
                          }, 
                          {
                              nRef_SF:"414504013", 
                              nRef_SF$DF:"414504013"
                          }, 
                          {
                              nRef_SF:"414504014", 
                              nRef_SF$DF:"414504014"
                          }, 
                          {
                              nRef_SF:"414504015", 
                              nRef_SF$DF:"414504015"
                          }, 
                          {
                              nRef_SF:"414504016", 
                              nRef_SF$DF:"414504016"
                          }, 
                          {
                              nRef_SF:"414504017", 
                              nRef_SF$DF:"414504017"
                          }, 
                          {
                              nRef_SF:"414504018", 
                              nRef_SF$DF:"414504018"
                          }, 
                          {
                              nRef_SF:"414504019", 
                              nRef_SF$DF:"414504019"
                          }, 
                          {
                              nRef_SF:"414504020", 
                              nRef_SF$DF:"414504020"
                          }, 
                          {
                              nRef_SF:"414504021", 
                              nRef_SF$DF:"414504021"
                          }, 
                          {
                              nRef_SF:"414504022", 
                              nRef_SF$DF:"414504022"
                          }, 
                          {
                              nRef_SF:"414504023", 
                              nRef_SF$DF:"414504023"
                          }, 
                          {
                              nRef_SF:"414504024", 
                              nRef_SF$DF:"414504024"
                          }, 
                          {
                              nRef_SF:"414504025", 
                              nRef_SF$DF:"414504025"
                          }, 
                          {
                              nRef_SF:"414504026", 
                              nRef_SF$DF:"414504026"
                          }, 
                          {
                              nRef_SF:"414504027", 
                              nRef_SF$DF:"414504027"
                          }, 
                          {
                              nRef_SF:"414504028", 
                              nRef_SF$DF:"414504028"
                          }, 
                          {
                              nRef_SF:"414504029", 
                              nRef_SF$DF:"414504029"
                          }, 
                          {
                              nRef_SF:"414504030", 
                              nRef_SF$DF:"414504030"
                          }, 
                          {
                              nRef_SF:"414504031", 
                              nRef_SF$DF:"414504031"
                          }, 
                          {
                              nRef_SF:"414504032", 
                              nRef_SF$DF:"414504032"
                          }, 
                          {
                              nRef_SF:"414504033", 
                              nRef_SF$DF:"414504033"
                          }, 
                          {
                              nRef_SF:"414504034", 
                              nRef_SF$DF:"414504034"
                          }, 
                          {
                              nRef_SF:"414504035", 
                              nRef_SF$DF:"414504035"
                          }, 
                          {
                              nRef_SF:"414504036", 
                              nRef_SF$DF:"414504036"
                          }, 
                          {
                              nRef_SF:"414504037", 
                              nRef_SF$DF:"414504037"
                          }, 
                          {
                              nRef_SF:"414504038", 
                              nRef_SF$DF:"414504038"
                          }, 
                          {
                              nRef_SF:"414504039", 
                              nRef_SF$DF:"414504039"
                          }, 
                          {
                              nRef_SF:"414504040", 
                              nRef_SF$DF:"414504040"
                          }, 
                          {
                              nRef_SF:"414504041", 
                              nRef_SF$DF:"414504041"
                          }, 
                          {
                              nRef_SF:"414504042", 
                              nRef_SF$DF:"414504042"
                          }, 
                          {
                              nRef_SF:"414504043", 
                              nRef_SF$DF:"414504043"
                          }, 
                          {
                              nRef_SF:"414504044", 
                              nRef_SF$DF:"414504044"
                          }, 
                          {
                              nRef_SF:"414504045", 
                              nRef_SF$DF:"414504045"
                          }
                      ];
              
              var countryData = [
                          {
                              cwPK__:"414504046", 
                              $isCwSelected:false, 
                              int_RBH:999, 
                              int_RBH$DF:"", 
                              int_SF:null, 
                              int_SF$DF:"", 
                              nRef_SF:414504012, 
                              nRef_SF$DF:"414504012"
                          }, 
                          {
                              cwPK__:"414504047", 
                              $isCwSelected:false, 
                              int_RBH:55, 
                              int_RBH$DF:"55", 
                              int_SF:55, 
                              int_SF$DF:"55", 
                              nRef_SF:414504022, 
                              nRef_SF$DF:"414504022"
                          }, 
                          {
                              cwPK__:"414504048", 
                              $isCwSelected:false, 
                              int_RBH:null, 
                              int_RBH$DF:"", 
                              int_SF:null, 
                              int_SF$DF:"", 
                              nRef_SF:414504023, 
                              nRef_SF$DF:"414504023"
                          }, 
                          {
                              cwPK__:"414504049", 
                              $isCwSelected:false, 
                              int_RBH:44, 
                              int_RBH$DF:"44", 
                              int_SF:55, 
                              int_SF$DF:"55", 
                              nRef_SF:414504024, 
                              nRef_SF$DF:"414504024"
                          }, 
                          {
                              cwPK__:"414504050", 
                              $isCwSelected:false, 
                              int_RBH:99, 
                              int_RBH$DF:"99", 
                              int_SF:null, 
                              int_SF$DF:"", 
                              nRef_SF:414504025, 
                              nRef_SF$DF:"414504025"
                          }, 
                          {
                              cwPK__:"414504051", 
                              $isCwSelected:false, 
                              int_RBH:44, 
                              int_RBH$DF:"44", 
                              int_SF:55, 
                              int_SF$DF:"55", 
                              nRef_SF:414504026, 
                              nRef_SF$DF:"414504026"
                          }, 
                          {
                              cwPK__:"414504052", 
                              $isCwSelected:false, 
                              int_RBH:55, 
                              int_RBH$DF:"55", 
                              int_SF:null, 
                              int_SF$DF:"", 
                              nRef_SF:414504027, 
                              nRef_SF$DF:"414504027"
                          }, 
                          {
                              cwPK__:"414504053", 
                              $isCwSelected:false, 
                              int_RBH:null, 
                              int_RBH$DF:"", 
                              int_SF:55, 
                              int_SF$DF:"55", 
                              nRef_SF:414504028, 
                              nRef_SF$DF:"414504028"
                          }, 
                          {
                              cwPK__:"414504054", 
                              $isCwSelected:false, 
                              int_RBH:55, 
                              int_RBH$DF:"55", 
                              int_SF:null, 
                              int_SF$DF:"", 
                              nRef_SF:414504029, 
                              nRef_SF$DF:"414504029"
                          }, 
                          {
                              cwPK__:"414504055", 
                              $isCwSelected:false, 
                              int_RBH:99, 
                              int_RBH$DF:"99", 
                              int_SF:55, 
                              int_SF$DF:"55", 
                              nRef_SF:414504030, 
                              nRef_SF$DF:"414504030"
                          }, 
                          {
                              cwPK__:"414504056", 
                              $isCwSelected:false, 
                              int_RBH:44, 
                              int_RBH$DF:"44", 
                              int_SF:null, 
                              int_SF$DF:"", 
                              nRef_SF:414504031, 
                              nRef_SF$DF:"414504031"
                          }, 
                          {
                              cwPK__:"414504057", 
                              $isCwSelected:false, 
                              int_RBH:99, 
                              int_RBH$DF:"99", 
                              int_SF:55, 
                              int_SF$DF:"55", 
                              nRef_SF:414504032, 
                              nRef_SF$DF:"414504032"
                          }, 
                          {
                              cwPK__:"414504058", 
                              $isCwSelected:false, 
                              int_RBH:null, 
                              int_RBH$DF:"", 
                              int_SF:null, 
                              int_SF$DF:"", 
                              nRef_SF:414504033, 
                              nRef_SF$DF:"414504033"
                          }, 
                          {
                              cwPK__:"414504059", 
                              $isCwSelected:false, 
                              int_RBH:55, 
                              int_RBH$DF:"55", 
                              int_SF:55, 
                              int_SF$DF:"55", 
                              nRef_SF:414504034, 
                              nRef_SF$DF:"414504034"
                          }, 
                          {
                              cwPK__:"414504060", 
                              $isCwSelected:false, 
                              int_RBH:null, 
                              int_RBH$DF:"", 
                              int_SF:null, 
                              int_SF$DF:"", 
                              nRef_SF:414504035, 
                              nRef_SF$DF:"414504035"
                          }, 
                          {
                              cwPK__:"414504061", 
                              $isCwSelected:false, 
                              int_RBH:44, 
                              int_RBH$DF:"44", 
                              int_SF:44, 
                              int_SF$DF:"44", 
                              nRef_SF:414504036, 
                              nRef_SF$DF:"414504036"
                          }, 
                          {
                              cwPK__:"414504062", 
                              $isCwSelected:false, 
                              int_RBH:99, 
                              int_RBH$DF:"99", 
                              int_SF:99, 
                              int_SF$DF:"99", 
                              nRef_SF:414504037, 
                              nRef_SF$DF:"414504037"
                          }, 
                          {
                              cwPK__:"414504063", 
                              $isCwSelected:false, 
                              int_RBH:null, 
                              int_RBH$DF:"", 
                              int_SF:44, 
                              int_SF$DF:"44", 
                              nRef_SF:414504038, 
                              nRef_SF$DF:"414504038"
                          }, 
                          {
                              cwPK__:"414504064", 
                              $isCwSelected:false, 
                              int_RBH:55, 
                              int_RBH$DF:"55", 
                              int_SF:99, 
                              int_SF$DF:"99", 
                              nRef_SF:414504039, 
                              nRef_SF$DF:"414504039"
                          }, 
                          {
                              cwPK__:"414504065", 
                              $isCwSelected:false, 
                              int_RBH:null, 
                              int_RBH$DF:"", 
                              int_SF:44, 
                              int_SF$DF:"44", 
                              nRef_SF:414504040, 
                              nRef_SF$DF:"414504040"
                          }, 
                          {
                              cwPK__:"414504066", 
                              $isCwSelected:false, 
                              int_RBH:44, 
                              int_RBH$DF:"44", 
                              int_SF:99, 
                              int_SF$DF:"99", 
                              nRef_SF:414504041, 
                              nRef_SF$DF:"414504041"
                          }, 
                          {
                              cwPK__:"414504067", 
                              $isCwSelected:false, 
                              int_RBH:99, 
                              int_RBH$DF:"99", 
                              int_SF:44, 
                              int_SF$DF:"44", 
                              nRef_SF:414504042, 
                              nRef_SF$DF:"414504042"
                          }, 
                          {
                              cwPK__:"414504068", 
                              $isCwSelected:false, 
                              int_RBH:44, 
                              int_RBH$DF:"44", 
                              int_SF:99, 
                              int_SF$DF:"99", 
                              nRef_SF:414504043, 
                              nRef_SF$DF:"414504043"
                          }, 
                          {
                              cwPK__:"414504069", 
                              $isCwSelected:false, 
                              int_RBH:55, 
                              int_RBH$DF:"55", 
                              int_SF:44, 
                              int_SF$DF:"44", 
                              nRef_SF:414504044, 
                              nRef_SF$DF:"414504044"
                          }, 
                          {
                              cwPK__:"414504070", 
                              $isCwSelected:false, 
                              int_RBH:null, 
                              int_RBH$DF:"", 
                              int_SF:99, 
                              int_SF$DF:"99", 
                              nRef_SF:414504045, 
                              nRef_SF$DF:"414504045"
                          }, 
                          {
                              cwPK__:"414504071", 
                              $isCwSelected:false, 
                              int_RBH:55, 
                              int_RBH$DF:"55", 
                              int_SF:44, 
                              int_SF$DF:"44", 
                              nRef_SF:414504000, 
                              nRef_SF$DF:"414504000"
                          }, 
                          {
                              cwPK__:"414504122", 
                              $isCwSelected:false, 
                              int_RBH:55, 
                              int_RBH$DF:"55", 
                              int_SF:99, 
                              int_SF$DF:"99", 
                              nRef_SF:414504006, 
                              nRef_SF$DF:"414504006"
              
                          }, 
                          {
                              cwPK__:"414504123", 
                              $isCwSelected:false, 
                              int_RBH:99, 
                              int_RBH$DF:"99", 
                              int_SF:44, 
                              int_SF$DF:"44", 
                              nRef_SF:414504007, 
                              nRef_SF$DF:"414504007"
              
                          }
                      ];
              
              
              
              isc.DataSource.create({ID:"Table$ds",
              fields:
              [{name:"cwPK__",primaryKey:true},
              {name:"int_RBH"},
              {name:"str_SF"},
              {name:"nRef_SF"}],
              showPrompt:false,
              criteriaPolicy:"dropOnChange",   
              clientOnly: true,
              testData: countryData})
              
              isc.DataSource.create({ID:"nrefEnum$ds",
              fields:
              [{name:"cwPK__",primaryKey:true},
              {name:"int_RBH"},
              {name:"str_SF"}],
              showPrompt:false,
              criteriaPolicy:"dropOnChange",   
              clientOnly: true,
              testData: nrefEnum})
              
              
              
              isc.ListGrid.create({
              	width: 500, height:500,
              	ID:"Table",
              	dataSource: Table$ds,
              	autoFetchData:true,
              	canEdit:true,
              	editEvent: "click",
              	fields:
              		[{title:"<nobr>Integer - Radio Button - Horizontal&nbsp;<\/nobr>",
              		valueMap:{"44":"44","55":"55","99":"99"},
              		editorType:"SelectItem",
              		editorProperties:{ID:"int_RBH",allowEmptyValue:true},
              		filterEditorProperties:{name:"int_RBH",optionDataSource:null},
              		name:"int_RBH",displayField:"int_RBH$DF",
              		align:"left",width:"100"},
              		{name:"cwPK__"},
              		{name:"int_SF", valueMap:{"1":"2012/12/12", "2":"2012/09/09"}}
              		]});
              
              </script>
              </BODY>
              </html>

              Comment


                #37
                Were you able to reproduce this on your end?

                Comment


                  #38
                  Yes we were indeed. It was an issue that had already been resolved in 8.3 but not in 8.2p, and took a little tracking down but we have now applied a fix.

                  The fix will show up in the next nightly build for you

                  Regards
                  Isomorphic Software

                  Comment


                    #39
                    This is a pretty major issue and unfortunately, we are in code freeze. Is there a way to get a patch for this issue?

                    Comment


                      #40
                      Originally posted by acarur01 View Post
                      This is a pretty major issue and unfortunately, we are in code freeze. Is there a way to get a patch for this issue?
                      We are currently using SmartClient_v82p_2012-10-09_PowerEdition in our product

                      Comment


                        #41
                        This should do it. Let us know if it doesn't work.
                        As always we've included code to disable the patch when you change builds - if you upgrade the patch becomes obsolete and you should yank it from your source

                        Regards
                        Isomorphic Software
                        Code:
                        if (window.isc && isc.version.startsWith("SmartClient_v82p_2012-10-09")) {
                            if (isc.FormItem != null) {
                                isc.FormItem.addProperties({
                                    getValueMap : function () {
                                        var valueMap = this.valueMap;
                                        if (isc.isA.String(valueMap)) {
                                            valueMap = this.getGlobalReference(valueMap);
                                        }
                                        var displayMap = this.$43d;
                                        if (displayMap != null) {
                                            if (valueMap == null) valueMap = displayMap;
                                            else {
                                                if (isc.isAn.Array(valueMap)) {
                                                    var explicitMap = valueMap;
                                                    valueMap = {};
                                                    for (var i = 0; i < explicitMap.length; i++) {
                                                        valueMap[explicitMap[i]] = explicitMap[i];
                                                    }
                                                }
                                                isc.addProperties({}, displayMap, valueMap);
                                            }
                                        }
                                        return valueMap;
                                    }
                                });
                            }
                        }

                        Comment


                          #42
                          Thanks - I had to change the version check though because it was spitting out a different string: "v8.2p_2012-10-09/PowerEdition Development Only"

                          Comment

                          Working...
                          X