I have my page P2000_Patient.
On this page i have an item P2000_Criteria_id (type: number field).
I want to create a button with dynamic action and based on this value to search my table and if this Criteria_id matches the contents of my table open the page P2002_Symptoms, otherwise open the page P2001_Episodes.