{"action":"closed","issue":{"url":"https://api.github.com/repos/rniemeyer/knockout-jqAutocomplete/issues/26","repository_url":"https://api.github.com/repos/rniemeyer/knockout-jqAutocomplete","labels_url":"https://api.github.com/repos/rniemeyer/knockout-jqAutocomplete/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/rniemeyer/knockout-jqAutocomplete/issues/26/comments","events_url":"https://api.github.com/repos/rniemeyer/knockout-jqAutocomplete/issues/26/events","html_url":"https://github.com/rniemeyer/knockout-jqAutocomplete/issues/26","id":170504993,"number":26,"title":"How do you pre-populate this control?","user":{"login":"gregveres","id":12899823,"avatar_url":"https://avatars.githubusercontent.com/u/12899823?v=3","gravatar_id":"","url":"https://api.github.com/users/gregveres","html_url":"https://github.com/gregveres","followers_url":"https://api.github.com/users/gregveres/followers","following_url":"https://api.github.com/users/gregveres/following{/other_user}","gists_url":"https://api.github.com/users/gregveres/gists{/gist_id}","starred_url":"https://api.github.com/users/gregveres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregveres/subscriptions","organizations_url":"https://api.github.com/users/gregveres/orgs","repos_url":"https://api.github.com/users/gregveres/repos","events_url":"https://api.github.com/users/gregveres/events{/privacy}","received_events_url":"https://api.github.com/users/gregveres/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T19:59:43Z","updated_at":"2016-12-31T18:33:42Z","closed_at":"2016-12-31T18:33:42Z","body":"Hi, \n\ngenerally I assume that everybody has run across an issue before me, but I can't find an example of what I need to do.\n\nI have a dialog box where one of the fields lets the user type in a name. This uses the jqAutocomplete binding to go to the server and fetch the list of names. What comes back is an array of\n{ Id,  Name }\n\nI display the Name using the labelProp and the id is the valueProp. InputProp is also Name. ValueProp is tied to a ko observable in my model.\n\nThis works great when I create the database entry with the dialog.\n\nNow I am working on editing that database entry. When I edit, I need to have the jqAutocomplete box show the Name field again, but my problem is that when I set my ko observable, I get Id showing up in the jqAutocomplete field. I know I haven't set the name anywhere for jqAutocomplete to read it, but I can't figure out how to do this. I can have access to the name, but how does one reconstruct the UI for an edit dialog using jqAutocomplete?\n\nThanks\nGreg\n"}}
{"actor":{"display_login":"gregveres"}}