I have a window with a tabpanel in which I layout a form (first tab) and data view (second tab). This window might be open from a grid (for example double click). These 2 tabs describe:
- tab1: data for an object (let's say a ca)
- tab2: images of the same object.
Each of the two components (data view and form) have their own store (DirectStore). Both of the stores have a param that is send to the server in order to know who's fields value or who's images are returned.
My questions are:
- how do I pass the object id from the grid to the window
- how do I pass the object id to the tab's components in order to load the right data.
- where from do I make the calls for loading the above store?
Info:
- My question is also related to best practice, nice way. This would be used in a MVC app.
- My window has to take all the data from Direct call.