Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi dear community,
The macro I wrote to save my App.qvw contains this for saving it:
ActiveDocument.SaveAs FileName
ActiveDocument.GetApplication.Quit
It works from desktop in the following way - App is opened and when user presses the button for save this triggers the macro. It works correctly and the name of the App.qvw is changed to FileName.qvw (the string is correctly written in FileName), then FileName.qvw is saved and closed and the original App.qvw remains unchanged and in its place (closed).
Now when this macro is run from Access point (QV 11 SR2 - from AJAX there is no reaction, but from IEPlugin it starts) it works correctly up to the part where the macro code above should be executed. Then it gives the error (see attched pic) Macro parse failed.
I think I understand why the task is impossibly to run in this way - it renames the currently viewed application on the access point and this will make it impossible for the browser to sustain the web page if the macro code is executed. Still I need this functionality, when the user decides, from the browser, to create a local copy of the application by pressing a button (and the original application should remain intact).
Do you know if this is possible to be done this way?
Thank you.
I guess you won't be able to make it via macro....
Can't you allow Document Download from AccessPoint? Go to QMC > System > Setup > QVServer > Documents > Allow Document Download.
Then, you'll have to enable download for each document. Go to QMC > Documents > User Documents > [select the document] > Server > Avaliability > Download Document. You can define permissions for specific users.
Hope this helps
Fernando
Thank you for your reply.
It is good to have this functionality in Management Console, although it is not as convenient for the end user
(they will have to input manually the name of the file to be saved, while they wanted to have it automatically set through variables - that is why I wrote the macro code),
it is still a working solution for client's need.