11-05-2010 09:07 AM
<webscript>
<shortname>Folder listing utility</shortname>
<description>Sample demonstrating the listing of folder contents</description>
<url>/countries?country={country}</url>
<format default="json">extension</format>
<authentication>user</authentication>
</webscript>
var country = args.country;
if(country == null)
{
var countries = ["Japan","Slovenia", "Austria", "Thailand"];
model.countries = countries
model.country = "none";
}
else
{
var cities = [];
cities["Japan"] = ["Tokio", "Fukuoka"];
cities["Slovenia"] = ["Maribor", "Ptuj", "Ljubljana", "Koper"];
cities["Austria"] = ["Graz", "Vienna"];
cities["Thailand"] = ["Bangkok"];
model.country = country;
model.cities = cities[country];
}
<#if country == "none">
[ <#list countries as country>"${country}", </#list> ]
<#else>
[ <#list cities as city>"${city}", </#list> ]
</#if>
11-05-2010 04:33 PM
11-08-2010 04:49 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.