CodeCharge Studio

Control Source Type Property

Specify the type of data source that will provide data for the control.

Applies to

Checkbox, Checkbox List, File Upload, Hidden, Image, Image Link, Label, Link, List Box, Radio Button, Text Area, Text Box

Description

The type of data source from which the control gets its value. This can be one of the following:

Setting Description
Database Column
(default)
The control value will come from a column within a database table.
Datasource Parameter This setting is available if the Source Type of a form is Stored Procedure. The control value is retrieved from the Data Source of a form. The supported parameters have either the InputOutput or Output return type.
Code Expression The control value will be derived from an expression specific to the particular programming language being used. This could be a function that returns a value, a pre-existing variable or any other valid language construct that will evaluate to a definite value.
Special Value This option is available only for controls located inside the Calendar or Report components.
  • For Report the Special Value is available only for the Label control, please see Control Source Type property (Report).
  • For Calendar the Special Value is available for the simple controls (Label, Link, ImageLink, Image). The value of the Control Source property should be one of the following: NextProcessingDate, CurrentProcessingDate, PrevProcessingDate.

    The value differs depending on the location in the Calendar blocks.

    For example, if a control is located inside the main block of the Year Calendar, then NextProcessingDate will be equal to January 1 of the next year, CurrentProcessingDate will be equal to January 1 of the displayed year and PrevProcessingDate will be equal to January 1 of the previous year.

    If a control is located inside the Month calendar then NextProcessingDate will be equal to the 1 day of the next to the displayed month, etc.

    If a control is located inside the Day block in any calendar then NextProcessingDate will be equal to the next date of the current month , CurrentProcessingDate will be equal to current date of the month, etc.

This type is applicable to the controls used to display Date (if the Data Type property is equal to Date).

See Also


On-line, printable versions and updates