Boa noite, pessoal, tudo bem?
Algum de vocês já tentou usar a os métodos de ECM pelo app mobile?
var photos = [];
const loadPhotos = () => {
$.each(parent.ECM.attachmentTable.getData(), function (i, attachment) {
if(photos == [])
$("#comodos tbody tr").each(function (index) {
$(this).find("[id^='container']").html("");
});
if (!photos.includes(attachment.documentId)) {
$("#comodos tbody tr").each(function (index) {
if (attachment.description == $(this).find("[id^='hash']").val()) {
getImageURL(attachment.documentId, (url) => {
div = document.createElement("div");
div.setAttribute("class", "col-md-6");
div.id = "div_" + attachment.documentId;
img = document.createElement("img");
img.setAttribute("class", "col-md-10");
img.src = url;
div.append(img);
btn = document.createElement("button");
btn.innerHTML = "x";
btn.id = "rm___" + attachment.documentId;
btn.setAttribute("class", "btn btn-danger");
btn.addEventListener("click", (event) => removePhoto(event));
div.append(btn);
console.log(div, $(this).find("[id^='container']"));
$(this).find("[id^='container']").append(div);
})
}
});
photos.push(attachment.documentId);
}
});
setTimeout(loadPhotos, 2000);
}
A requisição funciona normalmente no web, mas não dá certo de jeito nenhum no mobile, alguém pode dar uma força??
Desde já agradeço.