Results 1 to 6 of 6

Thread: How to display error messages similar to ExtJs

  1. #1
    Sencha User davisty's Avatar
    Join Date
    Mar 2010
    Location
    Spanish Fort, Al
    Posts
    285
    Answers
    11
    Vote Rating
    -9
      0  

    Default Answered: How to display error messages similar to ExtJs

    Hello,

    How can I display error messages in Touch similar to the way ExtJs displays them? Or is there another method of doing this in Touch?

    Thank You

  2. I'm assuming you mean in form fields. There is not validations on form fields in Sencha Touch. You could probably just simply add a component with text under the field that has an error or even create a div and append to the field where you want it.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    I'm assuming you mean in form fields. There is not validations on form fields in Sencha Touch. You could probably just simply add a component with text under the field that has an error or even create a div and append to the field where you want it.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
      0  

    Default

    Using validations into the model is not validations on form fields?

    userModel:
    Code:
    validations: [
    {type: 'presence',  field: 'User', message: 'xxxxxxxxxxxxx'},
    {type: 'presence',  field: 'Password', message: 'xxxxxxxxxxxxx'},
    {type: 'presence',  field: 'Language', message: 'xxxxxxxxxxxxx'},

  5. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    Quote Originally Posted by izak18 View Post
    Using validations into the model is not validations on form fields?

    userModel:
    Code:
    validations: [
    {type: 'presence',  field: 'User', message: 'xxxxxxxxxxxxx'},
    {type: 'presence',  field: 'Password', message: 'xxxxxxxxxxxxx'},
    {type: 'presence',  field: 'Language', message: 'xxxxxxxxxxxxx'},
    It's not on the form fields, those are on the model fields.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  6. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
      0  

    Default

    yeah, you're right, but is kind of validate a form fields too, because you have to submit the form and will validate it in that way by the model, it's a suggestion.

  7. #6
    Sencha User davisty's Avatar
    Join Date
    Mar 2010
    Location
    Spanish Fort, Al
    Posts
    285
    Answers
    11
    Vote Rating
    -9
      0  

    Default

    Thanx Guys.All good answers.

Posting Permissions

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