<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div>
<div id="appendonsend" style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks! We're currently on 2.7.1, looking to upgrade to 2.8 in the near future. Without adding a file such as the one given in my earlier message, I get a 500 error with "ActionView::Template::Error (Missing partial jobs/report_partials/_string with {:locale=>[:en],
 :formats=>[:html], :variants=>[], :handlers=>[:erb]}" in the log.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Many thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Nick<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Mayo, Dave
 <dave_mayo@harvard.edu><br>
<b>Sent:</b> 05 October 2020 15:06<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Custom reports with string params?</font>
<div> </div>
</div>
<div style="word-wrap:break-word" lang="EN-US">
<div class="x_WordSection1">
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
Hmmm. I will double check, but this is running in production over here right now, so I’m wondering if the reporting functionality has changed since I looked at it.  What version of ASpace are you targeting?
</p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
 </p>
<div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
--</p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
Dave Mayo (he/him)</p>
</div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
Senior Digital Library Software Engineer<br>
Harvard University > HUIT > LTS</p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
 </p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b><span style="font-size:12.0pt; color:black">From: </span></b><span style="font-size:12.0pt; color:black"><archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Nick Butler <npwb2@cam.ac.uk><br>
<b>Reply-To: </b>Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Date: </b>Monday, October 5, 2020 at 5:02 AM<br>
<b>To: </b>Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject: </b>Re: [Archivesspace_Users_Group] Custom reports with string params?</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
 </p>
</div>
<div>
<div id="x_appendonsend">
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Hi Dave,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Thank you for this link, it's really helpful. I've installed your reports plugin on a dev system and am now hitting the same problem I'm having with my report - how to get the text box to show up on the report screen
 (i.e. what to put in the jobs/report_partials/_string partial). I tried just using the following line:<br>
<br>
</span><span style="font-size:12.0pt; font-family:"Courier New"; color:black"><% form.textfield name, nil, :class => 'text-field form-control' %></span><span style="font-size:12.0pt; color:black"><br>
<br>
But this leads to the attached being displayed instead of a text box! Might you be able to advise on how you were able to configure String parameter entry? It's not part of this plugin as far as I can see.</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Many thanks,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Nick</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;text-align:center" align="center">
<hr width="98%" size="2" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b><span style="color:black">From:</span></b><span style="color:black"> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Mayo, Dave <dave_mayo@harvard.edu><br>
<b>Sent:</b> 02 October 2020 17:07<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Custom reports with string params?</span>
</p>
<div>
<p class="x_MsoNormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
 </p>
</div>
</div>
<div>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
Hi,<br>
<br>
We have a plugin we wrote with some custom SQL reports – this one uses a string parameter for an EADID or list of EADIDs -
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_harvard-2Dlibrary_harvard-5Faspace-5Freports_blob_master_backend_model_resource-5Ftop-5Fcontainers.rb&d=DwMF-g&c=WO-RGvefibhHBZq3fL85hQ&r=_Mv1dY22K7jvT5MD7xjbvGVzRDOUMhx4WYcnPSIzYnE&m=vxglUw8t_VtzdmI4EgmrlZKgEhbH4HWb62nSSw8qxSg&s=_4X19v5v8vsd2PaH5kstXhBz--LcfhRVWxmxhDgeTxk&e=">
https://github.com/harvard-library/harvard_aspace_reports/blob/master/backend/model/resource_top_containers.rb</a><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<br>
This is currently installed in production and working; it should be fine to install it and test locally or on a QA system, if you want to try it out in a live system.<span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
 <span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
--<span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
Dave Mayo (he/him)<span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
Senior Digital Library Software Engineer<br>
Harvard University > HUIT > LTS<span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
 <span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b><span style="font-size:12.0pt; font-family:"Times New Roman",serif; color:black">From:
</span></b><span style="font-size:12.0pt; font-family:"Times New Roman",serif; color:black"><archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Karen Miller <k-miller3@northwestern.edu><br>
<b>Reply-To: </b>Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Date: </b>Friday, October 2, 2020 at 9:42 AM<br>
<b>To: </b>Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject: </b>Re: [Archivesspace_Users_Group] Custom reports with string params?</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-family:"Times New Roman",serif"> </span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">Hi Nick,</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">I have an SQL query that I’ve embedded into an Excel spreadsheet (as a .odc file) which prompts the user for a value. The value I’m prompting for is numeric, but the code could be adjusted to take
 a string. I don’t think this is what you want, but if it is, please let me know and I’ll forward the code.</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D">Karen</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-family:"Arial",sans-serif; color:#1F497D"> </span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org>
<b>On Behalf Of </b>Nick Butler<br>
<b>Sent:</b> Friday, October 02, 2020 6:14 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> [Archivesspace_Users_Group] Custom reports with string params?<span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
</div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Hi all,</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">We've been asked to create a custom report that allows the user running it to input a string which is then used to search across various fields. I've checked through the pre-existing reports, and through several reports
 created by other institutions, but I haven't found an example of a report accepting a string parameter (only booleans and dates). I see from e.g. <a href="https://urldefense.com/v3/__https:/github.com/archivesspace/archivesspace/blob/75000415aa5ee60411c6caf012042af4fc157d00/frontend/app/views/jobs/_form.html.erb*L121__;Iw!!Dq0X2DkFhyF93HkjWTBQKhk!GX75QheNm0-XxIApINdOyeac54bS2ZjNyPlm_nxqTYFfTBABH9vDI0OxgolnoLIKYgcArjCl$">https://github.com/archivesspace/archivesspace/blob/75000415aa5ee60411c6caf012042af4fc157d00/frontend/app/views/jobs/_form.html.erb#L121</a>
 that it should be possible to use a custom partial for different data types but nothing I've tried has worked so far. Is anyone doing anything like this, and might they have an example of it working?</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black"> </span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Many thanks!</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
<div>
<p class="x_xmsonormal" style="margin: 0in; font-size: 11pt; font-family: "Calibri", sans-serif;">
<span style="font-size:12.0pt; color:black">Nick</span><span style="font-size:12.0pt; font-family:"Times New Roman",serif"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>