Major
Nice to have
Bugfix
Major
Enhancement
Improvement
The model-based search language should be extended to generate HTML with embedded search expressions.
With {{ <HTML-source-code }} literal HTML fragments can be embedded in search expressions. Within these, search expressions can be evaluated and output again with { <seach-expression> }.
Example
#!xml {{ <table> { all(`TestSearchExpression:A`) .sort( comparator(x -> list( $x.get(`TestSearchExpression:A#double`), desc($x.get(`TestSearchExpression:A#str`))))) .map(row -> {{ <tr class="{if($row.get(`TestSearchExpression:A#double`) > 10, 'critical')}"> <td>{$row.get(`TestSearchExpression:A#name`)}</td> <td>{$row.get(`TestSearchExpression:A#double`)}</td> <td>{$row.get(`TestSearchExpression:A#str`)}</td> </tr> }}) } </table>
}}}
Test
- test.com.top_logic.model.search.expr.TestSearchExpression.testHtml()