Results 1 to 3 of 3

Thread: Best way to pass data from a list to a panel

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    69
    Vote Rating
    0
      0  

    Default Best way to pass data from a list to a panel

    I have several lists and nested lists that read data from a database via a JSON store. When the user gets to a leaf/disclosure panel, I want to load a second store with the record detail for just the one item they've selected, and display that on the panel. What is the best practice for doing this?

  2. #2
    Ext User
    Join Date
    Nov 2010
    Posts
    4
    Vote Rating
    0
      0  

    Default

    I guess that your leaf/disclosure panel is a newly created component that extends FormPanel?
    Maybe it's enough to set a property like newPanel.leaf_object_id = some_backend_related_id and then setup your store inside the new panel.
    This store then could append the leaf_object_id to the stores proxy url and modify the server backend to return the appropriate object via json.

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    69
    Vote Rating
    0
      0  

    Default

    I thought this would be a pretty commonly implemented function and someone might have some good code examples. I'm a little confused as to how to refer to the data records in the parent list and pass them as URL parameters to the second store.

    And yes, in most instances it would be a newly created panel called by tapping an item in the list, or else it would be called in getDetailCard in a nested list.

Similar Threads

  1. Display XML data using a List/Nested List
    By busybee in forum Sencha Touch 1.x: Discussion
    Replies: 16
    Last Post: 25 Apr 2011, 6:17 AM
  2. How do I target a panel inside of a nested list to update with remote data?
    By victorbstan in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 23 Nov 2010, 8:30 AM
  3. pass data from list down to view
    By mshepherd in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 30 Jul 2010, 6:23 AM
  4. How to go through a list of data and put that in a Panel
    By shibbywowdude in forum Ext 3.x: Help & Discussion
    Replies: 10
    Last Post: 18 Apr 2010, 7:47 PM
  5. how to pass the data into grid from the textfield
    By tracy1096 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 19 Dec 2007, 8:51 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
  •