{"action":"created","issue":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/197","labels_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/197/comments","events_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/197/events","html_url":"https://github.com/Textalk/angular-schema-form/issues/197","id":53500149,"number":197,"title":"Specify Factory Function name to fill Dropdown List","user":{"login":"ravivit9","id":3435829,"avatar_url":"https://avatars.githubusercontent.com/u/3435829?v=3","gravatar_id":"","url":"https://api.github.com/users/ravivit9","html_url":"https://github.com/ravivit9","followers_url":"https://api.github.com/users/ravivit9/followers","following_url":"https://api.github.com/users/ravivit9/following{/other_user}","gists_url":"https://api.github.com/users/ravivit9/gists{/gist_id}","starred_url":"https://api.github.com/users/ravivit9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravivit9/subscriptions","organizations_url":"https://api.github.com/users/ravivit9/orgs","repos_url":"https://api.github.com/users/ravivit9/repos","events_url":"https://api.github.com/users/ravivit9/events{/privacy}","received_events_url":"https://api.github.com/users/ravivit9/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Textalk/angular-schema-form/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-06T10:15:04Z","updated_at":"2015-01-12T13:57:17Z","closed_at":"2015-01-12T13:26:44Z","body":"How to specify a rest api function name within the schema or form JSON structure which returns json formatted data from a php script to pulls the recordset from MySql database.  The return data set would be key value pair instead of single enum array of values.  The expected output would be something like the below:\r\ne.g.\r\n[\r\n{100: \"USA\"},\r\n{101:\"UK\"}\r\n] \r\n\r\nThis way I can define static \"form\" and \"schema\" json structure at client side by specifying the factory function name to return the dropdown data from backend to fill the dropdown otherwise I think I may have to generate both the \"form\" and \"schema\" json structure which includes dropdown values from backend which is very tedious and also unnecessary call to the backend for every form generation regardless whether it's required to generate the stand fields."},"comment":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/comments/69572701","html_url":"https://github.com/Textalk/angular-schema-form/issues/197#issuecomment-69572701","issue_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/197","id":69572701,"user":{"login":"stramel","id":855184,"avatar_url":"https://avatars.githubusercontent.com/u/855184?v=3","gravatar_id":"","url":"https://api.github.com/users/stramel","html_url":"https://github.com/stramel","followers_url":"https://api.github.com/users/stramel/followers","following_url":"https://api.github.com/users/stramel/following{/other_user}","gists_url":"https://api.github.com/users/stramel/gists{/gist_id}","starred_url":"https://api.github.com/users/stramel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stramel/subscriptions","organizations_url":"https://api.github.com/users/stramel/orgs","repos_url":"https://api.github.com/users/stramel/repos","events_url":"https://api.github.com/users/stramel/events{/privacy}","received_events_url":"https://api.github.com/users/stramel/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T13:57:17Z","updated_at":"2015-01-12T13:57:17Z","body":":+1: "}}