PDA

View Full Version : Retrieving the data from the preloaded store.



kavyakn
11 Mar 2012, 10:07 PM
I want to retrieve the data from the pre loaded store and set the same in text field.On clicking any node in the tree , i am receiving the node id, using this id i need to get the other details of the store and set it in the text fields . Can anyone pls suggest a way to do it ?

vietits
11 Mar 2012, 10:33 PM
// get record from your store
var record = <your store>.getById(<your record id>);
// get field value from record
var fieldValue = record.get('<fieldName>');
// set value to text field
<textField>.setValue(fieldValue);