Now I can add items with store.newItem(). After adding it, it’s placing it after the old JSON data.
But how do I place it in children (look at my code)?
{
'id': 'WMD',
'name': 'Web MD.',
'type': 'continent',
'children': [
{
'_reference': 'PUTTANONE'
}
]
}
How do I add it into that place?
Now I have finished my problems. I get the idea from this site
I’m still use
store.newItembut have to keep the value that return, and usestore.saveWhen its done, have a look on
function saveStoreDoneAnd have a look on
function onCompleteFetchDone! 😀