Results 1 to 2 of 2

Thread: combobox and null value

  1. #1
    Sencha User
    Join Date
    Sep 2010

    Default combobox and null value

    I have a form with a combobox "parent_reseller_ref". The combo is filled with the loadRecord method of the form.
    The record is specified in a store in this way:
    {name: 'parent_reseller_ref', 
    type: 'int',
    useNull: true
    The record is populated from this json:
    {rows: [network: "test nw", parent_reseller_ref: null, zip: "00100"]}
    The problem:
    If in the json the value is "null" and i don't specify "useNull", the combo will be populated with a 0 (int) value.
    If i specify "useNull: true", the combo wille be populate with a null value, but in the json produced submitting the form (method POST and PUT) , i got an empty String! parent_reseller_ref: ""

    any ideas? How ca i force to produce a null value against a string?

    thank you .

  2. #2
    Sencha User
    Join Date
    Jan 2011


    Could you return more of your code in order to help diagnose the issue?

    i.e - the fields, store, combo, etc

Posting Permissions

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