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

Parents
  • 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?

  • I'll reply here because it's a case we're dealing with now.

    The question is how to add extra columns to a dst table representation? Where:

    • Some columns are FK to another table. In our case, we want to show accounts (gapuser) and other data (primaryemail, is inactive, etc..) with their corresponding license (gapuseringapasku) in the same dst.
    • Columns which are not part of the default EntitySchema but I am able to read them via api using the "WithProperties" flag. These are , for instance, custom columns added to the table.
  • Regarding the "columns which are not part of the default entitySchema" part, I've solved it.

Reply Children
No Data