-
-
Save ferentchak/3749760 to your computer and use it in GitHub Desktop.
Rally App SDK 2.0 add new test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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