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)