Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.Array.each(records, function(portfolioitem){
- if (portfolioitem.get('PortfolioItemTypeName') == "Feature") {
- final_features.push(portfolioitem);
- //var _childObj = {};
- //self._childObj = new Object();
- console.log("childOBJ value 1",self._childObj);
- self._childObj = portfolioitem;
- self._copyChild();
- }
- }, self);
- },
- scope: this
- });
- }, self);
- }
- }
- });
- },
- scope: this
- },
- });
- },
- // Inner Copy functions
- _copyChild: function() {
- console.log("child value here", that._childObj);
- this.innerModelRetrieved();
- },
- innerModelRetrieved: function() {
- var that = this
- console.log("next child value here", that._childObj);
- that._type = 'PortfolioItem/' + that._childObj.get('PortfolioItemTypeName');
- Rally.data.ModelFactory.getModel({
- type: that._type,
- success: that.onInnerModelRetrieved,
- scope: that
- });
- },
- onInnerModelRetrieved: function(model) {
- console.log("next child value here", that._childObj);
- this.model = model;
- this.genericInnerCopy(model);
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement