Results 1 to 2 of 2

Thread: Multiple Form panels in a container with data from JSON object ?

  1. #1

    Default Multiple Form panels in a container with data from JSON object ?



    hi,

    Do anyone know how to do this in Sencha Touch ? This is similar to the Linkin IPhone app

    I have a JSON store in which I pull out records of people who wants to befriend me and place each individual record in a form. The form will have 2 buttons : accept or reject the befriend request.
    Once either button is clicked, the form will update the befriend table and that particular form will disappear and the rest of the form panels will be pushed up to take the place of the disappeared form

    I declared my JSON store as such :

    PHP Code:
    Ext.regModel("Befriends", {
                
    fields: [
                    
    "requesteeid",     // id of the person you want to befriend with 
                    
    "requesteename",
                    
    "status"
                
    ]
        });

    var 
    BefriendsStore = new Ext.data.Store({
            
    model'Befriends',
            
    proxy: {
                
    type'ajax',
                
    url 'befriendshow.php',
                
    reader: {
                    
    type'json',
                    
    root'results'
                
    }
            },
            
    autoLoadtrue
        
    }); 
    I was looking at Ext.XTemplate to see if this can be done

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    FormPanel may not be the best component to use here. Why not use DataView and add buttons to each?
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Similar Threads

  1. [OPEN] [2.0b1] Multiple form panels not rendering in tabpanel?
    By thejoker101 in forum Ext 2.x: Bugs
    Replies: 20
    Last Post: 7 Jan 2008, 9:50 AM
  2. Dragging Panels - Offset between drag container and actual object
    By alamandrax in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 25 Nov 2007, 3:07 AM
  3. Multiple tabs with same container (form)
    By JorisA in forum Ext 1.x: Help & Discussion
    Replies: 7
    Last Post: 15 May 2007, 6:37 AM
  4. One form grouping multiple tabs or panels
    By hady in forum Ext 1.x: Help & Discussion
    Replies: 8
    Last Post: 5 Dec 2006, 2:24 PM

Posting Permissions

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