Qlik Community

QlikView Publisher

Discussion Board for collaboration on QlikView Publisher.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Script lost from QVW when distributing using 'Distribute to Folder'

Hello,

We're facing an issue when we distribute the QVW file via Distribute tab and selecting option  'Distribute to Folder', all the script is lost and QWV document just holds the front end objects.

Opening the script, there's a message written:

// Write your script here. Note: Reload is disabled upon distribution. Enable by changing the checkbox at Settings->Document preferences->Security->Reload.

Does anyone know here how to fix this issue of not loosing the existing script?

Any help would be greatly appreciated.

Thanks

1 Solution

Accepted Solutions
Not applicable

Re: Script lost from QVW when distributing using 'Distribute to Folder'

Hello Pankaj,

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

4 Replies
annafuksa1
Not applicable

Re: Script lost from QVW when distributing using 'Distribute to Folder'

this is how Distribute works

Not applicable

Re: Script lost from QVW when distributing using 'Distribute to Folder'

Hello Pankaj,

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

Not applicable

Re: Script lost from QVW when distributing using 'Distribute to Folder'

As annafuksa1‌ mentioned, that is how distribute works. Do you have folder structure defined? General practice to distribute is, the QVW file in 'DataModel' folder will be reloaded and distributed to another folder say 'Application'. QVW in 'DataModel' folder contains both Script and Presentation layer. where as QVW in 'Application' folder contains only presentation layer which will be made available for users on Access point. Every reload task, updates the file in 'DataModel' folder and distributes it to 'Application' folder.

Regards,

KKR

Not applicable

Re: Script lost from QVW when distributing using 'Distribute to Folder'

Thanks everyone for your helpful answers. Much appreciated.