Did you check there is a response in that thread which is what you are looking for? i.e. retrieve data and show it in a html table
Here is an extract. You need to modifiy this as per your requirement-
==============
<html><head>
<title>Account Services</title>
<script src="../WebResources/raj_jquery_1.9.1.min"></script>
<script src="ClientGlobalContext.js.aspx"></script>
<script type="text/javascript">
function loadAccountServices() {
//Get Account Guid
var accountId = window.parent.Xrm.Page.data.entity.getId();
//Get Account Services
var accountServices = getAccountServices(accountId);
if (accountServices != null && accountServices.length > 0) {
var tableData = "";
for (var i = 0; i < accountServices.length; i++) {
var service = accountServices[i].raj_name;
if (service != null) {
//dynamically add table data with Service Names
tableData = tableData + "<tr><td>" + service + "</td>";
}
var service1 = accountServices[i].raj_Mobile;
if (service1 != null) {
tableData = tableData + "<td>" + service1 + "</td>";
}
var service2 = accountServices[i].raj_Email;
if (service2 != null) {
tableData = tableData + "<td>" + service2 + "</td></tr>";
}
}
//Create HTML table
var table = "<table style='font-family:Segoe UI;font-weight:normal;font-size:13px;text-align:center'border='1'><tr style='height:20px'><td bgcolor='#A9D0F5'>Name</td><td bgcolor='#A9D0F5'>Mobile</td><td bgcolor='#A9D0F5'>Email</td></tr>" + tableData + "</table>";
//show table data on the Account form
window.document.writeln(table);
}
}
//get Account Services
function getAccountServices(accountId) {
var serverUrl = Xrm.Page.context.getClientUrl();
var oDataUri = serverUrl + "/xrmservices/2011/OrganizationData.svc/raj_accountservicesSet?$select=raj_name,raj_Mobile,raj_Email&$filter=raj_Acc2AccserId/Id eq guid'" + accountId + "'";
// alert(oDataUri);
var accountServices = null;
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
datatype: "json",
url: oDataUri,
async: false,
beforeSend: function (XMLHttpRequest) {
XMLHttpRequest.setRequestHeader("Accept", "application/json");
},
success: function (data, textStatus, XmlHttpRequest) {
if (data != null && data.d.results.length > 0) {
accountServices = data.d.results;
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
}
});
return accountServices;
}
</script>
<meta charset="utf-8"></head>
<body style="word-wrap: break-word;" onload="loadAccountServices();">
<br>
<form onload="loadAccountServices();">
</form></body></html>
================