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)