And where is that filtered portal? on the same layout or in a different layout?
do you want to show it in a different window?
Hidden inside a tab control?
I routinely set up find scripts that check the number of records found that then switch layouts or pop up a window that lists the matching rcords in a list or table view. Clicking a row in this list then pops up the record in a form view. If only one record is found, the script takes you directly to the form view:
The basic script outline:
Enter FInd Mode  ---> Clear the pause check box
#Use one or more set field steps while still in find mode to specify the find criteria
Set Error Capture [on] ---> keeps error dialog from interrupting the script if no records are found.
Perform FInd  --note there is no criteria specified in this script.
Set Variable [$Found ; Value: Get ( FoundCount ) ]
IF [ $Found = 1 // go straight to detail view ]
Go to Layout [ "Detail View" ( Sometable ) ]
Else If [ $Found > 1 // go to form, window etc for listing all found records]
Go to Layout ["List View" (Sometable)]
Show Custom Dialog ["ERROR: No records were found " }
#Do whatever should be done if no records were found
The step shown in blue is where you may need to use different steps if you want to pop up the list in a floating window or use Go To Object to reveal something hidden inside a tab control.
For examples of scripts that find records using set field steps, see this thread: Scripted Find Examples
This worked great!