During the creation of the new samples, we tried to focus on two scenarios: On the one hand we wanted to highlight Data Abstract features as simply as possible to provide an entry point into the technology and let you explore individual features. But on other hand we also wanted to show experienced users how everything can come together, in a more complex app.
The new Samples Suite consists of two parts – namely the Complex Samples set and the Simple Samples set.
The complex samples set represents sophisticated and close-to-real-life business solutions. It shows a wide variety of Data Abstract features and how they can work in concert and fit together in real-life conditions.
The core features presented in the complex sample suite are:
- User authentication and user roles
- Using Briefcases
- Using Business Rules Scripting for implementing business logic
- Tracking data modifications
- Synchronous and asynchronous server requests
- Working with tree-like data structures
and many others common and platform-specific features.
The given solution is an application for a fictitious small company that sells computer equipment. The company has two departments: the income and sales departments, all this under the leadership of a CEO. Depending on their role, users can manage goods requests, income orders, sales orders, create reports, etc.
Sales orders can be created by the sales manager directly in the store by using a Desktop application, or by the customer either using a mobile application or through the online Web store.
From a technical point of view, this complex solution consists of the Server and the Client parts.
Out of the box, the PCTrade database is provided in SQLite format and hosted in Relativity Server as
PCTrade schema in the automatically created
DASamples domain uses the standard logins (
Relativity for the developer login, and
Relativity for the data login). To simulate role-based access, the first name and email address of records of the
Users table can also be used as data login.
The Client side is presented by a set of applications which cover several platforms and can be divided into 3 big categories:
The desktop applications are presented by one application for each desktop platform (.NET WPF, macOS, Delphi). These applications offer the same functionality on each platform and allow the user to create/modify various orders, manage price-lists and get some reports. This also shows that our solutions are completely compatible.
The mobile applications are presented for the .NET (Windows Phone) and iOS platforms only at the moment; an Android version written in Java is in the works for a future update. With help of the mobile application, the sales manager can create orders on the site of the customer.
In contrast to the complex samples, the simple samples are designed to be as simple as possible, and focus on individual features.
The main idea is to show the most simple way to use Data Abstract, and is mostly targeted at users that are just getting started with the product or want to learn about a particular feature or technology.
As for the complex samples suite covered above, the server part of the simple samples is presented by the
DASamples domain hosted on Relativity Server. In order to clearly split databases for complex and simple samples and avoid any cross-modifications, simple samples works with its own
Simple schema inside the domain.
The client samples are presented in 3 groups, and where feasible, we try to have a sample in each of the three groups, for each feature:
The Console samples are the most simple. In many cases, they consist of a single source file, where a certain feature is shown, and they forgo having bells and whistles. The console samples have a linear flow and usually contain several steps which are performed one by one.
Desktop samples are a bit more sophisticated, since they have a layered structure with dedicated ServiceAccess, DataAccess and UI, and they contain a certain amount of "boiler-plate" code that is needed for GUI apps that are not specific to DA. The desktop samples also support Bonjour/Zeroconf (where available), which simplifies and automates the connection to Relativity Server.
The last group of samples is presented with the Mobile application. Mobile samples are, in essence, similar to the desktop samples, but targeted at various mobile platforms rather than desktops. The Mobile application also supports Bonjour/Zeroconf.