Customizing
Version 26 39.5.25 39.5.23 39.5.22 39.5.21 39.5.20 39.5.19 39.5.18 39.5.17 German English
Version 26 39.5.25 39.5.23 39.5.22 39.5.21 39.5.20 39.5.19 39.5.18 39.5.17 German English

Customize Date Listboxes with Calendar Function

Information

  • Using the Calendar Control function you can customize special date listboxes (calendar listboxes) for date data fields.

  • General information on date listboxes with calendar function and its use, please click here.

Procedure

  • Open the required data area in the Data Areas module.

  • For the required date field

    • Select DF behavior = cc.

    • The Do you want to copy in the template for the cc data field? message is displayed.

      • Yes:

        • Three types of templates are offered for selection.

        • Select the required template.

        • The selected template is automatically copied to the Data field configuration field.

        • Parameters can be adapted in the Data field configuration field afterwards, if necessary.

      • No:

Parameter

Description

Permitted values

Not permitted values

def_start_date

Default start date

  • Absolute values (e.g. "08/14/2009")

  • System variables with/without operations (e.g. "@123" oder "@123+10")

  • Dynamic Variables

  • Python IDs

start_date

Start date

  • Absolute values (e.g. "08/14/2009")

  • System variables with/without operations

  • Dynamic variables with/without operations (e.g. @D123+15)

  • Python ID of the start date data field


def_end_date

Default end date

  • Absolute values (e.g. "08/14/2009")

  • System variables with/without operations (e.g. "@123" oder "@123+10")

  • Dynamic Variables

  • Python IDs

end_date

End date

  • Absolute values (e.g. "08/14/2009")

  • System variables with/without operations

  • Dynamic variables with/without operations (e.g. "@D123+15")

  • Python ID of the end date data field


def_calendar

Default calendar ID

  • Values from DI000305 Calendar from DT418 Calendar (e.g. "BK")

  • System variables (e.g. "@123")

  • Dynamic Variables

  • Python IDs

calendar

Calender ID

  • Values (values from DI000305 Calendar from DT418 Calendar )

  • System variables

  • Dynamic variables (e.g. @D123)

  • Python ID of the data field which defines the calendar


def_selection_mode

Default selection mode

  • Values ("working", "non_working", "all")

  • System variables

  • Dynamic variables or

  • Python IDs

selection_mode

Selection mode

  • Python ID of the data field which defines the selection mode

  • Dynamic variables (e.g. @D123)

  • System variables

  • Values ("working", "non_working", "all")


xaml

XML document with a root element containing XAML settings for calendar control.



Details

  • Each parameter is entered in a new line.

  • Structure schema: param_name=value

  • For default parameters, the entered value applies to the entire column.

  • For non-default parameters, the entered value only applies for the corresponding record.

    • If both non-default and default parameters are entered, the non-default parameters overwrite the default parameters.

  • All customizing settings are saved in a string: "attr1=Wert1;attr2=Wert2;..."

  • If you use variables for the values and add or subtract certain day figures, you have to make sure that before and after operations no white spaces are entered.

    • E.g. the entry "@D123 + 10" is interpreted as "@D123" since the entry is followed by a whitespace in the first case.

  • DI/DF Python IDs cannot be combined with other values.

    • E.g. "end_date=requested_end+10" is not supported while "end_date=requested_end" is supported.

Example

CalendarControl.png

def_start_date = 01.01.1970
def_end_date = 31.12.2099
calendar= @G150

xaml = <StackPanel 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <toolkit:Calendar xmlns:toolkit="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit" 
    Name="Calendar" 
    Margin ="0,-3,0,-2">
    </toolkit:Calendar>
  </StackPanel>

Details

  • For the complete Calendar Control documentation, see: http://msdn.microsoft.com/en-us/library/system.windows.controls.calendar(VS.100).aspx

Set input only via listbox

Information

  • As in the case of regular listboxes, when embedding date listboxes in a module, the customizer can use the Input only via listbox parameter to define for date listboxes that only data from the listbox can be taken.