The results for
LifeCycleStatus is coming back fine, but for
Priority it's coming back [object OBJECT].
var query = "http://collaboration-dev.norgine.com/sites/it/SystemInventory/_vti_bin/listdata.svc/Devices?$expand=LifeCycleStatus&Priority&$filter=Id eq " + window.DeviceId + "";
The rest of the code which relates to the Priority column is:
var txtTrafficlight = ""; var DevicePriority = item.Priority; txtTrafficlight = "<p>" + DevicePriority + "</p>"; $('#devicestatus').append(txtTrafficlight);