LinkedIn
Copied!

Table of Contents

Specifying read-only and edit options for a Date time control

Edit options determine when a control is editable or read-only for the application's users.

In the layout of the form that you are editing, complete the following task: Adding a Date time control to a layout.
  1. Click the control, and then click the View properties icon.

  2. On the Presentation tab of the Properties panel, specify the Edit options for the Date time control.

    These selections take precedence over section and harness settings.

    • To make the property editable for an application end user, depending on the edit mode of the enclosing section or harness, select Auto.
    • To make property values read-only for end users, select Read-only (always).
    • To select the expression used to evaluate the conditions in which property values are read-only, select Read-only (expression)

      In the adjacent field press the Down Arrow key to specify the condition.

    • To select the when rule used to evaluate the conditions in which property values are read-only, select Read-only (when rule)

      In the adjacent field press the Down Arrow key to specify the when rule.

    • To make the property always editable for users, select Editable.
  3. For read-only modes, use the Read-only value list to select one of the following settings:

    • To display the value of the property that you specify, select Another property's value

      In the field that is displayed, select the property for which you want to display the value.

    • To display the value of the selected property, select Property value.
    • To display the value of the constant that you enter in the field, select Constant.
    • To display the localized value of the property, select Localize property value.
  4. In the Label format field, press the Down Arrow key to specify a format such as Standard (label) or Heading 1 to be applied to the control's label at run time.

  5. Click Submit.

  • Date time (calendar) control

    To present a date, time, or both on a form, use the Date time control. You can modify the control features to improve user experience by making date and time selection simple and intuitive. For example, you can choose to display the calendar widget with spinners to make it easier to switch between months and years.

  • Configuring the basic settings for a Date time control - a date or time

    Select a property for a Date time control to determine the dates and times that the application users can select. Set related options to specify the label, default value, helper text, and field visibility for the control.

  • Specifying presentation options for a Date time control

    You can specify how read-only dates or date and time combinations are displayed in your application. For example, you might specify that the year comes first, or that months are spelled out rather than represented numerically.

  • Selecting the date and time format and display mode

    You can specify which date and time element selectors are displayed on the form at run time. For example, you can display a calendar widget with a corresponding text input field or display drop-down fields for selecting the month, day, and year.

  • Selecting spinners or drop-down fields for navigation

    You can specify whether your application users select dates and times with spinner controls or drop-down fields.

  • Restricting the years displayed

    To make it easier for users to select valid dates, you can restrict the number of years that are displayed relative to, and including, the current date. At run time, only values that fall within the range of dates that you specify are visible on the calendar widget or available by using spinners or drop-down fields.

  • Displaying week numbers in calendar widgets

    If users are accustomed to seeing week numbers in calendars, you can specify that the week numbers are displayed along the left side of the calendar widget in your application. The week numbers are shown according to the ISO 8601 standard date notation. Week numbers may vary, depending on locale.

  • Disabling the selection of weekend days

    To make it easier for users to select valid dates, you can disable weekend dates so that users cannot select them in your application. Weekend (non-working) dates can be based on the user's calendar or on another business calendar.

  • Setting intervals of minutes

    By default, the time picker displays minutes from 0 through 59. To restrict the time selections available to users, you can configure your application to display intervals of minutes on time controls, instead.

  • Specify actions for a control

    You can specify action sets—event-action pairings—to determine the behavior of a control. For example, you might specify that clicking a button triggers the refresh of a section. You can define multiple events and actions in an action set, and you can create multiple action sets for a single control.

  • Copying, moving, or deleting a control

    You can use basic Windows operations to speed the development of your controls.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.