Newbie question

I open a form that has a portal and two text input fields which will serve as parameters for a search to populate the portal. How do I make the datasource of the portal the result of a loadRecords by query. Thanks.

The records in a portal are always based on a relation. What you could do is create a relation based on two global variables and put those two variables on the form so the user can enter them.

However, I would prefer not to use a portal and use a tabpanel with a table view form on it instead. That will give you a lot more flexibility.