[ 1 post ]

eduardo daniel martinez

  • Username: eduardomartinez
  • Joined: Tue Nov 06, 2012 12:39 pm
  • Posts: 33
  • Location: Palo Alto, California
  • Offline
  • Profile

Incremental loading of Models

Post Posted: Fri Dec 28, 2012 8:18 am
+0-
Though I have extensive experience in application development, I'm new to YUI3 and to web app development. My problem is as follows:

I have a complex tree-like structure in my DB. There are many Rs, each R has many Ts, each T has several Fs.

The user wants to edit a certain R. I don't want to load all the Rs, with all their Ts and Fs. What I want is to load just part of each R, say, the id and the name. Then I can show the user a list of R names from which he can select the desired R.

Given that I have the id of the selected R, I can now load more. But I don't want yet to load all its Ts, because the user may want to edit just one or two. Again, I'd like to load the id and name of each T, etc.

I want to use Model, ModelList and the sync layer, and JSON in the server response. I'm thinking in using the "options" argument to sync to request different load levels.

Any advice will be appreciated. Thanks!
  [ 1 post ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum