V10 ResourcesGuides
ResourcesGuides
Guides
Back | List of Articles

How to create user forms with Visual Studio?

Last changed in 02/12/2020

This document describes the necessary steps to create your first user forms project for the PRIMAVERA ERP.

User Forms (FDU) are forms developed within the scope of PRIMAVERA Extensibility. Unlike User Tabs, these are not associated with any system tables, so you can use them to implement other features, such as:

  • Editing user tables;
  • Editing tables stored in databases external to the PRIMAVERA system;
  • Implementing specific business rules without connection to the database.

This concept allows the PRIMAVERA solution to be extended in a more integrated way, since each FDU can be associated with a user function and, therefore, forms can be displayed to the user, for example, inside the application menus.

Requirements

  • PRIMAVERA ERP
  • Visual Studio & .NET Framework 4.7

Step 1 - Create the project

1 - After opening Visual Studio, select File > New > Project;

2 - From the tree on the left of the displayed window select the development language (C# or VB);

3 - Select the Class Library (.NET Framework) project type;

4 - Assign a name to the 'Primavera.CustomForms' project and press OK;

5 - Add a 'FDU_DrillDown' Windows Form to the project.

At the end of this step your project should look similar to this:

 width=

STEP 2 - Implement the User Form

1 - After creating the project you need to add the following references to the extensibility platform:

  • Primavera.Extensibility.CustomForm.
  • StdPlatBS100: Access to the public platform API.

2 - After the class named 'FDU_DrillDown.cs' add a CustomForm. This step indicates that our class will inherit all methods, properties and attributes from CustomForm.

At the end of this step your project should look similar to this:

 width=

3 - Compile your solution in BUILD > Build Solution.

4 - Register the assembly as described in "How to Register Extensibility Projects?"

5 - Register the user function as described in "How to Register a User Form?"

Bookmark or share this article
Esta página foi útil?
Obrigado pelo seu voto.

login para deixar a sua opinião.

Obrigado pelo seu feedback. Iremos analisá-lo para continuarmos a melhorar!
Artigos Relacionados
Começar a Usar Como criar um projeto de integração com Visual Studio? Como criar um projeto de extensibilidade de interface (PEX) com Visual Studio? Como criar um projeto de extensibilidade de API (Motor) com Visual Studio? Como criar separadores do utilizador com Visual Studio?
Últimos Artigos Vistos
How to use the icons from PRIMAVERA ERP modules?