03-17-2015 03:39 AM
// assign json to employeelist and loop it like:
<#list employeelist as emp>
${emp.name}
[{"name": "Fred Bloggs", "email": "fred@test.com", "id": "123456"},{"name": "John Smith", "email": "john@test.com", "id": "456789"},{"name": "Bob Brown", "email": "bob@test.com", "id": "987654"}]
03-17-2015 04:06 AM
03-17-2015 04:35 AM
<script language="Javascript" type="text/javascript">//<![CDATA[
var employees = json.parse(${field.value});
//]]></script>
03-17-2015 04:38 AM
03-17-2015 04:47 AM
03-17-2015 05:31 AM
03-17-2015 08:55 AM
03-17-2015 10:18 AM
03-17-2015 04:35 AM
var jsonString = '[{"name": "Fred Bloggs", "email": "fred@test.com", "id": "123456"},{"name": "John Smith", "email": "john@test.com", "id": "456789"},{"name": "Bob Brown", "email": "bob@test.com", "id": "987654"}]';
//use the eval method to convert jsonString to JSON object.
model.employeeLis = eval('(' + jsonString + ')');
<#list employeeList as emp>
${emp.name}
</#list>
<webscript>
<shortname>example-webscript</shortname>
<description>Simple Webscript</description>
<url>/com/quanitcate/example</url>
<format default="json">any</format>
<authentication>user</authentication>
</webscript>
03-17-2015 04:50 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.