Tips

Find a specific attribute value in a single line of code!

Automatically translated from English

Remember the days when you had to use nested loops and conditional statements to retrieve an object’s attribute? So you ended up with a long and complicated piece of code? Well, those days are over! Thanks to object notation combined with collections and their methods, you’re now able to write code faster, and in a more readable way!

Finding a specific attribute’s value has never been easier. Let’s take a look at a real life scenario and discover how!

Tips

Play videos with 4D

Automatically translated from English

We’re in the visual and interactive content era. It’s becoming increasingly more and more prominent. Take a look at digital community statistics and you’ll discover that YouTube is the second most popular social network.

At some point, most web developers want to include videos in their sites and coincidentally, databases frequently contain links to videos (either hosted locally or on the web). This post shows you two ways to include videos in your 4D applications.

Tips

How to use Twitter’s search API with 4D

Automatically translated from English

Given that there are around 6,000 tweets every second (i.e. over 350,000 tweets per minute, 500 million tweets per day equaling approximately 200 billion tweets per year), it would be great if we could search for those related to a specific subject rather than an avalanche of tweets we’re not interested in. Good news! Twitter provides a REST Search API that is great for searching tweets.

Tips

Ready-to-use toolbar example for 4D Write Pro

Automatically translated from English

You’d like to use 4D Write Pro, but don’t have the time to create a toolbar from scratch? We’ve created a sample application with a ready-to-use toolbar, including two icon families, so you can choose the toolbar style you prefer (flat design or classic). And on top of that, we also added a complete menu bar! Check it out and reuse it for your own applications!

Tips

Rearrange the object entry order in a single click

Automatically translated from English

When working on a form, it often happens, for a reason or another, that you insert new objects within a group of existing objects in your form. In that scenario, the resulting object entry order often becomes illogical, and would let the user enter information in an awkward manner. This is where you need to restore the entry order to a logic one, and it can be a tedious task…

Tips

Create a 4D Write Pro brochure in 5 minutes!

Automatically translated from English

Check out our video showing how easy it is to create an elegant brochure with 4D Write Pro, including the painter’s bio (his life, references and so on), as well as a collection of his paintings accompanied by descriptions. Finally, you’ll learn how to easily add a different front and back cover to complete the brochure.

Of course, creating other kinds of brochures, i.e. for real estate agencies, pharmaceutical laboratories, travel agencies, etc… is just as simple. So take a look and start coding now!

Tips Many thumbs up for the JSON Validator tool

A new tool: JSON Validator

Automatically translated from English

4D v16 R4 introduces a new command: JSON Validate. This command allows you to verify that a JSON document is “valid” according to your JSON schema. This is really useful for exchanging information between servers or between a server and its client. Thanks to JSON schema standards, you can define a “protocol” for communication with your server or an external server. More details can be found in this blog post.