dt_widget_maybe_range (public, deprecated)

 dt_widget_maybe_range [ -hide hide ] [ -hidden_value hidden_value ] \
    [ -default default ] [ -format format ] ask_for_value name start \
    end default_value [ interval ] [ with_leading_zeros ] \
    [ hidden_value ]

Defined in packages/acs-datetime/tcl/acs-datetime-procs.tcl

Deprecated. Invoking this procedure generates a warning.

DEPRECATED: this proc was only used inside of now deprecated dt_widget_datetime.

Switches:
-hide (optional, defaults to "t")
-hidden_value (optional, defaults to "00")
-default (optional)
-format (optional, defaults to "%02d")
Parameters:
ask_for_value (required)
name (required)
start (required)
end (required)
default_value (required)
interval (optional, defaults to "1")
with_leading_zeros (optional, defaults to "0")
hidden_value (optional, defaults to "00")
Returns:
form numeric range, or hidden_value if ask_for_value is false.
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 dt_widget_datetime dt_widget_datetime (public, deprecated) dt_widget_maybe_range dt_widget_maybe_range dt_widget_datetime->dt_widget_maybe_range ad_log_deprecated ad_log_deprecated (public) dt_widget_maybe_range->ad_log_deprecated dt_export_value dt_export_value (private) dt_widget_maybe_range->dt_export_value dt_widget_numeric_range dt_widget_numeric_range (public, deprecated) dt_widget_maybe_range->dt_widget_numeric_range util::trim_leading_zeros util::trim_leading_zeros (public) dt_widget_maybe_range->util::trim_leading_zeros

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc dt_widget_maybe_range
    if {!$ask_for_value} {
        # Note that this flattens to hidden_value for hidden fields
        if {$with_leading_zeros} {
            return [dt_export_value $name $hidden_value]
        } else {
            return [dt_export_value $name [util::trim_leading_zeros $hidden_value]]
        }
    }

    return [dt_widget_numeric_range  "$name" $start $end $default_value $interval $with_leading_zeros]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-datetime/tcl/acs-datetime-procs.xql

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