Creating auto-generated custom controls
Expand the functionality of your application by adding no-code, auto-generated controls to your user interface. Auto-generated controls are custom controls that use standard controls as templates, and you can integrate them with your application with minimal effort.
For example, many languages use a comma instead of a period as a decimal point. You can adapt the existing Currency control to support this format and save it as a new, custom control. Alternatively, you can set up a control that you want to use repeatedly in your interface, and save time that you spend on manually configuring the control for every occurrence.
In the navigation pane of Dev Studio, click Records.
Expand the User Interface category, and then click Control.
Open the record on which you want to base your custom control.
For example: To create a Currency control that supports international formats, select pxCurrency.
On the Control tab, review the default settings.
For example: The Currency tab contains four sections: Basics, Options, Format, and Behaviors.
The fields in each section depend on the characteristics of each control, and their configuration might be different for other components. The system populates the fields with working default settings, so that you only need to change the values that you want to customize for the new control.
Customize the control settings:
For more information about adding actions to controls, see Adding action sets to a control.
- To change general settings, such as the property that is attached to the control, modify the fields in the Basics section.
- To change settings specific to the control type, such as tooltips, formats, or associated images, modify the fields in the Options section.
- To change the values that the control displays, such as the text or date, modify the fields in the Format section.
- To change the actions that the control triggers, in the Behaviors section, click Add, and then complete the Behavior form.
For example: In the Format section, in the Type list, select Text. Your control now supports both decimal points and commas.
On the HTML tab, add the control to an authoring menu:
Select Show in authoring menus, and then select the menu in which you want to display the new control.
For example: In the Category list, select Data Capture.
To define what image the authoring menu displays next to the control, click the Show Image View icon, and then select the image from the Image Catalog.
Click Save as.
On the New tab, define the label, context, and ruleset for the new control, and then click Create and open.
Result: Your new custom control appears in the authoring menu. Previous topic Generating complex PDFs from your UI Next topic Development of web self-service interface