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)