I don't know the answer because I'm not too good with DerbyJS yet, but I must say, the question occurred to me too.
If you run the directory example project for example, it's basically CRUD "with a difference". The create page has a cancel option but the edit page doesn't. The save button on the edit page doesn't actually save, your changes are saved as you make them. Navigate away without saving and you've still saved.
Philosophically, working with an open mind, this actually seems to me a better way to work. But practically, such behaviour seems to contradict the entire history of GUI interfaces as I know it; certainly web based interfaces. So users are going to get a big shock and probably make some crucial mistakes with their data if you run your UI like that. Then they will get used to it of course, after making a mistake.
I'm wondering whether the DerbyJS community has considered this and has an answer or viewpoint on it.
Apologies in advance if I just suck at searching for this, but...--Is there a way or strategy in place to be able to undo an operation? Better yet, a series of operations?The information is there (oplog?), but I'm not sure what the best way to approach this would be.It would be quite handy to be able to undo an arbitrary number of operations performed by a user or group of users, etc. Perhaps, a sort of start transaction flag could be set prior to editing and then everything could be rolled back to that point in the log (but only for that user's operations) if needed. Maybe the entire operational transform process would have to be run again from that point (without the user's operations), or maybe there's some algorithm to disentangle it all in reverse. Or something else?Did I miss this feature in the docs or this group's messages?Without it, for anything in which the user should be able to cancel or undo an operation, I have to do a bunch of x-binding and storing of intermediate vars and all of that. It sure would be handy to be able to use the {} handlebars syntax instead.
You received this message because you are subscribed to the Google Groups "Derby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to derbyjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Regarding the save button pattern for edits. We created a library to handle this kind of CRUD stuff (including frontend validation): https://github.com/BBWeb/derby-validator
--
You received this message because you are subscribed to a topic in the Google Groups "Derby" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/derbyjs/IeaHLdXs7b0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to derbyjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Derby" group.
To unsubscribe from this group and stop receiving emails from it, send an email to derbyjs+u...@googlegroups.com.