HowTo: Using the Data Source From property

Official Content
This documentation is valid for:

At present, you often find dynamic controls such as Combo Boxes or Wheels in both Web and Smart Device applications, which are used to dynamically restrict data entry by a user. This feature enables us to indicate the data source for these controls in an easy, clear and reusable way.


Make it possible to choose, at design time, where to obtain the data for controls of Dynamic Combo Box, Dynamic List Box or SD Wheel type, with the ability to choose between options such as Attributes or Data Providers.

How it works

For example, consider an application called LightCRM, which enables users to schedule Meetings with a certain Contact of a Company. To schedule a new meeting, among other things, you have to indicate the Company name as well as that of the Contact with whom the meeting will be held. Suppose that you want, on the Web and Smart Devices, to display a Dynamic Combo Box with a Company’s Contacts which should be ordered by birth date.

To do so, you need to use Data Providers as data source for the controls to be used.
First, create a Structured Data Type object and name it “ContactsSDT”.


Next, create an object of DataProvider type and name it "GetContactsByBirthday". Drag the ContactsSDT object to the Source Panel of this DataProvider.


Change the Source of the "GetContactsByBirthday" object as shown below:

    order ContactBirthday
        ContactId  = ContactId
        ContactName = ContactName

Add the following rule to the Rules section:


How it works in Web

Change the Web Form of the Meeting Transaction and set the properties of the ContactID attribute as shown in the image below:


To test it, select Run on the Web Panel object called "Home", go to Meetings and create a new record by clicking on the Insert button.


How it works in Smart Devices

Just like on the web, to test it, open the "WorkWithDevicesMeeting" object and change the Edit layout on the "Section(General)" level and the properties of the ContactID attribute as shown in the image below:


Note: If "WorkWithDevicesMeeting" is configured with another Layout of Edit type, the same changes have to be made if you want to show the same features in all platforms.

Lastly, run the "LightCRM" Dashboard on a device and test it by adding a new Meeting record.



  • When using the DataProviders option, parameters can be used for DataProviders by setting the “Parameters” property that is displayed after selecting this option.
  • On selecting a DataProvider, the first numeric attribute and the first descriptor attribute of the SDT returned by the DataProvider are automatically selected.
  • For Smart Devices, the SD Wheel control can be used with the same settings as for the Dynamic Combo Box control.

See Also

Data Source From property
Dynamic Combo Box and Dynamic List Box Properties in Web Forms
HowTo: Use the Dynamic Combo Box Control for Native Mobile Applications
Wheel Control for Smart Devices