Skip to main content

Table of Contents

Adding an Anypicker control


Only available versions of this content are shown in the dropdown

Enhance navigation in your application by grouping drop-down list items into expandable categories in the Anypicker control. For example, if your business operates in several cities, use this control to group business locations by region and to help your users quickly select the right option in a drop-down list.

You can source an Anypicker control from a data page, a clipboard page, or a report definition.

You can use the Anypicker control to set up the first level of categorization in a drop-down list. To create embedded categories, define them in the data structure, for example, as embedded pages.
  1. Open the harness or section that you want to modify.

  2. On the Design tab, in the Pickers list, drag Anypicker onto the work area.

  3. In the cell that contains the Anypicker control, click the View properties icon.

  4. On the General tab, in the List source section, provide the details of your list source.

    To source your list from a data page, in the Type list, select Data page, and then provide the name of the data page in the Data page field.

    For more information, see Automating source synchronization in controls.

  5. In the Search results configuration section, in the Data source property field, specify the property from which you want to source the list.

  6. Select the Use For Search check box.

  7. Select the Categorize check box.

  8. In the Category Property field, enter the property that you want to use to categorize search results.

    Your source is a list of locations that includes the City and State database columns. To group the locations by state, in the Category Property field, enter .State.
  9. Click Submit.

  • Selecting the property reference for a control

    Select a property for the control to determine the data type to include in the list that an application user sees. At run time, the user selects one or more values from the list.

  • Automating source synchronization in controls

    Improve the maintainability of your application by defining sources for the values that populate user interface controls. When you tie a control to a list source, the values in the control change automatically to reflect the state of the source, which saves development time.

  • Specifying presentation options for a control

    After you create a control, you configure how the control is displayed. You can specify whether the control is editable at run time, the width of the control, the label format for the control, and one or more CSS helper classes to adjust the control's appearance and placement.

Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us