Skip to content

Instantly share code, notes, and snippets.

Created September 19, 2012 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/3747421 to your computer and use it in GitHub Desktop.
Save anonymous/3747421 to your computer and use it in GitHub Desktop.
Rally App SDK 2.0 add new test
<!DOCTYPE html>
<html>
<head>
<title>Add New Test</title>
<script type="text/javascript" src="https://rally1.rallydev.com/apps/2.0p/sdk.js"></script>
<script type="text/javascript">
Rally.onReady(function() {
Ext.define('CustomApp', {
extend: 'Rally.app.App',
launch: function() {
this.add({
xtype: 'rallyaddnew',
recordTypes: ['User Story'],
ignoredRequiredFields: ['Name'],
listeners: {
recordadd: function(addNew, result) {
Ext.Msg.alert('Add New', 'Added record named ' + result.record.get('Name'));
}
}
});
}
});
Rally.launchApp('CustomApp', {
name: 'AddNew Test'
});
});
</script>
</head>
<body></body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment