These pages refer to legacy Hydra and Lycia 1 features.

The functionality described here does not embrace all the functionality provided by Lycia 3.

If you use Lycia 3, please, turn to other sections of this online documentation.

 

Calendar

Description: C:\Users\user\Desktop\calendar.png

The calendar widget is displayed just like a function button field.  Clicking on the button opens a calendar window, allowing the user to select the required date graphically using the mouse. 

The selected date is then written back to the field.  The date can also be entered manually using the keyboard. 

The calendar widget field displays the date in the same format as specified in either the Environment attribute DBDATE or the fglprofile setting system.environment.dbdate = <date format>:

system.environment.dbdate = "dmy4-"

Attributes Syntax:

<tag> =    <field>,

widget="calendar"

This code sample creates a date field widget. Unlike the other widgets, the calendar field has no config string.

ATTRIBUTES

f0=   formonly.ca_date,

      widget="calendar";

Properties

The developer only needs to specify the widget type to create a calendar field (date picker) widget.

widget

The name of the calendar widget is ‘calendar’

widget = "calendar"

Description: C:\Users\user\Desktop\FormsScreenShots\cal1.jpg

How to Create a Calendar (Date Picker) widget

Project: forms
Program: fm_field_widget_calendar_simple

 

.per form:

DATABASE formonly

 

SCREEN

{

 Simple\g \gCalendar\g \gWidget\g \gDemo

                           

 Date: [f0            ]    

}

 

ATTRIBUTES

f0=formonly.ca_date,

      widget="calendar";

INSTRUCTIONS

DELIMITERS "[]"

Description: C:\Users\user\Desktop\FormsScreenShots\cal2.jpg

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.