{"action":"opened","issue":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/1051","repository_url":"https://api.github.com/repos/volkanceylan/Serenity","labels_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/1051/labels{/name}","comments_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/1051/comments","events_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/1051/events","html_url":"https://github.com/volkanceylan/Serenity/issues/1051","id":170665539,"number":1051,"title":"LookupEditor code not generated.","user":{"login":"SimeonDD","id":19690830,"avatar_url":"https://avatars.githubusercontent.com/u/19690830?v=3","gravatar_id":"","url":"https://api.github.com/users/SimeonDD","html_url":"https://github.com/SimeonDD","followers_url":"https://api.github.com/users/SimeonDD/followers","following_url":"https://api.github.com/users/SimeonDD/following{/other_user}","gists_url":"https://api.github.com/users/SimeonDD/gists{/gist_id}","starred_url":"https://api.github.com/users/SimeonDD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimeonDD/subscriptions","organizations_url":"https://api.github.com/users/SimeonDD/orgs","repos_url":"https://api.github.com/users/SimeonDD/repos","events_url":"https://api.github.com/users/SimeonDD/events{/privacy}","received_events_url":"https://api.github.com/users/SimeonDD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-11T14:52:53Z","updated_at":"2016-08-11T14:52:53Z","closed_at":null,"body":"Hi there,\r\nI am trying to modify a SERGEN-generated New-Record dialog to show the name of an item instead of its ID.\r\n\r\nI am absolutely sure Serene is dong things completely fine.\r\nI am probably missing a single thing.\r\nSincere thanks for any pointers (like - go there - repeat that code).\r\n\r\nMy test case (inside the demo project) is identical to Notrhwind.Territories.\r\nThe \"New Territory\" dialog shows a drop-down for Region.\r\nMy popup shows the ID column.\r\n\r\nThe table names are slightly different but the case is very simple.\r\nSQL-Server 2014\r\ndbo.TestWMTable has a PK col (identity), text col and Int col for the TypeID\r\ndbo.WMType has a WmTypeID col (identity) and a name col for the type.\r\ndbo.TestWMTable.WmTypeID contains the IDs from dbo.WMType.WmTypeID.\r\nThe FK relatiohship between the two tables has been properly defined.\r\n\r\nSERGEN creates all forms perfectly.\r\nOnly I cannot change the NEW-Record dialog for dbo.TestWMTable to show a drop-down instead of an int field.\r\n\r\nI did compare the code to the Territories and Region examples.\r\nThey look identical to me.\r\n\r\nI had to add a few things myself and one of them is the LookupEditor line below\r\n\r\n=== TestWmTableForm.cs ===\r\n[LookupEditor(typeof(Entities.WmTypeRow))]\r\npublic Int32 WmTypeId { get; set; }\r\n\r\nThe project crashes on start because rebuild does not create the Lookup-related code in ...Web.js\r\n"}}
{"actor":{"display_login":"SimeonDD"}}