Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Gurus,
I am trying to create a copy of a file which I am not able to open in my laptop due to limited resources. I know that I cud recreate a file from prj folder. But to create prj folder I need to open and save. That is how I create prj folders.
Is there a way to create prj folders without needing to open them ?
Please let me know your thoughts,
Thanks is Advance,
Sree
Make a copy of the file, then open the copy from the command line with the /nodata option: "c:\program files\qlikview\qv.exe" /nodata "d:\myqvapps\copy of myapp.qvw". This will open the document without data. That way it should fit in your machines ram.
Make a copy of the file, then open the copy from the command line with the /nodata option: "c:\program files\qlikview\qv.exe" /nodata "d:\myqvapps\copy of myapp.qvw". This will open the document without data. That way it should fit in your machines ram.
Export QlikView application (QVW) file to a PRJ folder
NOTE1: The content will only be exported to the PRJ folder every time the QVW file is saved
NOTE2: The PRJ folder will not contain data, which also includes variable values
Recreate QlikView application (QVW) file from the PRJ folder
Variable values are not stored in the project folder XML files, hence it is not possible to recover them if the QVW file gets deleted or corrupted.
To prevent the loss of variable values, the current variables can be exported to a QVD during application reload. The QVD can then later be used to recover the previous variable values.
Store all application variables to QVD file
The below script loads all defined variables from the AllProperties.XML file in the QlikView project (PRJ) folder. This script should be loaded along with the application linked to the PRJ folder, since the variable values are stored in that QVW file. All the variables found in the AllProperties.XML are extracted and stored into a QVD file called Variables.qvd.
To be on the safe side this script could be included all reloads, so that the variables can be restored even if the QVW file gets corrupted or deleted.
VariableNames:
LOAD Name AS VariableName
FROM [MyApplication-prj\AllProperties.xml] (XmlSimple, Table is [AllProperties/VariableProperties/VariableProperties]);
FOR i=0 TO NoOfRows('VariableNames')
LET varName = Peek('VariableName', $(i), 'VariableNames');
LET varValue = $(varName);
Variables:
LOAD
'$(varName)' AS VariableName,
'$(varValue)' AS VariableValue
AutoGenerate 1;
NEXT
STORE Variables INTO Variables.qvd (QVD);
DROP Tables VariableNames, Variables;
Restore all application variables from a QVD file
The variables stored in the QVD file in the above example can be restored by the principle below. The QVD is loaded and then the variables are picked out one by one and defined in the application. This script should only be executed on loads where the variables should be recovered.
Variables:
LOAD VariableName,
VariableValue
FROM Variables.qvd (qvd);
FOR i=0 TO NoOfRows('Variables')
LET vVar = Peek('VariableName', $(i), 'Variables');
LET vVal = Peek('VariableValue', $(i), 'Variables');
LET '$(vVar)' = '$(vVal)';
NEXT
Hi, I am unable to export the files into TEST_QVW-PRJ after saving & reload my file. I got this file from some other team and Is there any settings I need to enable ?
Thanks a lot Gysbert.
Exactly what I was looking for. It worked for me !!
Hi Gybsert
i am trying to create prj folder in separate drive in a same machine.its not working..Is there any solution for this?
No, the -proj folder has to be in the same place as the .qvw document
Thank you Gybsert
Has anyone had an issue with saving QVW's containing Container objects using a -prj folder? Every time I do the save just hangs as a tmp file.