|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
Hi,
I want to have a button that will let me modify a query without having to specify the Query screen--I want it to just use the Query screen that was last specified. The Inmagic help says "selectQueryScreenEx (queryScreen) specifies the query screen to select for the Query window. If the argument is an empty string or null, the query screen previously selected is unchanged. " So I thought I could put: function modifySearch_onClick() {Command.selectQueryScreenEx(""); } and under Names I have a button named modifySearch. I hoped it would take me back to whatever the Query screen was, with the query displayed, but it does nothing. It only works if I specify a Query screen. But if I do that, then I can't use the same report for two different users (who need different query screens). Thanks for any help. Zoe |
|||
|
How about just a script that closes the Report Window, which would return the user to the Query window, which is presumably behind the Report Window (because you have the Report Window maximized)?
function modifySearch_onClick() { Command.closeWindow(); } |
||||
|
Hi ---
You could use the session store object to store the query screen name whenever a query is executed, then pick it up and use it for selectQueryScreenEx. query screen: function onQueryExecuted() { Application.sessionStore.value("lastQueryScreen") = Window.formName; } report page: function modifySearch_onClick() { var screenName = Application.sessionStore.value("lastQueryScreen"); Command.selectQueryScreenEx(screenName); } Peter Tyrrell, MLIS Senior Consultant Andornot Consulting Inc. http://www.andornot.com/about/developerblog |
||||
|
Yes, thank you, that's just what I need.
|
||||
|
(I used CDale's solution, just to clarify. I thought that was the one I was responding to, but I see it wasn't.)
|
||||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

