4D for iOS: Improved UX (& more) with deep Linking
4D v18 R5 includes a new great feature: Deep linking. That’s cool, but what the heck is it?
Here’s an example:
Have you ever gotten an email from Netflix asking if you want to continue watching a movie that you stopped halfway through? You click the link, but it doesn’t take you to the Netflix home page or launch the application on your phone. Instead, clicking the link opens the player, and resumes the movie exactly where you stopped.
That’s deep linking! It allows users to open a specific view in their app just by clicking on a URL (significantly improving the user experience and increasing user retention and engagement).
Coder-friendly syntax for class functions and methods
Using $1, $2, and $n variables in your code not only makes the code less readable, it can also increase confusion since the human brain can find it difficult to remember what these variables correspond to. The solution is to create a variable with an understandable name and assign it the value of $1, $2, or $n.
4D v18 R5 has good news, you can now name your parameters when declaring:
- a project method,
- a trigger
- a database method
- a form method
- a constructor of a class
- a function of a class.
Let’s see how!
ORDA – Improve your API with function scope
4D v18 R4 and ORDA made it possible for you to create high-level class functions above the data model. This allows you to write business-oriented code to hide complexity, reduce errors, and speed up the development process.
With 4D v18 R5, we’re bringing even more features to help you optimize and organize your code. For example, you might need to run a function locally on the client to improve performance when working in client/server mode. It’s now possible! Or if you expose your database as a REST server, you might want some functions to be available on the server-side but hidden for your REST clients. This is also possible!
Preview your CSS directly in the form editor!
In 4D v18 R5, you can preview the final CSS rendering in the form editor WITHOUT running your dialog. Yes, you heard that right. Standardizing and reviving your forms has never been easier!
If you haven’t yet heard about CSS in 4D, now’s the perfect time to learn more! Introduced in 4D v18 for project applications, this concept includes enhanced and quick style sheets based on CSS. I recommend taking a look at this blog post.
Select 4D Write Pro Interface pages to display
The two 4D Write Pro Interface widgets continue to be enhanced with more abilities and functionalities in each release. For some of your applications, not all the widget pages are useful. For example, you use 4D Write Pro to format your emails, so you only want to display a few pages to simplify the interface and make the user’s work easier.
4D v18 R5 lets you display only the desired pages. Keep reading to learn how!
Tips: ORDA Data Model Classes
By now you’re aware of the availability of ORDA classes. In this blog post, you’ll learn a few handy tips to get the most out of them!
4D Write Pro interface widget: Import & Export
You asked for a way to import and export different document formats via the 4D Write Pro widget and once again, 4D listened!
In addition to the 4D commands that already allow you to import and export documents in different formats, such as export .docx format with 4D v17 R4 and PDF format with 4D v18 R4. Now, 4D Write Pro can import and export different document formats via the widget from the toolbar and sidebar.
Pro list box features are now FREE!
Interested in building list boxes that can automatically adapt the height of each row to its content so that the full text or picture can be displayed? What about using object arrays in columns (this allows entering and displaying various types of values in the rows of a single list box’s column).
These are very cool features, right? Previously, you needed to have a valid 4D View Pro license in order to use them. Well, not anymore!
4D v18 R4 lets you access these features for FREE! No additional licensing is required, they’re now included in the standard product.
List boxes: Setup movable rows (or not!) by code
List boxes are powerful form objects. They’re easily created and manipulated, and most importantly, they can handle any kind of data. Additionally, they can be fully set up by programming … everything from inserting or deleting rows and columns, to defining or modifying tons of properties using the 4D language. With 4D v18 R4, another important property has been added to the list. Can you guess which one? Hint: read the title again.
4D View Pro: Enable, Disable, or Force calculations
4D View Pro automatically recalculates the formulas in your worksheet when you change data they depend on (e.g., entries, formulas, names, etc.).
But what if you want to make your UI more interactive and trigger the calculation of formulas whenever you want? 4D v18 R4 makes it possible thanks to three new commands: VP SUSPEND COMPUTING, VP RESUME COMPUTING, and VP RECOMPUTE FORMULAS. These commands let you suspend and resume the calculation of all formulas in your document, or force their recalculation.
Contact us
Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!
* Your privacy is very important to us. Please click here to view our Policy