HPCC-25634 Improve navigation pane for empty dynamic ESP bindings Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@@ -476,6 +476,8 @@ IPropertyTree *CEspBinding::addNavException(IPropertyTree &folder, const char *m
void CEspBinding::getNavigationData(IEspContext &context, IPropertyTree & data)
{
+ if (isDynamicBinding() && !isBound())
+ return;
IEspWsdlSections *wsdl = dynamic_cast<IEspWsdlSections *>(this);
if (wsdl)
@@ -62,7 +62,14 @@
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" id="table2">
- <xsl:apply-templates select="*"/>
+ <xsl:choose>
+ <xsl:when test="*">
+ <xsl:apply-templates select="*"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:text disable-output-escaping="yes">&nbsp;&nbsp;no service found</xsl:text>
+ </xsl:otherwise>
+ </xsl:choose>
</table>
</td>
</tr>