KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Allow Computed Attribute Functions to be Accessed with Remote Datastore and REST
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: September 10, 2024

If a developer is unable to see a specific data model class function as an option within Open datastore, it may have neglected to be put as exposed. By default for security reasons, computed attribute functions are not exposed which means that they cannot receive remote requests through Open datastore or REST requests. The following is a simple example to show the syntax of what an exposed get function may look like.

Class extends Entity

exposed Function get namelastfirst($event : Object)->$name_t : Text
  $name_t:=This.LastName+", "+This.FirstName