Hi,
I am developing the subform repeater to spreadsheet. However, the file upload feature isn't working. I can only add files, but when I try to delete a file, I click "remove" and it doesn't show. Then, when I save, it comes back with a jQuery.Deffered exeption !
i add that to my getrowTemplate
if (mode.equals("Header")) {
Document doc = Jsoup.parse(html);
Elements head = doc.select("label");
String html2 = "";
for (int i = 0; i < head.size(); i++)
html2 += "<th>" + head.get(i).select("label").first().text() + "</th>\n";
LogUtil.info("--->IN edit mode HTML2", getPropertyString("readonly"));
if (!("true".equals(getPropertyString("readonly")))) {
html2 += "<th>Actions</th>\n";
}
// LogUtil.info("-->",html2);
return html2;
}
if (mode.equals("body")) {
Document doc = Jsoup.parse(html);
Elements divs = doc.select("div.subform-column").select("div.subform-cell");
String html2 = "<tr" + " class=\"" + cssClass + "\">" + "<div class =\"subform-container no-frame\">"
+ doc.select("input[type=hidden]");
html2 += "<td style = \"display:none\" class=\"subform_wrapper\">";
html2 += "<input type=\"hidden\" class=\"unique_value\" name=\"" + elementParamName
+ "_unique_value\" value=\"" + uniqueValue + "\" />";
String m;
for (int i = 0; i < divs.size(); i++) {
divs.get(i).select("label").remove();
divs.get(i).attributes().add("style", "display: flex;flex-direction: row;justify-content: center;align-content: center;");
m = this.validateMultiRow(divs.get(i).toString(), rowFormData.getPrimaryKeyValue());
if (m.isEmpty()) {
html2 += "<td><div>" + doc.select("div.subform-container").select("input[type=hidden]")
+ divs.get(i) + "<div></td>\n";
} else {
html2 += "<td><div>" + doc.select("div.subform-container").select("input[type=hidden]")
+ divs.get(i)
+ "<span class=\"form-error-message\" style=\"display: flex; justify-content: center;\">"
+ m + "</span>" + "</div></td>\n";
}
}
if (!("true".equals(getPropertyString("readonly")))) {
html2 += "<td class=\"repeater-action\">" + doc.select("a.repeater-action-delete")
+ "</td>\n </div></tr>";
}
return html2;
}
.