template::widget::file (public)

 template::widget::file element_reference tag_attributes

Defined in packages/acs-templating/tcl/widget-procs.tcl

Generate a file widget.

Parameters:
element_reference - Reference variable to the form element
tag_attributes - HTML attributes to add to the tag
Returns:
Form HTML for widget
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 test_template_widget_file template_widget_file (test acs-templating) template::widget::file template::widget::file test_template_widget_file->template::widget::file template::widget::input template::widget::input (public) template::widget::file->template::widget::input

Testcases:
template_widget_file
Source code:

    upvar $element_reference element

    array set attributes $tag_attributes

    #
    # If the multiple flag is set for the element, we allow more than one file
    # in the widget, by using the HTML5 'multiple' attribute of the 'input' tag
    #
    if { [info exists element(multiple)] } {
        set attributes(multiple) {}
    }

    return [input file element [array get attributes]]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-templating/tcl/widget-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: