Date Picker Widget

General Setting

User can change following things in Date Picker widget:

  • Name for widget which will be used data reference. For Example, if widget name is 'Date Picker', then data of widget is referenced as Data Picker.date

  • Show title - User can show/hide widget title

  • Title Color

  • Background Color

Source

Date Picker widget does not support Source settings.

Event Handling

Date Picker widget does not support Event handling.

Examples:

TestCase 1:

If user want to fetch data using Action which requires startTime as parameter and show it to Table Widget. So following are the steps to perform this operation and are as follows.

  1. Add Table Widget to dashboard and change its color, background color, file name as per requirement.

  2. Now go to Source tab of Table Widget and select mode as Action, and select a required ActionID from dropdown.

  3. Now, in Action Parameter, select parameter as Date Picker.date and set Key as startTime, and enable Reload On Change operation.

  4. It will send JSON object with 'startTime:<selected_date>' as key-value pair to given ActionID as shown in below block. And received response of action will get shown in table.

// JSON Object 
// here, Date Format - dd/MM/yyyy is fixed

{
    "startTime":<selected_date>  
}

Last updated