Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #11  
Old 17th Aug 2010, 08:44
ThomasH ThomasH is offline
Registered Developer
 
Join Date: Aug 2009
Posts: 119
Default

Aaaaah :-)
Reply With Quote
  #12  
Old 17th Aug 2010, 14:49
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 38,300
Default

Hi Thomas,
It turns out this is caused by the field having the displayField property set to the same value as the field name.
There may be something else going on as well and we'll get to the bottom of it / look at how best to fix the framework so it either handles this case or warns (without crashing) -- but the simplest fix for your code is to just remove these displayField settings:

Code:
  [
      {
       "editorType":"ComboBoxItem",
       "ID":"daysCostCentreGridField_6",
       "editorProperties":
       {
        optionDataSource:isc.DataSource.create(
         {
          "fields":
          [
           {
            "primaryKey":true,
            "name":"number"
           },
           {
            "name":"daysCostCentreGridField"
           }
          ],
          "dataFormat":"json",
          "dataURL":"ScComboBoxListGridFieldDataSource?viewNumber=6&id=dayscostCentreGridField",
          "recordXPath":"/resultData"
         }
         )
       },
       "name":"daysCostCentreGridField",
       "canSort":false,
       "title":"Costcentre"
      }
     ],
== Update: We've added a check for this case to the source so this will not be a problem in future builds. Though the change suggested above is still appropriate.

Last edited by Isomorphic; 17th Aug 2010 at 15:18..
Reply With Quote
  #13  
Old 18th Aug 2010, 08:08
ThomasH ThomasH is offline
Registered Developer
 
Join Date: Aug 2009
Posts: 119
Default

Hi Isomorphic,

yes, thank you. Changing the name of the displayField to another as the widget name has fixed the issue for me.

Regards Thomas
Reply With Quote
  #14  
Old 15th Sep 2010, 01:14
ksdfhqwf ksdfhqwf is offline
Registered Developer
 
Join Date: Sep 2010
Posts: 1
Default

We are a professional,Buy WOW Gold loyal and reliable RuneScape Gold store online. We supply RuneScape Gold to our loyal customers that you may buy Cheap RS Gold. We provide the cheapest wow gold all the servers and the first class service to our loyal and reliable customers.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved