% local form, viewlibrary, page_info, session = ... require("htmlviewfunctions") html = require("acf.html") %> <% htmlviewfunctions.displaycommandresults({"deletedevice", "editdevice", "editdeviceparams", "overridedeviceparams"}, session) %> <% if session.searchdevicesresult then local data = session.searchdevicesresult session.searchdevicesresult = nil if data.value and data.value.result then local func = haserl.loadfile(page_info.viewfile:gsub("searchbyextension", "listdevices")) func(data.value.result, viewlibrary, page_info, session) end end %>