If I call my ZPT with a URL ie show_orders?country=France it works a treat and the ZSql uses the country variable no probs How do I return this URL from a script? return context.show_orders(country='France') doesn't work! Am I miles off? Simon