Hi,
Thanks for your prompt answer.
Sorry, i've not understood what you tried to say.
Can you please elaborate me?
I actually need the 'Id' in which id, the task is saving in the task table.
Thanks
dhrubo
Support Forum
To get the 'real' Id, you will need to first save the task. Listen to the 'write' event and then you can get the newly assigned Id that has been assigned by your DB.
https://docs.sencha.com/extjs/4.2.2/#!/a ... vent-write
https://docs.sencha.com/extjs/4.2.2/#!/a ... vent-write
You need to study the documentation, that's how you learn. Read about the Store, Proxy and Model classes.
This just creates a new task client side (in the browser). If you setup autoSync on your, it will be saved right away. But you still need to listen to 'write' event.
through the addSubtask() isn't this saving to the database?
store.on('write', function() { // SEE DOCS });