Element Details: Date Picker
 Back


Available in: Logi Info Source code name: DatePickerIntroduced in: v9.5.169

The DatePicker displays a calendar allowing the user to select a single date or a date range.

DatePicker automatically adds InputHidden elements that are assigned the date(s) selected in the calendar. These dates can be accessed through the request tokens. For example:
@Request.myDatePicker~
@Request.myDatePickerEndDate~


Element Group:User Input



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
CalendarCaptionFormat
UserDefined
None
Set the format to "None" to prevent display of the caption row.
CellSpacing
UserDefined
The width, in pixels, of the space between table cells.
Class
UserDefined
Sets the Cascading Style Sheet class used by the element. When set, this class will also be used by all child elements that don't have their own class. The class should be defined in the report's style sheet file.
DefaultValue
UserDefined
The default value displayed or selected when the report page is initially displayed. For the InputSelectList element, to show multiple selected values, this attribute can be over-ridden by adding a DefaultValues element with a DataLayer below that.
DropdownYearAndMonth
True
False
Specifies if the calendar header can have a drop down list for the month and year selection, allowing the user to change months and years. The default value is "True". When "False", a label with the current calendar's year and month is displayed instead.
EndDateDefaultValue
UserDefined
Default value for the end date in a range.
EndDateRangeID
UserDefined
ID of the second date in the selected range. When the page is submitted, the value can be accessed with a @Request token. For example: @Request.myEndDate~
ID
UserDefined
(Required) The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition.
InputDateReformat
UserDefined
Reformats the date when the InputDate is returned and referenced as an @Request token. This attribute over-rides the Settings' Globalization element which formats dates based on the Server Culture. For details on the various date formats, visit: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafmtuserdefineddateformats.asp
NumberOfDropdownYears
UserDefined
Number of years to be listed in the calendar's year dropdown.
NumberOfMonths
Month
3Months
2Months
Number of months to be displayed in the calendar.
SecurityRightID
UserDefined
When entered, access to this element can be controlled with Logi security. Supply the ID of a right defined in the applications settings’ Security element. Only users that have a right in the SecurityRightID will be able to see the element. Note that when rights come from RightFromRole elements under Security/UserRights, and this element's SecurityRightID does NOT match any of the Right IDs defined in the Settings definition, then the user DOES have access. But when Right IDs are instead derived from RightsFromDataLayer or RightsFromRoles elements, and the user DOES NOT have a matching Right, then the user DOES NOT have access. You can enter multiple right IDs, separated by commas. In this case, the user sees the element if he has any one of the Rights.
ShowDateRange
True
False
Show Date Range allows two dates to be selected, representing starting and ending dates. For the Input Date element, if Show Date Range="True", two input boxes for dates are displayed. If the popup calendar feature is used, the first date selected becomes the value for the starting date; the second date selected sets the value for the ending date. The calendar displays the selected range in a highlighted color. For the Date Picker element, if Show Date Range="True", no input boxes are displayed, but date selection on the popup calendar operates in the same manner.
TableBorder
UserDefined
Draws a border around the table. Set this value to the number of pixels of the border width. A value of 1 draws a thin border.
WeekdayCaptionFormat
None
dddd
ddd
dd
Sets the format for weekdays that appear across the top of the calendar. Set the value to "None" to prevent display of the weekdays row. The default value is "dddd" for the Data Calendar and "dd" for both the Input Date and the Date Picker elements. "dddd" shows the full weekday name, i.e "Monday", while "ddd" displays an abbreviated weekday name as "Mon". Use "dd" to display the weekday name as "M".
Width
UserDefined
The width of the element.
WidthScale
px
%
The width scale of the element. Value can be "px" for pixels, or "%" for percentage of the available width.



PARENT ELEMENTS

Click element to drill down for more information.

Body
Division
Fieldset Box
HTML Tag
Input Grid
Panel Parameters
Popup Panel
Report Footer
Report Header


CHILD ELEMENTS

Click element to drill down for more information.

Validation.Date Validation.Javascript Validation.Required


 Back to top


© Copyright 2007-2019 Logi Analytics, Inc. All Rights Reserved           |          Contact DevNet          |          Site FAQs          |          Terms of Use          |          LogiAnalytics.com