Document related definitions

  • Entity - represents API response object. Main responsibility of Goerp is to provide API integrations and tools to display content from those API on UI applications (.gohtml pages). Entities are not usually visible in the template editor, but it is critical to understand the difference between model and entity.
  • Model - represents data definition model. They are view models. By specifying the view model inside the template (in input tag by setting name parameter or in data sets by using .Data notation), we are providing commands to the goerp and based on those commands data would be fetched from dependent API’s. Usually models are generated from the entities and vice versa. However, if entities can be passed to the view “as is” then entities are used as view models (for example most lists for the dropdowns).