Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Locking a QlikView document with an expiry date

Is it possible to lock a QV with an expiry date i.e. user will not be able to open the document after a certain date?  If possible, how can this be accomplished?

Regards

9 Replies
stabben23
Partner - Master
Partner - Master

Hi, should be possible if you use Section Access and variables.

Let vExpiredate = 20151231;

Let vToday=today();

IF vToday <=vExpiredate then

Your script

ELSE

Section Access

USER NTNAME

ADMIN, ADMIN

ENDIF

Only admin can open document

Anonymous
Not applicable
Author

Thank you Staffan, let me try it out and advise accordingly

Regards.

Anonymous
Not applicable
Author

Staffan, you make reference to 'Your Script' in your recommendation, which script are you referring to?

stabben23
Partner - Master
Partner - Master

The script in the application, the whole part of it. And after that add section access, dont forget to tick "Initial Data Raduction Based on Section Access" in opening tab, document properties.

stabben23
Partner - Master
Partner - Master

Maybe you shold add section Access first

if vtoday >=vExpireddate THEN

Section Access part

ELSE

script

stabben23
Partner - Master
Partner - Master

Do you have knowledge about Section Access, if not be careful.

swuehl
MVP
MVP

Wouldn't this approach require a (daily) reload?

Christopher, how is the QVW supposed to be distributed and used?

Anonymous
Not applicable
Author

Thank you Staffan, i have used Section Access in the document already

Anonymous
Not applicable
Author

Thanks Swuehl

It is intended to be distributed as a desktop application and available on a year lease basis where if the lease is not renewed, user should not have access to the old data forcing them to renew the application after expiry date.