ORDA – Say Goodbye to Empty Spaces in Your Entity Selections
We’ve all been there. You build a beautiful interface that displays an entity selection for users. They can drop entities to refine their choices, but then… those empty spaces appear where the dropped entities used to be.
Rebuilding the entity selection after drops? No more! 4D 20 R6 introduces a handy feature that eliminates this pain point with just one line of code.
Keep reading to discover how this feature can keep your interface clean and your users happy.
4D keeps your selections of records consistent regarding deletion of records
Deletion of data should be handled with care. To prevent issues, we can use transactions or rely on backups and logs.
Some improvements have been made in 4D 20 R4 to make your selections of records stable and consistent regarding potential deletion of records in this selection.
Keep reading to learn how your 4D code will be so safe out of the box.
Meet the Improved Distinct Function
Retrieving the list of unique data elements is always helpful when manipulating data. In some cases, retrieving the number of occurrences of each value is essential. The distinct function of the Collection and Entity selection classes allows retrieving a list of unique values. With 4D v20, you can also retrieve the number of occurrences of each distinct value.
And that’s not all!
An object in the database can be used to save custom data entered by the user. So on the code side, you need to know all the possible paths to the object. The distinctPaths function has been added to the Entity selection class.
Here is everything you need to know.
Automatic Row Heights in Collection Based List Boxes
List boxes are the most versatile and customizable form objects. Automatic row heights were already possible for array-based list boxes. With the arrival of 4D v19 R8, this possibility is now extended to list boxes based on collections… and entity selections!
New Tips & Tricks for your 4D Applications
by Add Komoncharoensiri, Director of Technical Services at 4D Inc
As you know, 4D Knowledge Base is a library of information about the 4D technology where weekly tech tips and monthly technotes are actively published. If you missed the last tips on the KB, that’s fine; here is a compilation from the past few weeks.
This blog post covers 12 tips:
ORDA and 4D Write Pro : The power couple!
4D Write Pro documents often contain formulas returning data or calculations depending on the database. Thanks to the use of contexts, associating that data with documents is now child’s play!
In this blog post, we’ll see how the combination of 4D Write Pro documents with data retrieved using ORDA makes the code clear and easy to maintain.
Sharing leads to performance
Following this blog post about the new concept of shareable entity selections and the subsequent discussions on the forum, we’ll now take the time to explain how ORDA fits into the future.
ORDA – Better list box row selecting
ORDA: Breaking news for entity selection methods
When it comes to ORDA, 4D v18 R3 is full of good news! New member methods are at your disposal to further enhance your coding experience.
For starters, extracting data from an entity selection has been greatly enriched allowing you to build a fully customized collection with your entity selection data.
In addition, we’re providing you a way to indicate to an entity selection that its data needs to be refreshed from the server immediately, invalidating cached data.
Interested in some details? Keep reading, everything you need to know is below.
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