Hi Guys,
sure this is a stupid question...
Is is possible by way of a URL to call aware directly from a static html page, pass it a query name and parameter for the query. Effectively login as a "Guest" and display the query result?
I can login as a guest and ask for the parameter then display the result, but my client wants to be able to maintain the page the users enter the parameter on external from aware...
I searched the forum and the pdfs but can't quite get it, found appendix D in the user guide "Links to aware operations" but this looks like it is only relevant for a logged in user...
TIA
Calling Aware direct with a parameter for query
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Calling Aware direct with a parameter for query
Please look at the firstCommand URL parameter - it may have what you want. Search the User Guide for "firstCommand"
Aware IM Support Team
Re: Calling Aware direct with a parameter for query
Thanks Support, I had found that but couldn't get it to work initially, now I have it working though - I was initialising a non persistent BO and it doesn't seem to like that... but with persist-ency it does work, I have setup a test using firstCommand and startProcessWithInit, it is doing what I need it to.
I tried to get runQueryWithParams to work but to no avail, how are the params for this one expected to be formatted? or will this not work as a URL...?
Callum
I tried to get runQueryWithParams to work but to no avail, how are the params for this one expected to be formatted? or will this not work as a URL...?
Callum
Re: Calling Aware direct with a parameter for query
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:
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
So the second parameter to runQueryWithParams is a hashtable! How do you put a hashtable in a URL? Is it even possible?
My URL looked like:
Code: Select all
http://localhost:8080/AwareIM/logonGuest.aw?domain=TEST&firstCommand=runQueryWithParams,TheQuery,Parameter=abc,main
The following is from aware_full.js
Code: Select all
// promptValues is a hashtable of name/value pairs where name is the prompt name
runQueryWithParams: function (queryName, promptValues, renderOption)
Bob
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
Re: Calling Aware direct with a parameter for query
You cannot use runQueryWithParams in "firstCommand", but you can start a process that would run the query.
Aware IM Support Team
Re: Calling Aware direct with a parameter for query
Thanks Bob, I had gone through the same pain... Good to have support confirm the correct way to go about it