<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
</head><body><p></p><p>Dan,</p><p>I am getting the following error:</p><pre><em>undefined method `join' for nil:NilClass<br></em><br>Extracted source:<br></pre><div class="line"><br></div><div class="line">%>
</div><div class="line">“<%= param_names.keys.join('","').html_safe %>","Last inform”</div><div class="line">  <% @devices.each do |device| %>
</div><div class="line active">“<%= param_names.collect{|k,v| (p = get_param(v, device)).is_a?(String) ? p : p['_value'] rescue ''}.join('","').html_safe %>","<%= tags(device['_tags']) %>”</div><div class="line">  <% end %>
</div><div class="line"><br></div><div class="line">Note I have removed the portion to sort by last inform, I only wish to sort by tags.</div><div class="line"><br></div><div class="line">Kris</div><p> <br></p><blockquote type="cite">On November 22, 2016 at 5:20 PM Dan Morphis <dan@milkcarton.com> wrote:<br><br><div dir="ltr">I haven't tried it, but try putting this at the end of the 6th line in genieacs-gui/app/views/devices/index.csv.erb:<div>,"<%= tags(device['_tags']) %>"<br></div><div><br></div><div>This to your genieacs-gui/config/parameter_renderers.yml file:</div><div>_tags: tags<br></div><div><br></div><div>and create this file: genieacs-gui/config/parameter_renderers/tags.rb:</div><div><div>def tags(val)</div><div>  val.join(", ")</div><div>end</div></div><div><br></div><div><br></div></div><div class="ox-9393e993e4-gmail_extra"><br><div class="ox-9393e993e4-gmail_quote">On Tue, Nov 22, 2016 at 6:25 AM, Kris Germann <<a href="mailto:kgermann@portal.net.co" target="_blank">kgermann@portal.net.co</a>> wrote:<br><blockquote><u></u><div><p>I'd like to add a tag field to the CSV export and sort by that by default... is this possible?</p><p>I am building a reporting mechanism for new additions for some of my wholesalers that use my ACS and this would be quite useful.</p><p>Kris</p></div><br>______________________________<wbr/>_________________<br> Users mailing list<br> <a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br> <a href="http://lists.genieacs.com/mailman/listinfo/users" target="_blank">http://lists.genieacs.com/<wbr/>mailman/listinfo/users</a><br> <br></blockquote></div><br></div>_______________________________________________<br>Users mailing list<br>Users@lists.genieacs.com<br>http://lists.genieacs.com/mailman/listinfo/users<br></blockquote></body></html>