#set($view = "$searcher.searchType/${searcher.searchType}autocomplete") #set($cols = $testbench.getDetailsForView($view)) #if(!$cols) #if(!$cols || !$cols.size()) #set($cols = [$searcher.getDetail("name")]) #end #end $listresults.setHitsPerPage(20) #foreach($col in $cols) #end #foreach($type in $listresults.getPageOfHits()) #if($detail.render) #set($label = $searcherManager.getValue($catalogid, $detail.render, $type.properties)) #else #set($label = $type.getName($context.getLanguage())) #end #foreach($col in $cols) #end #end
$col.getText($context)
$context.putPageValue("data", $type) $context.putPageValue("detail", $col) $context.putPageValue("value", $type.get($col.id)) $context.putPageValue("val", $type.get($col.id)) $pages.include("$apphome/components/xml/detailreadonly.html", $context)