DEV Community

Peter + AI
Peter + AI

Posted on

๐Ÿš€ Understanding Uniface 10.4 Components

This blog post was created with the help of AI ๐Ÿค– to make the Uniface 10.4 documentation easier to understand. We will look at the different component types in Uniface, and see how they are used in applications.

๐Ÿ’ก What is a Component in Uniface?

In Uniface, components are the building blocks of an application. A component can be a user interface (UI) element like a form, or a service that executes business rules in the background. Every component has a unique name. This means you cannot have a โ€œFormโ€ and a โ€œDynamic Server Pageโ€ with the same name.

๐ŸŒ Components for Web and Mobile

  • Dynamic Server Pages (DSP): Interactive pages used for web and mobile apps. They allow dynamic updates of data without reloading the whole page. Think of them like modern โ€œliveโ€ web pages.
  • Static Server Pages (SSP): Web pages that refresh the entire page when showing new data. This is more โ€œclassicโ€ web behavior.

Example: A DSP might be used for a shopping cart where the total updates instantly when adding items ๐Ÿ›’, while an SSP might reload the entire page after submitting a form.

๐Ÿ–ฅ๏ธ Components for Desktop Applications

  • Forms: Interactive screens that let the user view and edit data. Example: An employee management form where you can add or update staff information ๐Ÿ‘ฉโ€๐Ÿ’ป.
  • Reports: Layouts for presenting information in a printable format. Example: A monthly sales report that goes directly to PDF or printer ๐Ÿ“„.

โš™๏ธ Components for Business Logic

  • Services: Components without a user interface. They contain reusable operations. Example: A service that calculates tax for an invoice.
  • Session Services: These manage complex business behavior and transactions. Example: Handling an order process where different steps must be validated together ๐Ÿ”„.
  • Entity Services: Focus on a single data entity and manage simpler business rules. Example: Validating that a customerโ€™s phone number has the right format before saving.

โœจ Takeaway

Uniface components help organize applications into clear layers: user interfaces (web, mobile, desktop) and business logic (services). By separating these concerns, applications become easier to build, maintain, and scale.

๐Ÿš€ Whether you want to create a dynamic web app, generate reports, or build solid business logic services, Uniface 10.4 gives you the right set of components.

Keywords: Uniface components, Uniface 10.4, legacy systems, business logic

Top comments (0)