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
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy