cancel
Showing results for 
Search instead for 
Did you mean: 

How to iterate multi-value property in ftl

mitpatoliya
Star Collaborator
Star Collaborator
How to iterate multi-value property in ftl. As that property is returning some sequence and I am having hard time dealing with it.
It always throws this kind of error.

       ""      ,"freemarker.template.TemplateException: Expected number, date, or string. t.properties[\"test:custommultivalueprop\"] evaluated instead to freemarker.template.SimpleSequence on line 44, column 86 in amp\/getTest.get.json.ftl."
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
I think using list directive should work, how to use mvalue depends on your test:custommultivalueprop data type.


                 <#if node.properties["test:custommultivalueprop"]?exists>
                    <#list node.properties["test:custommultivalueprop"] as mvalue>
                       ${mvalue}
                    </#list>
                 <#else>
                    
                 </#if>
Getting started

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.