Trying to use DeepCopy feature available with Rally SDK 2.0rc3 to copy MMF/Feature getting error Uncaught TypeError: object is not a function
I am new to Rally, I think I am doing something wrong while calling the DeepCopy function, any suggestions on this. Thanks in advance
This is the code where I am calling DeepCopy function
Ext.create('Rally.ui.dialog.ChooserDialog', {
//model: 'PortfolioItem/Feature',
//fetch: ['FormattedID','Name','UserStories'],
width: 450,
autoScroll: true,
height: 525,
title: 'Select to Copy',
pageSize: 100,
autoLoad: true,
artifactTypes: ['portfolioitem'],
autoShow: true,
listeners: {
//load: this._onDataLoaded,
artifactChosen: function(selectedRecord) {
console.log("copied element", Rally.util.DeepCopy(selectedRecord));
},
scope: this
},
storeConfig : {
filters: [
{
property: 'PortfolioItemType.Name',
operator: '=',
value: 'Feature'
}
]
}
}),
You're close - try calling the copy method on the Rally.util.DeepCopy singleton:
Rally.util.DeepCopy.copy(selectedRecord);
In case you didn't have the API link: https://help.rallydev.com/apps/2.0rc3/doc/#!/api/Rally.util.DeepCopy