1.5

$(document).ready(function () {
setupExample();
$("form").on("submit", function (event) {
event.preventDefault();
if (!checkSessionValid()) { return; }
var dataRecordId = $("#datarecord").val(),
templateId = $("#designtemplate").val(),
section = $("#section").val().trim(),
params = {
inline: $("#inline").val()
};
if (section.length) { params.section = section; }
/* Process Content Creation (By Data Record) */
$.ajax({
type: "GET",
url:
"/rest/serverengine/workflow/contentcreation/html/" +
templateId + "/" + dataRecordId,
data: params
}).done(function (response, status, request) {
displayHeading("Result");
displaySubResult("Response", htmlToLinkWindow
(response, "Result Link"), false);
}).fail(displayDefaultFailure);
});
});
}(jQuery));
Page 155