Scaffold Unisys Controller for ePortal Data Source Dialog

Note: This topic applies to the MVC Web Application project type only. Refer to Creating an MVC Web Application for more information.

Scaffolding is the technique used to generate the presentation code that the application can use at run time. The generated code represents a useful starting point for your application that you may want to further modify to refine the application.

Refer to the following topics for more information:

To scaffold one or more data sources in your presentation project, do the following:

  1. Click Build and select Build Solution to build the solution.

  2. In Solution Explorer, navigate to an MVC project. If you are using MVC areas, navigate to the correct area folder (for example Areas/<areaname>, where <areaname> is the name of your area).

    Note: An Area is a logical grouping of Controller, Models, and other related folders in a Web API application. Areas are an optional feature in ASP.Net MVC. For an example, refer to https://msdn.microsoft.com/en-us/library/ee671793(v=vs.100).aspx.

  3. Right-click the project or area folder and select Add, then select New Scaffolded Item.

    The Add Scaffold dialog opens.

  4. On the Add Scaffold dialog, select Unisys Controller for ePortal Data Source and click Add.

    The Scaffold Unisys Controller for ePortal Data Source Dialog opens.

  5. Complete the dialog as described below.

  6. After completing the dialog fields, click OK to start scaffolding.

    Note: If scaffolding would overwrite any existing files, you are given a chance to confirm before overwriting.

Dialog Fields

The dialog fields are described below:

Generate Web Application as a Single Page Application (AJAX)

Select this option if you want to use the ePortal Single Page Application architecture for your application. Refer to the topic Choosing a Traditional or Single Page Application.

Controller scaffolder

Select the scaffold template to use to generate the controller code from the dropdown list, or none to omit scaffolding the controller. Refer to Scaffold Templates and Creating Custom Scaffold Templates for more information.

Entire application requires HTTPS

Select this option if the entire application requires HTTPS (for example, a secure connection using SSL or TLS).

Require HTTPS on specified messages

Select this option if you wish to override the previous setting for individual client messages. In this case, you should configure the property RequireHTTPS on individual client or server messages. Refer to Message Editor Root Node Properties for more information.