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 8190291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:34:25+00:00 2026-06-07T03:34:25+00:00

I am using ExtJS (v3) and I have a form built that I want

  • 0

I am using ExtJS (v3) and I have a form built that I want to populate so that a user can edit the data and then submit it back.

The form is built properly and the data is being pulled from the database properly, but where I am having a difficult time is populating the form with the data from the database.

Anyone have suggestions?

This is my data being pulled from the database:

var workflow_projects = new Ext.data.JsonStore({
        autoLoad: true,
        autoDestroy: true,
        url: '<% $jsonURL %>',
        storeId: 'workflow_projects',
        idProperty: 'ProjectID',
        fields: [ 'ProjectID', 'ProjectName' ]
});

and then my form:

var simpleForm = new Ext.FormPanel ({
labelWidth: 175,
id: 'simpleForm',
    url:'./edit',
method: 'POST',
    frame:true,
    title: 'Edit',
    bodyStyle:'padding:5px 5px 0',
    width: 850,
    defaultType: 'textfield',

    items: [
        {
            fieldLabel: 'Project Name',
            name: 'ProjectName',
            allowBlank:true,
            anchor:'100%'
        }

    ]
});
  • 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-07T03:34:27+00:00Added an answer on June 7, 2026 at 3:34 am

    I’d use load record in the load event handler for the store. your field names have to match the record in the store, which it looks like you’re doing for ProjectName.

    http://docs.sencha.com/ext-js/3-4/#!/api/Ext.form.BasicForm-method-loadRecord

    (Code is not tested in actual browser.)

    var workflow_projects = new Ext.data.JsonStore({
                autoLoad: true,
                autoDestroy: true,
                url: '<% $jsonURL %>',
                storeId: 'workflow_projects',
                idProperty: 'ProjectID',
                fields: [ 'ProjectID', 'ProjectName' ],
    
            events : {
               load: function(store, records, options){
               if(records[0]){
               simpleForm.getForm().loadRecord(records[0]);
               } else{
                 console.log("no data!");
                }
            }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to load the form fields using json data. I am using extjs
I am using the ExtJS framework and I have the following handler that is
So, I've read a lot about using ExtJS's fileuploadfield to submit a form via
Server side extjs form validation using zend framework I have extended Zend_Form class to
I have a web app built using ExtJS framework. I have a tree in
I am working on my first project using ExtJS. I have a Data Grid
I have a problem with a Ext.Grid.EditorGridPanel, I am currently using ExtJS 2.3.0, that
I have implemented a gridpanel using Extjs that shows the content of a database.
I'm using ExtJS 4 (beta 3) and I have a TreePanel that is my
I have problems getting data from grails using extjs. My Grails controller code is:

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.