KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums Reply To:

  • ivankk

    Member
    September 26, 2024 at 10:37 am

    If the data source looks like:

    ([] kkey: enlist`message; vvalue: 1?(“ERROR: Missing Data”; “WARNING: Last load 2024.08.12″;”Data up to date”))<div>

    I can use this template (with handlebars helper “occurrences”)

    </div>

    {{#if (occurrences this.0.vvalue “ERROR”)}}

    {{this.0.vvalue}}

    {{else}}

    {{#if (occurrences this.0.vvalue “WARNING”)}}

    {{this.0.vvalue}}

    {{else}}

    {{this.0.vvalue}}

    {{/if}}

    {{/if}}

    In this case, query mapping is not necessary. Sorry for the formatting