Advanced query - select samples



<%= params %>
<%= selectedStudyIds.each{ println it } %>
Subgroups :
<%= subgroups%> <% showSubgroups = (subgroups.size()>0) %> <% def firstRow = true %>
Study Subject Sampling Events Sample Name Sample Material Start Time Subgroups Selection
${studyIns.title}
<% firstRow=false %> ${event.subject.name} ${event.eventDescription.name} ${sample.name} ${sample.material} ${event.getPrettyDuration( studyIns.startDate, event.startTime)}
Study does not cotain any samples.
<% def cb1 = '\'.checkbox1_' + studyIns.id + '\'' %> <% def cb2 = '\'.checkbox2_' + studyIns.id + '_' + event.subject.id + '\'' %> <% def cb3 = '\'.checkbox3_' + studyIns.id + '_' + event.subject.id + '_' + sample.id + '\'' %>

Infer subgroups:
<% if (selectedStudies.size()==0) { %>
Please select studies to query samples. <% } %>