         fn = share.evidenceType[key].excel_fn
         Meteor.call method, tbl_id, (err, response) ->
             share.returnExcelFile(response, fn)
+
+share.abstractRowHelpers =
+
+    getChildren: ->
+        key = Session.get('evidenceType')
+        NestedCollection = share.evidenceType[key].nested_collection
+        return NestedCollection.find({parent_id: @_id}, {sort: {sortIdx: 1}})
 
 share.abstractRowEvents =
 

        Collection = share.evidenceType[key].collection
        Collection.update(@_id, {$set: {isHidden: !@isHidden}})

share.abstractFormEvents =

    'click #create-cancel': (evt, tmpl) ->

Session.setDefault('evidenceShowNew', false)
Session.setDefault('evidenceEditingId', null)
Session.setDefault('nestedEvidenceEditingId', null)
Session.setDefault('evidenceShowAll', false)
Session.setDefault('evidenceType', null)

