Results 1 to 8 of 8

Thread: Boolean not updated in RowEditor

    This issue duplicates another issue.
  1. #1

    Exclamation Boolean not updated in RowEditor

    Values of checkboxes in roweditor won't get updated

    Ext version tested:
    • Ext 6.0.2.437
    Description:
    • Changed values of checkboxes (boolean fields) will be ignored in roweditor


    Steps to reproduce the problem:

    • https://fiddle.sencha.com/#fiddle/12p3
    • Open the RowEditor and click update without changing anything
      • *Edit: seems to make no difference if you skip this first step
    • edit the record true/false and click update
    • Value won't change in console
    If the version of the Fiddle is changed to 6.0.1, everything works as expected (values will change every time)

  2. #2

    Default

    I'm not really sure if this is related, but the checkboxfields in my apps forms do not update the binded object values aswell....

    definition:

    Code:
    {
        xtype: 'checkboxfield',
        inputValue: true,
        bind: '{document.orderable}',
        fieldLabel: Ext.locale.document.oderable
    },
    form.getValues returning name 'undefined' for the checkboxfield:
    Code:
    • combobox-1086-inputEl:"ar"
    • tagfield-1091-inputEl:Array[1]
    • textareafield-1087-inputEl:""
    • textfield-1085-inputEl:"Test2"
    • textfield-1088-inputEl:""
    • textfield-1089-inputEl:""
    • undefined:true
    object value stays unchanged

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    913

    Default

    It's not exactly a bug but simply bad default checkboxfield config.
    Here is a working version of your fiddle.

  4. #4

    Default

    Hi!

    thanks for the response! Indeed, thats a bad default configuration in the new version....

    I tried a little bit with my form-bind, but no success; my model won't be updated. Do you have any idea what i'm doing wrong?

    Thanks!

  5. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    913

    Default

    Bad default config values are nothing new.
    Can you create a new fiddle showing how you are binding the value?

  6. #6

    Default

    Bad default config values are nothing new.
    Wouldn't be that bad if they were consistent between versions

    Anyway, while making the fiddle i mentioned that the fiddle works - found a presence validator on the boolean field in my model, which was leading to the change rejections ... (is this normal?!)

  7. #7
    Ext JS Premium Member
    Join Date
    May 2008
    Location
    Austria, Vienna
    Posts
    265

    Default

    I've encountered the same problem but in my case the default values of the checkbox field are ok to use the boolean model column but the use a BufferedStore is the issue.
    It seems it either doesn't support sync, like add and insert, although the docs say so or something else which stores the modification state of the boolean column in our model.

  8. #8
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. [FIXED] RowEditor isValid() method overwritten with boolean value
    By agarberi in forum Ext:Bugs
    Replies: 1
    Last Post: 23 Mar 2015, 8:28 AM
  2. Replies: 4
    Last Post: 29 May 2012, 2:06 AM
  3. Replies: 2
    Last Post: 18 Apr 2012, 5:50 PM
  4. Roweditor with Updated Calculated Field
    By ndadosky in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 27 Oct 2010, 9:54 AM
  5. Replies: 4
    Last Post: 25 Jan 2010, 10:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •