#set( $xmledithome = $context.getPageProperty("xmledithome")) #set( $readonly = "false" ) #set( $readonly = $context.getRequestParameter("detailsreadonly")) #set( $alwaysshow = $context.getRequestParameter("alwaysshow")) ##$context.putPageValue("caneditlists","false") ##We need 3 things passed in: $searcher, $view, $data #if(!$details) #if ($view ) #set ($details = $searcher.getDetailsForView($view)) #if( !$details) #set ($details = $testbench.getDetailsForView($view)) #end #else #set ($details = $testbench.getDetailsForView($viewpath)) #end #if(!$details) #set ($details = $testbench.getDetailsForView($searcher, $view.id)) #end #end #set ($mode = $user.get("oe_edit_mode")) #if($mode == "debug") Update View #end
#set($rowindex = 0) #foreach ($detail in $details) #set($val = false) #set($target = "${detail.id}.value") #set( $val = $context.getRequestParameter($target)) #if( !$val ) #set( $val = $!{data.getProperty($detail.getId())} ) #end #if( !$val) #set( $val = $!{data.get($detail.getId())} ) #end #set($rowindex = $rowindex + 1) #set($bgclass = "") #if( $rowindex % 2 == 0 ) #set($bgclass = "bg-light") #end $!context.putPageValue("detail",$detail) #set( $editrow = $detail.isEditable() && $readonly != "true" ) #if( $editrow || $val || !$detail.isEditable()) #if( !$val) #set( $val = "") #end $!context.putPageValue("val",$val) $!context.putPageValue("value",$val)
#if( $editrow ) $pages.include("$xmledithome/detailedit.html", $context) #else $pages.include("$xmledithome/detailreadonly.html", $context) #end #if ( $detail.note )
$detail.note
#end
#end #end