function renderPhotoColumn(object, value, cell, options) { if (object.PhotoCount > 0) { var image = new Image(); image.src = "../resources/assets/images/CheckMark.png"; image.onclick = function () { createSlideShow(object) }; return image; } } function createSlideShow(siteObject) { try { fpSlideshow.setTitle("Site " + siteObject["Site ID"] + " photos"); var data = []; for (var i = 1; i <= siteObject.PhotoCount; i++) { data.push({ image: parameters.photoURL + "thumbnails/" + siteObject["Site ID"] + "_" + i + ".jpg", link: parameters.photoURL + siteObject["Site ID"] + "_" + i + ".jpg" }); } Galleria.configure({ popupLinks: true }); Galleria.run('.galleria', { dataSource: data }); fpSlideshow.show(); } catch (e) { console.log("createSlideshow - " + e.message); } }
Solved! Go to Solution.
Add option to return field names instead of field alias in the Identify functionality of the REST API
function createSlideShow(siteObject) { try { var siteID = siteObject["Site ID"]; if (siteID == undefined) { siteID = siteObject["SITE_ID"] } fpSlideshow.setTitle("Site " + siteID + " photos"); var data = []; for (var i = 1; i <= siteObject.PhotoCount; i++) { data.push({ image: parameters.photoURL + "thumbnails/" + siteID + "_" + i + ".jpg", link: parameters.photoURL + siteID + "_" + i + ".jpg" }); } Galleria.configure({ popupLinks: true }); Galleria.run('.galleria', { dataSource: data }); fpSlideshow.show(); } catch (e) { console.log("createSlideshow - " + e.message); } }
Add option to return field names instead of field alias in the Identify functionality of the REST API
function createSlideShow(siteObject) { try { var siteID = siteObject["Site ID"]; if (siteID == undefined) { siteID = siteObject["SITE_ID"] } fpSlideshow.setTitle("Site " + siteID + " photos"); var data = []; for (var i = 1; i <= siteObject.PhotoCount; i++) { data.push({ image: parameters.photoURL + "thumbnails/" + siteID + "_" + i + ".jpg", link: parameters.photoURL + siteID + "_" + i + ".jpg" }); } Galleria.configure({ popupLinks: true }); Galleria.run('.galleria', { dataSource: data }); fpSlideshow.show(); } catch (e) { console.log("createSlideshow - " + e.message); } }