Results 1 to 4 of 4

Thread: Strings "Yes" and "No" rendered as boolean values

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default Strings "Yes" and "No" rendered as boolean values

    Hi -

    I'm having an issue where items returned from the database are being rendered differently than their raw value.

    If you notice the field propertyname in my model below, it's of type: 'string'

    fields:[
    {name:'propertydefinitionid', type:'int',defaultValue:0},
    {name:'propertysort', type:'int'},
    {name:'propertyrequired', type:'boolean'},
    {name:'propertyname', type:'string'}
    ],


    If I enter the value "Yes" on a form and save, then the value inserted to the database is correct. However, when rendering that form field, it's converted to "true". If I enter "Yes " (or any characters in addition to simply "Yes", then the word Yes is rendered correctly as part of the string.

    I can't necessarily use a convert function, because then users could never enter the value of "1" without it being manipulated.

    The store is being created through an ajax proxy.

    Any advice?

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    977
    Answers
    5
    Vote Rating
    -506
      0  

    Default

    I have sent this to the support team to look into further. Thank you so much for your patience while this is being worked on.

    Michele

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Thank you, Michele!

    Quote Originally Posted by Forum_Adm View Post
    I have sent this to the support team to look into further. Thank you so much for your patience while this is being worked on.

    Michele

  4. #4
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    443
    Answers
    5
    Vote Rating
    -321
      0  

    Default

    Hello, hope you are doing well.

    Can you provide a working fiddle showing your issue. String field types are not converted to Boolean. On what form field are you rendering your value. Please provide an example.

    Regards,
    Kumar
    Sencha Support.

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
  •