Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Import QlikView 10 Project Files?

QlikView 10 has support for Project Files, whereby every document object is exported as a separate file into a nearby -prj directory. This keeps all of the funcitonality and none of the data. Well done, QlikView. This makes it possible to control your QlikView documents (even very large ones) in a source control system (SVN, Git, etc.) which is a huge step towards truly distributed development, where different people are working on different parts of the same document at the same time.

However... does anyone know if there is a way to use the Project Files to recreate a QlikView document? From reading the documentation, it only describes how to create Project Files. If I am doing distributed development, I need to be able to merge other people's changes into mine and then absorb those changes into the document. Does anyone know if/how this is possible?

1 Solution

Accepted Solutions
chriscammers
Partner - Specialist
Partner - Specialist

Here is what has worked for me

  1. Place the -prj folder and contents in a directory lets say c:\QlikViewProjects
  2. Create an empty QVW and save it in c:\QlikViewProjects and do not name it the same as the -prj folder
  3. Close your new qvw
  4. In windows explorer rename the new qvw to match the -prj folder.
  5. Open the newly renamed qvw and it should import the contents of the prj folder

Note if you create the qvw with the exact same name as the prj it will overwrite the contents of the prj folder, you have to do the rename and open step or it will not import properly. 

View solution in original post

7 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

If I recall, there was an earlier discussion on this forum, describing how it's possibly, however, it is still quite buggy. I'm guessing these are just the first steps toward a distributed development process. Not quite there yet, at this point...

Not applicable
Author

Any updates on this?

In the latest release (QV10 sr3) the project file changes will be imported into the qvw document if you have a developer license. It does not seem to work in the personal version. A license is required. At least that was the case for us.

Not applicable
Author

We have be experimenting with the prj directory and it estenially is an auto-import and export mechanism. If there is a -prj directory when saving, qlikview will automatically export the qvw in xml files into the -prj directory and overwrite its contents. When opening a qvw, qlikview will merge the the xml files to the qvw.

To use with source control, start with the latest version, mark the qvw and -prj files for edit. Make your edits to the qvw, save, and close the file. Get the latest changes from source control in case other developers have checked in any other changes. Merge the changes with your diff or source control tool (use your file if there's a conflict in the qvw file). This step must be done with the qvw file close or you risk overwriting other developers' changes. After merging the files, open the qvw file, save, check in changes to qvw and -prj directory.

gandalfgray
Specialist II
Specialist II

Hi all

Can anyone explain in detail how to import the exported files from the -prj directory?

Someone mentioned in another post that you should create an empty file with the same name as the -prj directory.

I tried it four ways, non of them works:

1. Create an empty file xxx.qvw in the directory above xxx-prj directory, Open it with QV  -- did not work

2. Create an empty file xxx.qvw in the  xxx-prj directory, Open it with QV  -- did not work

3. In QV create an "empty" app named xxx.qvw in the directory above xxx-prj directory, Save. Close QV. Open it with QV  -- did not work

4. In QV create an "empty" app named xxx.qvw in the xxx-prj directory, Save. Close QV. Open it with QV  -- did not work

/gg

chriscammers
Partner - Specialist
Partner - Specialist

Here is what has worked for me

  1. Place the -prj folder and contents in a directory lets say c:\QlikViewProjects
  2. Create an empty QVW and save it in c:\QlikViewProjects and do not name it the same as the -prj folder
  3. Close your new qvw
  4. In windows explorer rename the new qvw to match the -prj folder.
  5. Open the newly renamed qvw and it should import the contents of the prj folder

Note if you create the qvw with the exact same name as the prj it will overwrite the contents of the prj folder, you have to do the rename and open step or it will not import properly. 

gandalfgray
Specialist II
Specialist II

Thanks chriscammers!

That works fine!

I would have marked your answer as "correct" if I could, but I'm not the creator of the thread so I can't...

Based on your explanation I just clarify it even more:

  1. Place the -prj folder and contents in a directory lets say c:\QlikViewProjects
  2. Using QlikView create an empty QVW and save it in c:\QlikViewProjects and do not name it the same as the -prj folder
  3. Close your new qvw
  4. In windows explorer rename the new qvw to match the -prj folder.
  5. Open the newly renamed qvw in QlikView and it should import the contents of the prj folder

(strange that this is not explained in Reference Manual, it's not really quite obvious...)

richho_microp
Contributor III
Contributor III

One thing I would add to this is to make sure you open the blank qvw from within Qlikview itself rather than double clicking on the icon in Explorer.

45 mins it took me to realise, {shakes head}