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):
- 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