{ __proto__ {...} Object CodePostaleConstruction "38260" String CodeProgramme "01000" String HorodatageCreation null Null HorodatageModification null Null HorodatageSuppression null Null IdMembreCreation null Null IdMembreModification null Null IdMembreSuppression null Null + JsonObject {...} Object JsonObjectString "" String LibelleMembreCreation null Null LibelleMembreModification null Null LibelleMembreSuppression null Null LibelleProgramme "AB / LA COTE SAINT ANDRE" String sHorodatageModification "" String Ville "LA COTE ST ANDRE" String }
var loadProgrammeImmobilier = function (searchCodeProgramme, searchLieu) { // programmeImmobilier $.ajax({ type: 'GET', url: 'http://localhost:xxxx/api/Programme/RecupererToutProgramme', data: { "searchCodeProgramme": searchCodeProgramme, "searchLieu": searchLieu }, contentType: 'application/json; charset=utf-8', success: function (data) { var myData; for (var i = 0; i < data.Item.length; i++) { myData = data.Item[i]; } $('#programmeImmobilierTable').DataTable({ data: myData, dataSrc : '', columns: [ { data: "CodeProgramme" }, { data: "LibelleProgramme" }, { data: "CodePostaleConstruction" } ] }); //}); }, error: function (data) { alert(data); } }); };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)