Advanced query - select samples


<% def tmpList = [] %> <% studyList = dbnp.studycapturing.Study.list() %> <% def selectedStudies = [] %> <% 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 Subject Sampling Events Sample Name Sample Material Duration
${studyIns.title}
${events.subject.name} ${studyIns.samplingEvents} ${studyIns.samplingEvents.samples.name} ${studyIns.samplingEvents.samples.material} ${events.getDurationString()}
<%}%> <% if (selectedStudies.size()==0) {%> Please select studies to query samples. <% } %>