xowiki::formfield::child_components (public)

 xowiki::formfield::child_components [ -filter filter ] objs

Defined in packages/xowiki/tcl/form-field-procs.tcl

For every form-field obj in the provided objs, return a list of all child components (potentially leaf components of compound fields). The result list is filtered by the optional filter expression, which can refer to the current object via variable $_.

Switches:
-filter (optional, defaults to "true")
Parameters:
objs (required, object)
input form-field objs

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::xowf::test_item::Answer_manager Class ::xowf::test_item::Answer_manager (public) xowiki::formfield::child_components xowiki::formfield::child_components Class ::xowf::test_item::Answer_manager->xowiki::formfield::child_components xowf::test_item::Answer_manager instproc get_non_empty_file_formfields xowf::test_item::Answer_manager instproc get_non_empty_file_formfields (protected) xowf::test_item::Answer_manager instproc get_non_empty_file_formfields->xowiki::formfield::child_components

Testcases:
No testcase defined.
Source code:
    set result {}
    foreach obj $objs {
      lappend result {*}[lmap _ [$obj leaf_components] {
        if {![expr $filter]} continue
        set _
      }]
    }
    return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: