KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Convert entity to object to display entity data on a form
PRODUCT: 4D | VERSION: 18 | PLATFORM: Mac & Win
Published On: March 29, 2021

When working with forms and entities, you may notice that directly displaying an entity will result in general entity data shown as "[object Entity]"

To quickly show the entity's attributes and values, use the built-in entity.toObject() method to convert to an object an show its data quickly and easily.

Form variables:



Displayed values: