Announcement

Collapse
No announcement yet.

Get model with parent model attribute

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get model with parent model attribute

    Hello, I have a question, please could you guide me?

    I am creating a custom js file in client/src/handlers/select-related , I would like to know if there is a way to access the registry attributes that correspond to the external id attribute of the main model to which I have access.

    First of all thanks for any help

  • #2
    Hi, Either create a foreign field and access it from the current model or just make an API request to the backend to fetch it. As select-related is async.

    Comment


    • jgarcia
      jgarcia commented
      Editing a comment
      Thank you very much for the quick response, I used the first option you gave me but I will also try to do it through an API request.
Working...
X