# Settings

There is no need to use the Settings module. If you do not, then the following is assumed:

if a layer has fields named StartDT & EndDt or StartDate & EndDate (case independent) in an appropriate format, then these will be used as the start and end dates to filter that layer;

if a layer has a field named Date (case independent) in an appropriate format, then this will be used as the both start and end dates to filter that layer;

the date format used for display will be Day/Month/Year unless only integer date fields are found, in which case only years are displayed;

if a table named "Commentary" is found with a text field "Commentary", then this will be used as the commentary table & field provided that the table has valid date fields.

The Date control module will check each visible vector layer and each table. If field settings for the layer or table have been saved, using the Settings module, it will use those, otherwise it will look for the default fields.

The Settings module shows a table with the layers & tables.

By clicking on the row, the fields for that layer/table are made available in the start and end date field combo-boxes on the right. By selecting the appropriate field and clicking the Set button, the fields for the layer/table are specified.

If string dates are selected, then the values of the fields selected will be checked. The start and end dates must have the same format ("YYYYMMDD" or "YYYY/MM/DD").

The date display format is the format that will be used by the Date control module to label the buttons etc..

In the image shown, the table "Guide" has been selected as the commentary table & the fields to be used are shown.

If the Reset button is clicked, then these entries will be cleared and the label of the button will be changed to Set to show that there is no currently select commentary table.

In this condition (the label showing Set) clicking on a table entry in the table of layers & tables will put the table name into the text box & add the field names to the list below. If you wish to use this as the commentary table, then select the field names to use & click the Set button.

The effect of clicking in the Set button is shown in the lower of the two images: the button label changes to Reset; only the selected fields are shown in the table.

Clicking the Save settings button saves the settings to a text file in the same directory as the project and the name is created by appending ".settings" to the project name.

Created with the Personal Edition of HelpNDoc: Full-featured Kindle eBooks generator