I am hoping someone could assist me with an autoform update form issue I am having. I am adding an update form to an admin panel. I have a view where I list out a list of lists. Basically I am giving the user the ability to add multiple task lists (not that earth shattering I know). On the view where I have multiple lists displaying I am able to get the update form for each individual list to display with the proper data no problem using this:
{{> quickForm collection="TaskList" id=updateListId type="update" doc=this}}
and the helper:
Template.SingleList.helpers({
updateListId: function() {
return this._id;
}
});
however I cant seem to be able to figure out how to add the update form to my pages that contain each individual lists details. I am creating that view with flowrouter using this:
Template.TaskList.onCreated(function(){
var self = this;
self.autorun(function(){
var id = FlowRouter.getParam('id');
self.subscribe('tasklists', id);
});
});
Template.TaskList.helpers({
tasklists: ()=> {
var id = FlowRouter.getParam('id');
return TaskList.findOne({_id:id});
}
});
I tried my original helper for the individual list pages but it does not like it. How would I go about drilling a little deeper and getting this to work?