each row of the table there gets generated like so...
# suitescript
e
each row of the table there gets generated like so now:
Copy code
function toTableRow(html, applicant) {
        // XXX Crappy workaround for click handler export not functioning correctly
        var onclick = "require([\"" + CLIENT_PATH + "\"], function(mod){mod.supportApplicant(" + applicant.id + ");})";
        return html + [
            "<tr><td>",
            applicant.individualName, " (", applicant.role, ")",
            "</td><td>",
            "<button type='button' onclick='" + onclick + "'>Support</button>",
            "</td></tr>"
        ].join("");
    }
👍 1