How do I display the values under StratusFormsRepeatable?
How do I display the values under StratusFormsRepeatable?
Blubeacon
Posts: 1Questions: 1Answers: 0
I'm new to Datatables but was able to figure out how to list the ID#, Title, and StratusFormsData columns but I want to create columns for the other data that comes after StratusFormsRepeatable (jpg attached) but can't figure out how to get to it. How do I display the first and last name for example? Here is the code that is working for me so far.
<script type="text/javascript">
function LoadISSRs(projects)
{
var call = $.ajax({
url: "https://walgreens.sharepoint.com/teams/W_IT1/CISO/ISSR/" + "_api/web/lists/getByTitle('Database')/items?"+"$select=ID,Title,Created,StratusFormsData&$expand=StratusFormsRepeatable&$top=550",
type: "GET",
dataType: "json",
headers: {
Accept: "application/json;odata=verbose"
}
});
call.done(function (data,textStatus, jqXHR){
$('#issr').dataTable({
"bDestroy": true,
"bProcessing": true,
"data": data.d.results,
"columns": [
{ "data": "ID" },
{ "data": "Title" },
{ "data": "Created" },
{ "data": "StratusFormsData" }
]
});
});
call.fail(function (jqXHR,textStatus,errorThrown){
alert("Error retrieving Tasks: " + jqXHR.responseText);
});
}
</script>
This discussion has been closed.