Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
emteam162
Creator
Creator

Save Document

Hi ,

I use this macro

Sub SaveDoc
     ActiveDocument.Save
End Sub

in my Desktop is working but when i put my application on server qlikview doesn't work

i use Ajax

I want to save the document automatically

Many thanks for your help

Best Regards,

Emteam

9 Replies
Gysbert_Wassenaar

1. Most maco's don't work in the ajax client

2. A document opened on the server is always read-only. So what you want is not possible. You need to open the .qvw file directly with Qliview Desktop to be able to change it and save the changes.


talk is cheap, supply exceeds demand
er_mohit
Master II
Master II

Make sure You have done ctrl+shift+m and tick on radio button of  Give system access to module script

hope it helps

emteam162
Creator
Creator
Author

Hi Gysbert Wassenaar,

I want update the variable in my application

i have more then 20 variables and i want when i change the value of variable i want the variable take the last value.

Many thanks

Emteam

emteam162
Creator
Creator
Author

Hi er.mohit,

I give system access

but doesn't work

Many thanks

Emteam

emteam162
Creator
Creator
Author

Hi,

Any idea please

Many thanks

Emteam

Not applicable

I agree with Gysbert what said.

I don't think you can save a qvw open on server.

Maybe with a macro you can save your variable values in a excel (or maybe) txt file, and get them back each time you reload.

emteam162
Creator
Creator
Author

Hi,

Ok

but i want know when

this macro

Sub SaveDoc

     ActiveDocument.Save

End Sub

Work

Many thanks

Emteam

Not applicable

when you run your file in desktop application

emteam162
Creator
Creator
Author

Hi all,

Thanks for your answer

Many thanks,

Emteam