1. #1
    Sencha User
    Join Date
    Jan 2010
    Posts
    91
    Vote Rating
    0
    sofway is on a distinguished road

      0  

    Default load a form

    load a form


    Hi,
    i have an Ext.form.FormPanel that i want to fill with the load method but the json response doesnt has the same input field names of the form. Is there any way to map the name of the json response with the names of the form?
    thanks

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    480
    Vote Rating
    1
    plalx has a spectacular aura about plalx has a spectacular aura about

      0  

    Default


    There is no such built-in functionality using the load method but you can always consume your service with a store and defining mappings on the fields. Then you will be able to load data into the form using the Ext.form.BasicForm.loadRecord() method. The BasicForm object is encapsulated by the FormPanel and you can retrive it using the Ext.form.FormPanel.getForm() method.

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Quote Originally Posted by scarsick View Post
    There is no such built-in functionality using the load method but you can always consume your service with a store and defining mappings on the fields. Then you will be able to load data into the form using the Ext.form.BasicForm.loadRecord() method. The BasicForm object is encapsulated by the FormPanel and you can retrive it using the Ext.form.FormPanel.getForm() method.
    Use a Reader in your load call which will load a Record into the form.

    Records read by a Reader use mappings to extract data from the raw data object.

Similar Threads

  1. Form Load/Submit progress bar / load mask
    By brianm8675309 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 12 Mar 2010, 4:21 PM
  2. Load remote combobox on form load
    By andreluige in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 17 Oct 2009, 6:11 PM
  3. DataView inside Form - load values from form load
    By SchattenMann in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 4 Jun 2009, 8:29 AM
  4. How to load the store from a form load xml response
    By Hemant Bob in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Jan 2009, 1:46 AM
  5. Check JsonStore load and Store load for form display
    By vayumahesh in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 9 Sep 2008, 12:07 PM

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi