Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    83
    Vote Rating
    1
    scottd is on a distinguished road

      0  

    Default Picker's displayField is not set correctly in generated code

    Picker's displayField is not set correctly in generated code


    1) Create an Ext.field.Select
    2) Create model/store and properly associate the store with the picker
    3) Set the 'displayField' value
    4) Switch to Code view
    5) Note that the displayField has been set WITHOUT single quotes around it, causing the code to fail at runtime

    Attached image shows the effect of setting location as the displayField in my picker. Note that the code view has location without single quotes.
    Attached Images

  2. #2
    Sencha User jjohnston's Avatar
    Join Date
    Sep 2010
    Posts
    567
    Vote Rating
    20
    jjohnston will become famous soon enough jjohnston will become famous soon enough

      0  

    Default


    Thanks for reporting this, I'm opening a bug ticket to get it fixed.

    In the meantime, try adding the quotes in the value manually.
    Jason Johnston
    @lojjic
    Sencha Architect Development Team

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,413
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks for the bug report, this has been addressed.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 2