How can I dynamically list only fields with values on a topic?

Lists fields on a topic (along with their values):

%JQREQIURE{"chili"}%
%STARTSECTION{"example"}%

%FORMAT{
  "%QUERY{
    "'%URLPARAM{"qtopic" default="%WEB%.%TOPIC%"}%'/fields.name"
  }%"
  type="string"
  format="$percntIF{
    \"'%URLPARAM{"qtopic" default="%WEB%.%TOPIC%"}%'/$item =~ '\w'\"
    then=\"   $ $item: $percntQUERY{'%URLPARAM{"qtopic" default="%WEB%.%TOPIC%"}%'/$item}$percnt\"
  }$percnt"
}%

%ENDSECTION{"example"}%

Test:

TopicTitle
How can I dynamically list only fields with values on a topic?
TopicClassification
FrequentlyAskedQuestion
Subject
Data forms, Search

Support.FAQForm edit

TopicClassification FrequentlyAskedQuestion
Subject Data forms, Search
Topic Summary
Extension
Interested Parties
Related Topics
Topic revision: r2 - 27 Dec 2011, ArthurClemens - This page was cached on 10 Apr 2017 - 19:22.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License