{"action":"opened","issue":{"url":"https://api.github.com/repos/scottdurow/SparkleXrm/issues/53","labels_url":"https://api.github.com/repos/scottdurow/SparkleXrm/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/scottdurow/SparkleXrm/issues/53/comments","events_url":"https://api.github.com/repos/scottdurow/SparkleXrm/issues/53/events","html_url":"https://github.com/scottdurow/SparkleXrm/issues/53","id":77446485,"number":53,"title":"Grid Editor - Displaying Aliased Values On Lookup Fields","user":{"login":"BobHatcher","id":12090526,"avatar_url":"https://avatars.githubusercontent.com/u/12090526?v=3","gravatar_id":"","url":"https://api.github.com/users/BobHatcher","html_url":"https://github.com/BobHatcher","followers_url":"https://api.github.com/users/BobHatcher/followers","following_url":"https://api.github.com/users/BobHatcher/following{/other_user}","gists_url":"https://api.github.com/users/BobHatcher/gists{/gist_id}","starred_url":"https://api.github.com/users/BobHatcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobHatcher/subscriptions","organizations_url":"https://api.github.com/users/BobHatcher/orgs","repos_url":"https://api.github.com/users/BobHatcher/repos","events_url":"https://api.github.com/users/BobHatcher/events{/privacy}","received_events_url":"https://api.github.com/users/BobHatcher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-18T01:05:58Z","updated_at":"2015-05-18T01:05:58Z","closed_at":null,"body":"I am using Grid Editor to display an Opportunity Product. I have a Lookup to the Existing Product. This follows the pattern as Scott's sample for the Quote editor.\r\n\r\nWhen I use the Lookup, I want it to display the `productnumber` field rather than `name`. I can edit this when the user conducts a search by editing the `SearchCommand`.\r\n\r\nBut when I load the Editor again, I get the name attribute again.\r\n\r\nIn the constructor for the OpportunitylineItemEditorViewModel, there is a Fetch, to which I added:\r\n```xml\r\n<link-entity name='product' from='productid' to='productid' visible='false' link-type='outer' alias='ep'>\r\n     <attribute name='productnumber' />\r\n</link-entity>\r\n```\r\n\r\nNote the alias name `ep` to represent the existing product.\r\n\r\nSo when I try to use this in the `init`, I can't get it to recognize the `productnumber` name.\r\n\r\n```C#\r\n            XrmLookupEditor.BindColumn(\r\n                GridDataViewBinder.AddColumn(columns, \"Existing Product\", 200, \"productid\"),\r\n                vm.ProductSearchCommand, \"productid\", \"ep.productnumber\", \"\");\r\n```\r\n\r\nThe dot syntax (`ep.`) is the way it's done in JavaScript in my experience, so I'm using that.\r\n\r\nI also tried updating the ScriptName variables in both the Model (OpportunityProduct.cs) and Observable ViewModel (ObservableOpportunityProduct.cs), e.g.,\r\n\r\n```C#\r\n        [ScriptName(\"ep.productnumber\")]\r\n        public Observable<string> ProductNumber = Knockout.Observable<string>();\r\n```\r\n\r\nIs this supported and if so what am I missing? "}}