Overview
In this document, 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, etc.
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 “Import Controls” button.
A popup is displayed to select the Project and subsequently the Page where you want to retrieve the controls and allocated in the current page.
Click “Continue” button and you can observe all the listed controls related to the selection that we made. Choose each control that you want to import or check “Select All” checkbox to import everything as a copy of the page. Then click “Import” button
New imported controls are displayed on the “Controls” section available.
How to mass update controls?
After imported the controls from another page, we need to make sure that the original connections that these controls contain are valid for the page that we are developing in this case. For example, if the controls are associated to any invalid dataset or stored procedure, we need to create a new dataset that we are going to retrieve the information and display in these controls.
Let’s going to create a new dataset and mass update the controls to learn a fast way to modify the settings.
Click “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 “Accept” to generate it.
Now that we have the new dataset created, turn to “Controls” section again.
Click “Massive Mod” button
It’s important to notice that Wayfast offers to modify multiple elements under the page.