Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
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,
MK
Hi,
If you enable the file then you can get the script from that, check whether you have log file enabled.
Regards,
Jagan.
The script is removed from published apps. You have to look in the source application.
Hi Mk,
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.
Thanks for the reply.
But is there is any way I can get the original script.
In addition to that, the script in the Source document folder has also lost.
There also I am getting same message, in the Edit Script Section.
MK,
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.
Regards,
sivasankar
In DistributionService folder look for DocumentLog.txt.
If you have added logging to your app, it will be there.
Usually: DistributionService\1\Log\<Date>\<app>\DocumentLog.txt
Hi,
If you enable the file then you can get the script from that, check whether you have log file enabled.
Regards,
Jagan.