<div dir="ltr">#gui/config/parameter_renderers.yml<div>VirtualParameters.pppoeUsername: username_link<br></div><div><br></div><div>When the GUI renders that vParam, it will call the function named 'username_link'</div><div><br></div><div>#gui/config/parameter_renderers/username_link.rb</div><div><div>def username_link(val)</div><div>  username = val.sub(/\@broadband/, '')</div><div>  if username != 'UNKNOWN'</div><div>    "<a href=\"#{Rails.configuration.dashboard_base_url}/Broadband/Customer/Account/#{username}\" target=\"_blank\">#{username}</a>"</div><div>  end</div><div>end</div></div><div><br></div><div>This turns the username into a clickable URL that links to our subscriber management software</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 1:53 PM,  <span dir="ltr"><<a href="mailto:eric@aisling-technologies.com" target="_blank">eric@aisling-technologies.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-580573148188506578WordSection1"><p class="MsoNormal">I am trying to get a handle on how to use the parameter_renderer.yml, using the sample with the uptime.  I see how the script and everything works, however, I have not found how to use it in my parameters.json to display in Index or summary?  Any help is greatly appreciated.<u></u><u></u></p></div></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" rel="noreferrer" target="_blank">http://lists.genieacs.com/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>