Render Orthogonal Data from another column
Render Orthogonal Data from another column
Can render from other Columns without issue usually but in this case i want to display something that is a few levels deep and I can just can;t seem to get to it, though I can see the Content in the console when I step through the process.
{
"data": "Timestamp", "width": "20%", 'target': 7,
"render": function (d, type, row, meta) {
return TimeStampUser(d, row["AuditTrail.User.Name"]);
}
},
function TimeStampUser(TimeStamp, User) {
var content = '';
content = content + '<div>' + moment(TimeStamp).format("YYYY/MM/DD HH:mm:ss") + '<br/>' + User + '</div>'
return content;
}
An Example of AuditTrail
AuditTrail:ProductId: 6, Timestamp: "2019-06-19T00:00:23.707", UserId: "15e214c1-6b95-4811-9a8f-1129fd1fe075",…}
AuditTrailAction: null
AuditTrailActionId: 0
ID: 47
ProductId: 6
Timestamp: "2019-06-19T00:00:23.707"
User: {UserId: "15e214c1-6b95-4811-9a8f-1129fd1fe075", Name: "Tim", Email: null}
UserId: "15e214c1-6b95-4811-9a8f-1129fd1fe075"
Answers
Hi @timcadieux ,
We're happy to take a look, but could you please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin