Add fields to CSV export

Dan Morphis dan at milkcarton.com
Tue Nov 22 17:20:25 EST 2016


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:
,"<%= tags(device['_tags']) %>"

This to your genieacs-gui/config/parameter_renderers.yml file:
_tags: tags

and create this file: genieacs-gui/config/parameter_renderers/tags.rb:
def tags(val)
  val.join(", ")
end



On Tue, Nov 22, 2016 at 6:25 AM, Kris Germann <kgermann at portal.net.co>
wrote:

> I'd like to add a tag field to the CSV export and sort by that by
> default... is this possible?
>
> I am building a reporting mechanism for new additions for some of my
> wholesalers that use my ACS and this would be quite useful.
>
> Kris
>
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20161122/99fcccfb/attachment.html>


More information about the Users mailing list