← servoy magazine

[Tip] creating a new related record without a method

  • Tips

by Harjo Kompagnie
www.directict.nl

Did you know, that Servoy can create a records for you without any scripting? How? Via a relation?

Here is the step by step 'tutorial'...

1. You create a relation 'company_to_address', based on companyid = companyid
2. You place a related field on the company-form, let's say 'city-field'
3. Enter the name of the city in the field 'city-field' and tab-out of the field

Now, your (related) record is created without any method in de address-database.

It is as simple as that!

Cheers

Harjo