[luci] How to get a section name
edwin
edwin.voip at gmail.com
Sat Aug 16 09:41:43 CEST 2014
Hi,
I have a typedsection as below:
s = m:section(TypedSection, "channels",
translate("Channels"),translate("Channels to be monitored or controlled"))
s.addremove = true
I want to set the default value of remoteID option same as the name of each
section. How to do it? I tried below code and get a result of table.
local rid = s:option(Value, "remoteID", translate("Remote ID"))
rid.default = s.map:get(section,"name")
Cheers.
Edwin
More information about the luci
mailing list