Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

flipside
Valued Contributor II

Re: Saving a qvw in script to another file location or a better alternative?

Hi Hendrik,

The autogenerate part was just to create some data so probably you won't be needed this for your solution. It will be useful for you to know how it works, though. In my example my .qvw file has a table called Data with one field RowID. When I binary load the ,qvw it first loads this table, then that script adds 1 row to it. (If I had used, for example, Autogenerate 2, it would add 2 rows) When the file is saved it has one more row than before, and this repeats every time the script is run. I used RowNo() because this populates the field with the next incremented value - again just for demonstration purposes, you could use anything it would still get added.

Hope this helps.

flipside