I have used the firstCommand along with startProcessWithInit in an URL and thought that changing startProcessWithInit to runQueryWithParams and changing the other parameters as necessary would be, as Bruce would say, easy peasy. But I too, could not get it to work.
My URL looked like:
http://localhost:8080/AwareIM/logonGuest.aw?domain=TEST&firstCommand=runQueryWithParams,TheQuery,Parameter=abc,main
That URL logged me in as a guest and ran TheQuery, but the Parameter was ignored and all of the data in the table was displayed. I tried other variations for the URL, but no joy.
The following is from aware_full.js
// promptValues is a hashtable of name/value pairs where name is the prompt name
runQueryWithParams: function (queryName, promptValues, renderOption)
So the second parameter to runQueryWithParams is a hashtable! How do you put a hashtable in a URL? Is it even possible?