Has anybody figured out how to create an app that allows a user to add lines to a document, such as a sales or purchase order, through the mobile app framework? I haven't been able to get it working and I haven't seen any examples where this has been done.

The only standard app that has something similar is the project timesheet app but there's a whole load of code and a new table powering that, I hope I don't need to use that pattern!