Fetching data from database in web portal using new Angular based web portal

Hi, we are having trouble understanding how data is retrieved from the database in frontend. We are struggling to find examples of actual api calling methods, instead what we find are variables like data, datasource, entitySchema etc. without any pointers to what kind of data/variables they hold.
As an example we want to include a dropdown with employment organisation, but we can’t seem to figure out how to fetch this data. Even though this data is already fetched in the frontend in the form of item.
Could you provide us with a code example of how to fetch/extract this or any other data? We are customising the existing modules to fit our needs.

Example of the issue:

 

We are using version 9.1 and the new Angular based web portal .

Regards

Anders Westby

  • Hi Anders,

    The component shown in the screenshot is a generic picker for any foreign-key relation in the data model. It gets data model information but it does not know about its context, so it does not know about what kinds of data it is showing.

    it sounds like you are trying to show additional data on some specific form. In that case, this component would probably not be the correct location to modify.

    Can you elaborate on your use case a bit further?