I have published one of the document through publisher and now, when I am trying to refer the Script written in the Edit Script Section, I am getting below message -
// Write your script here. Note: Reload is disabled upon distribution. Enable by changing the checkbox at Settings->Document preferences->Security->Reload.
Can anyone please let me know, how, I can restore and refer the script written in the Edit Script section.
Please let me know, as its is urgent for me.
Thanks & Regards,
This is expected behaviour of distributing documents using publisher. You will not be able to see the Script after distribution.
That's the reason you should keep folder structure like Source and Destination. Reload your document in Source folder and publish it to Destination folder and Access point should be configured to point Destination folder.
This way you will always have you native code (apps) in Source folder and publish docs (without script) destination folder.
Use following path to set up Source Folder-->Management Console--> System--> Setup--> Distribution Services--> General--> Source Folder
To Setup Destination folder-->Management Console--> System--> Setup--> QlikView Services--> Folders--> Mounted Folders--> Name (Destination or Published Documents) and give the path C:\Folder_Name
Solution is you need to use hidden script functionality. Qlikview server won't delete hidden script while using distribute task. And it will load data properly.
I'm afraid that you cannot restore until you have two separate folders( for source and distribution folder).
It might have overwritten the source document there by deleting the scripts.
In DistributionService folder look for DocumentLog.txt.
If you have added logging to your app, it will be there.