Guys, I’m sorry if this has been approached before. I have looked into some posts but none of them worked for me… That’s why I’m creating another one.
I have these 2 dropdowns in my app, for drug prescription. The number 3 (Id da Finalidade da Prescrição Medicamentosa) has values regarding kind of the use of the drug, and the item 4, has the list of drugs.
I’d like to show only the options in number 4 that have the same “use of the drug” as the one I selected in the number 3.
I have tried using SELECT in the “valid if” section of the number 4 (Id do Medicamento), but since it is a REF to my drug list, it says it cannot compare.
Below is the table of the prescription:
this table is like a “details” table from the main prescription table. That’s why the “Id da Prescrição Medicamentosa” is a ref.
The “Id da Finalidade da Prescrição Medicamentosa” references a table with ID and name of the “drug use category”,
And “Id do Medicamento” references the table with the drug list.
In the table with the drug list, I have an Id and the corresponding Id to “Id da Finalidade da Prescrição Medicamentosa”, so they have this in common (which is what I’d like to filter on the dependent dropdown).
I am really sorry if this sounds confusing, guys!
Thanks for the help!




