Can you copy 'compound' fields such as Address in formula language

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dave B
    Junior Member
    • Jul 2021
    • 8

    Can you copy 'compound' fields such as Address in formula language

    I want to be able to assign an address field on one entity to another. Something like:

    entity2.homeAddress = entity1.homeAddress where in both cases the field homeAddress is defined as of type address

    Doing this does not cause an error but does not seem to work - entity1.homeAddress is always set to null

    Do I really have to copy each subfield ( street, city, state etc.) separately?

    Thank you

  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    Yes you have to at the moment, there is no {address} only method.
    You can make shortcut using variable; for example:

    $address = concatenate(street, city)

    description = $address
    homeaddress = $address

    Instead of having to do this each time:
    description = concatenate(street, city)
    homeaddress = concatenate(street, city)

    Comment


    • Dave B
      Dave B commented
      Editing a comment
      Thank you for the prompt response
Working...