...
HTML |
---|
<script type="text/javascript">
var apiCall = AJS.params.contextPath + '/rest/confiforms/1.0/search/' + AJS.Meta.get("page-id") + '/formB/id:';
function loadFormBDetails(formName, formId){
AJS.$.ajax({
url: apiCall + AJS.$('#' + formId).find('#i_option').val(),
type: "GET",
async: false,
cache: false,
success: function (data) {
var transformTemplate = [{"name":"Created", "prop": "created", "renderer": "renderDate"}, {"name":"TextArea", "prop": "fields.ta"}, {"name":"Label", "prop": "fields.label", "renderer": "renderLabel"}];
buildHtmlTable('#formBDetailsTable', transformData(data.list.entry, transformTemplate));
}
});
}
</script> |
...