Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8372313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:23:54+00:00 2026-06-09T14:23:54+00:00

I have a button on my form, this row is the point where I

  • 0

I have a button on my form, this row is the point where I try to create a record from the form and submit to the server:

var record = Ext.ModelManager.create(form, 'LoginModel');//'Login' wont work as well

I get the exception
enter image description here

this is the entire contoller:

Ext.define('TA.controller.LoginController', {
    extend: 'Ext.app.Controller',
    config: {
        models: [
            'LoginModel'
        ],
        stores: [
            'LoginStore'
        ],
        views: [
            'LoginPanel'
        ],

        refs: {
            LoginForm: '#loginform'
        },

        control: {
            "#Submit": {
                tap: 'onSubmitTap'
            }
        }
    },

    onSubmitTap: function(button, e, options) {
        var form = this.getLoginForm().getValues();
        console.log(form);
        var record = Ext.ModelManager.create(form, 'LoginModel');///////////the problem
        store.add(record);
        store.sync();
    }

});

this is the model:

Ext.define('TA.model.LoginModel', {
    extend: 'Ext.data.Model',
    config: {
        fields: [
            {
                name: 'UserName'
            },
            {
                name: 'Password'
            }
        ],
        proxy: {
            type: 'jsonp'
        }
    }
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:23:55+00:00Added an answer on June 9, 2026 at 2:23 pm
    var record = Ext.create('TA.model.LoginModel', form); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this form to serialize once i click the submit button, <form class=cashier_forms
I have a form, this form has a submit and a cancel button. when
I have a form with a button at the end like this: var simple_form_right
This is probably a basic html/css question... I have a simple one-button form that
I am stuck at a small problem. I have this button within a form
So I have this hidden form and this 'I like this' button that I
I have a windows form simply like this: 1) a button when clicked will
I have an ASP.NET form (C#) but which I click this button that should
Check out this jsbin . I have a form with a custom button that
/* listen for the submit button press */ YAHOO.util.Event.addListener(webserver.result_form, 'submit', webserver.result_submit); I have this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.