[CLOSED] Why is it that form fields automatically bind to a store?

  1. #1

    [CLOSED] Why is it that form fields automatically bind to a store?

    This may be a bit of a basic question but I've been wondering about this for a while.

    Why is it that form fields automatically bind to a store while I haven't referenced the store anywhere? How would I choose which store to bind to when I have more than one store? I'm talking about a very simple scenario, just a panel with some text fields in it.
    Last edited by geoffrey.mcgill; Jul 12, 2010 at 11:26 PM.
  2. #2
    Hi,

    Sorry but I am not sure what do you mean? What is mean 'automatically bind to a store'? FormPanel doesn't bind fields automatically. You have to call 'loadRecord' method of the form panel and pass record
    FormPanel1.getForm().loadRecord(record)
    Can you provide more details about your scenario?
    The following sample demonstrate FormPanel binding
    https://examples1.ext.net/#/GridPane.../Form_Details/
  3. #3
    Form Fields do not automatically bind to Stores. You must be either setting the Fields value somewhere, or loading the Form with a record.

    You're going to have to provide a sample which demonstrates how to reproduce the problem.
    Geoffrey McGill
    Founder
  4. #4
    Of course. I must have made a mistake in my thinking. I don't know what got into me!

Similar Threads

  1. [CLOSED] How combobox automatically loads new value added in the form?
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 19, 2012, 7:46 PM
  2. [CLOSED] Two form fields, one validator
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 14, 2012, 7:57 AM
  3. [CLOSED] Update Store Automatically every 5 minute.
    By farisqadadeh in forum 1.x Legacy Premium Help
    Replies: 13
    Last Post: Dec 11, 2010, 9:31 PM
  4. [CLOSED] Form does not show the fields
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 26, 2010, 4:00 PM
  5. Replies: 0
    Last Post: Nov 20, 2009, 6:57 AM

Posting Permissions