% local form, viewlibrary, page_info, session = ... require("viewfunctions") %> <% 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("searchbymac", "listdevices")) func(data.value.result, viewlibrary, page_info, session) end end %>