I'm creating an web app with two screens, the first screen is dynamically loaded from a database, the user must choose one of the options to go to the next screen, this screen will load more information from another database, and use the information which user chose.
The first screen is showing the data correctly, but the second one I don't know how to get the data that the user chose and how to search the other database for information equivalent to what the user chose.
First screen database
Database on the second screen, I need to search for the Contato with the proprietario that was chosen on the previous screen.
Hello Rodrigo, So, basically, to start, it is better to, on the first entity related to Imoveis, save the Proprietario Id, instead of the name of the Proprietario. The Id identifies the record and is always unique, the name can be or not. For more info, you can check the Reactive Guide Path, especially this topic:
To get the information that you need, you need to filter by the Id of the Proprietario. So, basically, you call the aggregate and put something like:
Proprietario.Id=Id of the Proprietario that corresponds to the Imovel you have selected. OutSystems, besides the videos of the Reactive Guide Path, has 3 how-to Guide Paths (Building a Patient Portal, Building an Order Management Application, and Building an Employee Directory Application), which explore the different and most common cases, like this one. I believe you should take a look and start by doing these how-tos, which will help you to understand this type of stuff. Best regards,
Ana