{"action":"created","issue":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/278","labels_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/278/comments","events_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/278/events","html_url":"https://github.com/aldeed/meteor-autoform/issues/278","id":38768506,"number":278,"title":"Rendering update forms for all docs in a collection","user":{"login":"brianmingus","id":3188728,"avatar_url":"https://avatars.githubusercontent.com/u/3188728?v=3","gravatar_id":"","url":"https://api.github.com/users/brianmingus","html_url":"https://github.com/brianmingus","followers_url":"https://api.github.com/users/brianmingus/followers","following_url":"https://api.github.com/users/brianmingus/following{/other_user}","gists_url":"https://api.github.com/users/brianmingus/gists{/gist_id}","starred_url":"https://api.github.com/users/brianmingus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianmingus/subscriptions","organizations_url":"https://api.github.com/users/brianmingus/orgs","repos_url":"https://api.github.com/users/brianmingus/repos","events_url":"https://api.github.com/users/brianmingus/events{/privacy}","received_events_url":"https://api.github.com/users/brianmingus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-07-25T20:45:32Z","updated_at":"2015-04-18T13:17:03Z","closed_at":"2014-07-27T19:32:59Z","body":"Can you demonstrate the correct way to go about this? I'm trying to loop over all the docs returned by a query and render an update form for each. In this case it's not clear what to pass as the doc. \r\n\r\n![screenshot from 2014-07-25 14 43 50](https://cloud.githubusercontent.com/assets/3188728/3707972/6650cd40-143c-11e4-8f65-3c3666cc8ef5.png)\r\n\r\n![screenshot from 2014-07-25 14 44 39](https://cloud.githubusercontent.com/assets/3188728/3707980/85b83c36-143c-11e4-85f7-20a03b431914.png)\r\n"},"comment":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/comments/94164463","html_url":"https://github.com/aldeed/meteor-autoform/issues/278#issuecomment-94164463","issue_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/278","id":94164463,"user":{"login":"emmanuelbuah","id":432664,"avatar_url":"https://avatars.githubusercontent.com/u/432664?v=3","gravatar_id":"","url":"https://api.github.com/users/emmanuelbuah","html_url":"https://github.com/emmanuelbuah","followers_url":"https://api.github.com/users/emmanuelbuah/followers","following_url":"https://api.github.com/users/emmanuelbuah/following{/other_user}","gists_url":"https://api.github.com/users/emmanuelbuah/gists{/gist_id}","starred_url":"https://api.github.com/users/emmanuelbuah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmanuelbuah/subscriptions","organizations_url":"https://api.github.com/users/emmanuelbuah/orgs","repos_url":"https://api.github.com/users/emmanuelbuah/repos","events_url":"https://api.github.com/users/emmanuelbuah/events{/privacy}","received_events_url":"https://api.github.com/users/emmanuelbuah/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T13:17:03Z","updated_at":"2015-04-18T13:17:03Z","body":"@aldeed Since hooked are designed to be defined top level, how do we handle hooks for multiple update forms where we need to define the hooks dynamically using the course id (using the sample in this ticket) for the form name. e.g.\r\n\r\n```\r\n AutoForm.addHooks(\"updateCourse-\" + courseId, {\r\n   ...\r\n})\r\n```\r\n\r\nEspecially if hook functions use/depend do template specific properties. I might be thinking about this all wrong but I keep running into cases where the hooks needs to be defined dynamically and if so, it cannot be top level."}}