Hi João,
Ok, so to answer your need, I created a query that gets the details of rubrica geral based on a variable.

Now, on the action binded to the change of the dropdown, 1. update the value of the variable created above and refresh the query to get the new code and then assign to the variable you want to update on the screen:

The OML follows in attachment so you can look at it with more detail.
Kind regards,
João