2
A
回答
3
您可以通过对象的模型的实例做到这一点,类似以下内容:
Rally.data.ModelFactory.getModel({
type: "Defect",
success: function (defectModel) {
var newDefect = Ext.create(defectModel, {
Name : "My New Defect from SDK2",
Priority : "Normal",
Severity : "Minor Problem",
Description : "Improper display of...",
State : "Submitted"
// Other relevant/required fields
});
newDefect.save({
callback: function(result, operation) {
if(operation.wasSuccessful()) {
//Get the new defect's objectId
var objectId = result.get('ObjectID');
}
}
});
}
});
下从文档页面显示AppSDK2全面创建/读取/更新/删除周期:
https://developer.help.rallydev.com/apps/2.0p5/doc/#!/guide/appsdk_20_data_models
相关问题
- 1. 在Hy中创建对象
- 2. 在RaphaelJS中创建对象
- 3. 在C++中创建对象
- 4. 在GenericObjectPool中创建对象
- 5. 在javascript中创建对象
- 6. 在堆中创建对象
- 7. 在Makefile中创建对象
- 8. 在JS中创建对象
- 9. 创建对象的对象
- 10. 创建创建空对象
- 11. “对象未设置...”在对象创建
- 12. 对象创建
- 13. 对象创建
- 14. 对象创建
- 15. 对象创建
- 16. 对象创建
- 17. 创建对象
- 18. 创建对象
- 19. 创建对象
- 20. 创建对象
- 21. 创建对象
- 22. 在对象创建时/创建对象后设置Parse.Object.relation
- 23. 在创建字符串对象时创建了多少对象
- 24. 在feathers.js中,如何在创建初始对象后创建关联的对象?
- 25. 在春天创建对象
- 26. 创建对象在Python
- 27. 在块内创建对象
- 28. 在IRB上创建对象
- 29. 创建对象的Java中
- 30. 如何在创建对象时在after_filter中获取对象ID?