A method or function can have optional parameters. Sometimes the function is called with two parameters, and other times with three parameters. We’ve all dreamed of accessing the parameters without counting the parameters, checking if the parameter has been passed, or simply not having to check if the variable associated with the parameter has been initialized. This could make the code much simpler, and much more readable, without all the “If” or “Count parameters” lines.
Well, dream no more, and switch to 4D v19 R3! Managing method and function parameters has never been easier.
Many of you have already taken the leap and started using ORDA. To ease your coding experience, we are glad to announce that Blobs are now fully supported in ORDA, like any other type. After the first step in 4D v19 R2, with the support of the Blobs in objects, 4D v19 R3 brings the support of Blobs in ORDA.
We are pleased to announce that a new version of 4D is available with new features for 4D for iOS and 4D for Android.
WHAT’s in it?
For both 4D for iOS and 4D for Android:
- A new feature of 4D allows you to add computed attributes to an entity. These new attributes can also be used in the list and detail forms of your mobile application.
For 4D for iOS only:
- You can create action input controls of type choice list. The choice list can be a predefined list in a JSON or a dynamic list filled using a data source.
- In your actions and input controls, you can use computed attributes to simplify your code.
For 4D for Android only:
- The N to one relation is available, so you can display relative data in a list, and decide which field(s) from the related table to publish in your app
- You can test and debug the generated application on your device.
Several blog posts detailing the different features are listed in this post.
When generating .4dz files, 4D uses a standard zip format by default. If you are a software publisher, you’ll be happy to know that 4D v19 R2 added a feature that allows preventing users of your application from seeing the content of the 4DZ, and therefore from being able to modify it.
4D v19 R2 comes with a new version of SpreadJS and a Ribbon update that is compatible with it. Let’s discover the new features offered by this new version.
When printing, page break location is set by default, but you can adjust the print area by defining your own page breaks.
Starting with 4D v19 R2, to help your customers choose where they want to place their page breaks, 4D View Pro lets you add and remove page breaks manually, and also display the print preview lines.
Several predefined actions that help your app users manage their content were already available in the Action section: “Add,” “Edit,” “Delete,” and “Share”. 4D v19 R2 introduces a new one, and you’re going to like it! You can now create Sort actions to sort local app data.
In the latest versions of 4D, several improvements have been made to simplify the writing of code with classes:
- function and attribute suggestions according to type
- display of the prototype with a short description
With 4D v19 R2, you can open the online documentation of a function with a single action.
For some time, you’ve been able to create your own custom data formatters and convert strings, booleans, or integers to images in your generated app.
This new 4D v19 R2 feature will allow you to take full advantage of those formatters for iOS and Android, and make sure images look good in both light and dark appearances.
Let’s see how!
Sometimes, you need to display different tables of information in one document. For better visibility, it’s often necessary to display them in different sheets. In this case, you need to create, rename, hide or remove a sheet, or simply know which sheet the user is currently on.
With 4D v19 R2, you can manage the sheets in your 4D View Pro documents by programming.
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