You may need to be more specific.
You could look at the invoice starter solution. Selecting a new invoice (I think) brings up a picker window for customer. Check the script, it sets and uses global variables & set field script steps. I think this may help.
Also, Phil usually will post his link to scripted finds, I'm sure it has what you're looking for.
Here's Phil's link: Scripted Find Examples
Steve & Phil,
Thanks for the response. I didn't see anything in the invoice starter solution, but maybe I didn't look in the right place. Phil's link however did help and I have what I sought. My solution may not be "text book" but it works and I learned something new.