Show cool things you have done with our products


Post by dhrubo »

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

Post by mats »

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

Post by dhrubo »

Hi mats,

I have understood you literally with some confusion.

through the addSubtask() isn't this saving to the database?

How can i listen to the 'write' event.

It would be highly appreciable if you provide me any code sample for this as i'm newbie in bryntum as well as extjs.

Thanks
dhrubo

Post by mats »

You need to study the documentation, that's how you learn. Read about the Store, Proxy and Model classes.
through the addSubtask() isn't this saving to the database?
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.
store.on('write', function() { // SEE DOCS });

Post Reply