To continue with this content, please log in with your Data Access ID or create a new account.
Cancel Data Access ID
You may not be authorized to see this content. Please contact Data Access Europe for more information.
Cancel Data Access Europe
You are not authorized to see this content.
Cancel Data Access Europe
Next lesson:
WebDatePicker
Cancel

Getting to know the Web Controls

Lesson 15 - WebDateForm

In this lesson we will look at the WebDateForm control in DataFlex. The WebDateForm is a data entry object for date values. Entering date values is something that is often used in web applications. Consider, for example, booking a holiday where you can enter a departure and arrival date. A monthly calendar will pop up, after clicking the prompt button. Let’s take look at it in the next example.


DEMONSTRATION

  • This example demonstrates a simple page of a web application for booking a vacation.
  • We can fill in all the information and especially the first and the last day of the vacation. 
  • If I click the little calendar prompt on the right. The calendar will pop-up. Now I can select a date. I can change the month or even the year to select a date. It is also possible to click on the today’s date.
  • This WebDateForm can be used with or without a data binding.
  • There are some interesting properties to check:
    • The ShowToday and ShowWeekNr properties are set to true by default. 
    • It shows the weeknumber on the left side of the calendar and the today’s date at the bottom. 
    • You can click on this to select today’s date. 
    • AutoShow is false by default. If you set this to true. 
    • The calendar automatically pop-up when the form gets the focus.
  • As you can see the WebDateForm is easy to use.