I am try to implement this basic example using , I have lookup host_env_mapping which execute below search from there I am doing pulldown for environment and setting static options as follow. I am not able to proceed as I am getting "Pulldown.html - View CONFIGRATION ERROR - you have specified a element with no
]]>
<module name="Pulldown">
<param name="postProcess">dedup $name$ | sort $name$</param>
<param name="template">environment="$value$"</param>
<param name="name">environment</param>
<param name="label">environment</param>
<param name="valueField">$name$</param>
<param name="staticOptions">
<list>
<param name="label">Select...</param>
<param name="value">ZOMG</param>
</list>
</param>
<module name="Search">
<param name="search"><![CDATA[
| inputlookup host_env_mapping | search $environment$
]]>
<module name="Pulldown">
<param name="postProcess">dedup $name$ | sort $name$</param>
<param name="template">hostname="$value$"</param>
<param name="name">hostname</param>
<param name="label">hostname</param>
<param name="valueField">$name$</param>
<param name="staticOptions">
<list>
<param name="label">Select...</param>
</list>
</param>
<module name="Gate">
<param name="requiredKeys">environment,hostname</param>
<module name="Search">
<param name="search"><![CDATA[
| inputlookup host_env_mapping| search $environment$ $hostname$ |table environment,zone,datacenter
]]>
<module name="HiddenChartFormatter">
<param name="charting.chart">line</param>
<module name="JSChart" />
</module>
</module>
</module>
</module>
</module>
</module>
<!-- EXAMPLE END -->
host_env_mapping.csv
datacenter,environment,host,hostname,information,nodetype,other1,other2,project,zone
ABC,XYZ,test123.test.com,test123,Execution,web-01,test,test1,Agg,Zone-A
The error message is talking about the value you have set for the staticOptions
param, in your Pulldown module.
<param name="staticOptions">
<list>
<param name="label">Select...</param>
</list>
</param>
You've created an option that has only a "label" and has no "value" and this is a configuration error. Add some kind of "value", even if it's just an empty value <param name="value"></param>
such that your staticOptions param looks like:
<param name="staticOptions">
<list>
<param name="label">Select...</param>
<param name="value"></param>
</list>
</param>
The error message could definitely be more specific and more clear so I'll update it to be more easily understood.
The error message is talking about the value you have set for the staticOptions
param, in your Pulldown module.
<param name="staticOptions">
<list>
<param name="label">Select...</param>
</list>
</param>
You've created an option that has only a "label" and has no "value" and this is a configuration error. Add some kind of "value", even if it's just an empty value <param name="value"></param>
such that your staticOptions param looks like:
<param name="staticOptions">
<list>
<param name="label">Select...</param>
<param name="value"></param>
</list>
</param>
The error message could definitely be more specific and more clear so I'll update it to be more easily understood.
Aha. I see the problem. For now just put a single space character in the value, for the entry in staticOptions
. Yes the Editor mistakenly omits the value from staticOptions
in this case, when what it should do is create a value node with a null value. I will put in a fix for this. Most of the time when people need a single static option, the default one is what they want (ie if you omit staticOptions entirely, you get a "all/*" option there. )
I got this, but now when I am editing using sideview editor it is not creating above mentioned param null value, it create below. which make difficult to find, as same example is working in help modules.