Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example 10 - unrealistic extension

Real world examples

Copy a custom field from the company to the task whenever a task is saved

This requires that the custom fields are marked as "show in app". We assume that the company custom field has id=321 and the task custom field has id=123.

cus = this.customer
if cus.indb()
  this.sv("custom123", cus.custom321)
  this.save()

Example 11 - copy custom field

Known problems

1)

If an array holds a dict as an element, then accessing an element in the dict using eg.

...