/
Importing controls

Importing controls

Overview

In this lesson, we will learn how to import controls from different project to the page that we are developing. Also this option allow us to mass update the elements imported to make the correct association between the controls and dataset, stored procedure and other objects.

How to import controls from one Project to another?

Turn to “Controls” section. In this case, we don’t need need to select any control from the dropdown list. Click on “Import Controls” button.

A popup is displayed to select the Project and subsequently the Page where you want to retrieve the controls allocated in the current page.

Click on “Continue” button and we can observe all the listed controls related to the selection that we made. Choose each control that we want to import or check “Select All” checkbox to import everything as a copy of the page. Then click on “Import” button

New imported controls are displayed on the “Controls” section.

How to mass update controls?

After the controls were imported from another page, we need to make sure that the original connections from these controls are valid for the page that we are currently developing, otherwise the data won’t be displayed. For example, if the controls are associated to any invalid dataset or stored procedure, we need to create a new dataset that will retrieve the information to display in these imported controls.

Let’s create a new dataset and mass update the controls to understand how fast we can modify the settings and secure the new connections for imported controls.

Click on “New Dataset” button

A popup is displayed to complete the required fields on “General” Tab. Identify the new dataset with “Name” and “Execution Type” equals to “Pre” in order to make the page retrieve the data at the time is being loaded.

Turn to “Data Binding”

Connect to the new Stored Procedure for this Dataset and click on “Accept” to generate it.

Now that we have the new dataset created, turn to “Controls” section again.

Click on “Massive Mod” button

It’s important to notice that we can modify multiple elements under this page:

  • PlaceHolder

  • Dataset

  • Conditional Visible, Editable and Requested

  • Style

  • Align

  • Order

  • Autopostback

  • Column Total and Format

  • Reload Values by Postback

  • Sorteable

  • Delete

In this example, we want to select “Dataset” option and let’s choose the newly created to modify the imported controls. Once the controls are checked, click on “Modify” button

Notice that the “Dataset” column is updated on the popup and after closing it, check the “Controls” section to verify that the new dataset is displayed as reference.

Recap

Under this lesson, we reviewed two different features to manage the page’s controls in case we want to quickly import created elements from a different page or even different project. Also Wayfast give us the possibility to mass update these controls if any adjustment is needed.

Related content

Grid Search
Grid Search
More like this
Code Snippets validations
Code Snippets validations
Read with this
Include
Include
More like this
How to import a database in Wayfast?
How to import a database in Wayfast?
Read with this
Dynamic Grid
Dynamic Grid
More like this
Workflow
Workflow
Read with this