Overview
A Button is a column input type that allows users to click to trigger an event or navigate to another page. You can use an existing column in a view (dataset), a count, or a NULL and assign an alias so a Button can be added to the container. Buttons can display text, an icon, or a counter to indicate the number of records on the linked page. Buttons also control the display of another container or page based on page binding criteria.
You can also configure buttons that are independent of dataset fields. Refer to the Add a Button Without a Dataset Column section for configuration instructions.
Note
To trigger an event via buttons, ensure that you create the button column and the event using the same name in the same container. Construct Preview automatically ties up events and buttons that have the same name.
Create a Button
On the Construct Preview’s home page, edit the required WebApp. The WebApp configuration page is displayed.
Access the Grid or Form node of your required construct page.
Select the Fields node and click Add Fields. The Add or Remove Fields dialog box is displayed.
Select the required field from the Dataset and set the column’s input type to Button.
Click Save.
In the Fields node, select the Button column input type. The Details Pane is updated with the button fields.
Enter the button column properties as required using the following table:
Add Page Bindings
If required, add the required page bindings to define how data is passed between pages when navigating through links, using the following fields:
Note
Either Source Data Record Field Value or Fixed Value must be specified.
Page bindings pass data values from the source page to the target page, allowing for filtered views or pre-populated forms when navigating between pages. Refer to Link to a Page and Add Page Bindings for more information.
Additional Configurations
If required, complete the following additional configuration as needed:
Note
These fields are applicable only to columns added to a grid container.
Configure Button as an Icon
The icon section in the Button Details pane allows you to configure icon buttons to be displayed instead of text buttons. After completing the necessary fields listed above, proceed with the following fields:
Field Name
Description
Supported Values/Notes
Icon
Use the Preview and Select Icon button to open the Select Icon dialog box and add an icon to the button. You can either search for an icon or scroll through the list to find the one you want to preview, and then click Save to apply your selection.
To reset the Icon value, click Clear in the Select Icon dialog box.
maxLength: 100Icon Only
Toggle to control whether the button displays only the icon or both the icon and the display/default value.
default: false
Click Save & Preview WebApp
to preview WebApp changes.Click Save WebApp
.
Add a Button Without a Dataset Column
To add a button to a grid or form container for events that do not require a dataset column:
On the Construct Preview’s home page, edit the required WebApp. The WebApp configuration page is displayed.
Access the Grid’s or Form’s node of your required Construct page.
Select the Fields node and click Add Button. The Create Button dialog box is displayed.
Enter a name for the button and click Save.
In the Fields node, select the newly added button input column. The Details Pane is updated with the button fields.
Enter the button column properties as required using the table above in the Create a Button section.
Click Save & Preview WebApp
to preview WebApp changes.Click Save WebApp
.