ISDATATRUE Wrap-around Element

Posted on 21 June 2017
A staggering 96% of those surveyed by application platform, KnowledgeKube, identified that more than a quarter of their processes were inefficient.

After producing structured JSON data - for example, by using a service request or generating it locally - you can use the ISDATATRUE element tag to conditionally evaluate it. If the result of the evaluation is True, the wrapped content will be displayed; otherwise, it will be hidden.

The following example counts the number of results allocated to ProductData, then checks whether the total is equal to zero. If so, an explanatory paragraph will be displayed.

<%= ISDATATRUE(
    Keyword="ProductData"
    Path="results"
    Type="Count"
    Name="TotalProducts"
    Expression="TotalProducts = 0;") %>
<p>No products in category.</p>
<%= %>
Posted: 21/06/2017 00:00:00 by Andrea Lantos | with 0 comments


Comments
Blog post currently doesn't have any comments.