<%@ page import="dbnp.studycapturing.Study" %> <g:message code="default.list.label" args="[entityName]" /> <% studyList = dbnp.studycapturing.Study.list() %> <% def att_list = ['startDate','code','title'] %> <% def selectedStudies = [] %> <% def tmpList = [] %>

Compare Studies

${flash.message}
<% params.each{key,values-> %> <% if (values=="on"){ %> <% tmpList.add(key) %> <% } }%> <% for (i in studyList) {%> <% if (tmpList.contains(i.getTitle())) { %> <% selectedStudies.add(i) %> <% }} %> <% if (selectedStudies.size()>0) {%>
Study Information

${studyIns.title}
Id ${fieldValue(bean: studyIns, field: "id")}
${att} ${fieldValue(bean: studyIns, field: att)}
Subjects
${stud}
Groups
${stud}
Protocols
${stud}
Events
Assays
<% } %> <% if (selectedStudies.size()==0) {%> Please select studies to compare. <% } %>