It would be very nice if you could select a named query in a script. Just like you select a property. When you selected and fill in some information the script with all the parameters will write for you. The params will be copied from the named query and will use the same name for the variable in the script.