{"action":"created","issue":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/811","repository_url":"https://api.github.com/repos/volkanceylan/Serenity","labels_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/811/labels{/name}","comments_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/811/comments","events_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/811/events","html_url":"https://github.com/volkanceylan/Serenity/issues/811","id":160778153,"number":811,"title":"How to set selection value in lookup editor with multiple = true","user":{"login":"fazanan","id":6382278,"avatar_url":"https://avatars.githubusercontent.com/u/6382278?v=3","gravatar_id":"","url":"https://api.github.com/users/fazanan","html_url":"https://github.com/fazanan","followers_url":"https://api.github.com/users/fazanan/followers","following_url":"https://api.github.com/users/fazanan/following{/other_user}","gists_url":"https://api.github.com/users/fazanan/gists{/gist_id}","starred_url":"https://api.github.com/users/fazanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fazanan/subscriptions","organizations_url":"https://api.github.com/users/fazanan/orgs","repos_url":"https://api.github.com/users/fazanan/repos","events_url":"https://api.github.com/users/fazanan/events{/privacy}","received_events_url":"https://api.github.com/users/fazanan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-16T22:48:06Z","updated_at":"2016-06-17T22:35:26Z","closed_at":"2016-06-17T22:35:26Z","body":"Hi Jaiq,\r\n\r\nHow to set selection value in (AC/DC Site lookup editor) based on equipment change?\r\n\r\n![capture6](https://cloud.githubusercontent.com/assets/6382278/16135460/f442ad84-344d-11e6-837f-6181f01232e3.PNG)\r\n\r\nUse this tricky now work properly.\r\n\r\n form.Eqp.ChangeSelect2(e =>\r\n {\r\n          EquipmentService.Retrieve(new RetrieveRequest\r\n          {\r\n                        EntityId = IEqpId\r\n           }, response =>\r\n          {\r\nEquipmentRow eqp = response.Entity;\r\n  J(\".select2-choices\").Append(\"<li class='select2-search-choice'>\" + eqp.acdc + \"<div></div><a tabindex = '-1' class='select2-search-choice-close' href='#'></a>\");\r\n          }\r\n }"},"comment":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/comments/226897376","html_url":"https://github.com/volkanceylan/Serenity/issues/811#issuecomment-226897376","issue_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/811","id":226897376,"user":{"login":"fazanan","id":6382278,"avatar_url":"https://avatars.githubusercontent.com/u/6382278?v=3","gravatar_id":"","url":"https://api.github.com/users/fazanan","html_url":"https://github.com/fazanan","followers_url":"https://api.github.com/users/fazanan/followers","following_url":"https://api.github.com/users/fazanan/following{/other_user}","gists_url":"https://api.github.com/users/fazanan/gists{/gist_id}","starred_url":"https://api.github.com/users/fazanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fazanan/subscriptions","organizations_url":"https://api.github.com/users/fazanan/orgs","repos_url":"https://api.github.com/users/fazanan/repos","events_url":"https://api.github.com/users/fazanan/events{/privacy}","received_events_url":"https://api.github.com/users/fazanan/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T22:35:26Z","updated_at":"2016-06-17T22:35:26Z","body":"Thanks Jaiq,\r\n\r\nIt works, with passing the ID in string type\r\n\r\nform.AcDcSiteList.Values = new string[] { \"1\", \"2\" };\r\n\r\nRegards"}}
{"actor":{"display_login":"fazanan"}}