Windows Azure で開発を始めたばかりです。ここまでは順調ですが、非常に基本的な質問に行き詰まっています。モバイル サービス スクリプトからアイテムを別のテーブルに挿入するにはどうすればよいですか? Windows Azure ブログで見つけたコードは、宣伝どおりに動作しないようです。
function insert(item, user, request) {
var currentTable = tables.getTable('current'); // table for this script
var otherTable = tables.getTable('other'); // another table within the same db
var test = "1234";
request.execute(); // inserts the item in currentTable
// DOESN'T WORK: returns an Internal Server Error
otherTable.insert(test, {
success: function()
{
}
});
}
私が間違っていることや、使用する構文に関するヘルプがどこにあるかについて何か考えはありますか? ありがとう!