Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

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.

sibin_jacob
Contributor III

Checking for File Exist

HI,

In my application I am using document chaining. 3 qvw files in my application.

1.Intro.qvw

2.Geo.qvw

3.Phy.qvw

In my Intro.qvw file contains two buttons.one for Geo & another for Phy view.

All the files are present in 'C:\ss' folder.

If geo file is not present in this folder I need to hide the geo button.

Is there any way to hide button if the corresponding file not exist ?

Thanks

Sibin

1 Solution

Accepted Solutions
vgutkovsky
Honored Contributor II

Re: Checking for File Exist

You can't use QVDCREATETIME since that checks for a QVD not a QVW. The only way I know of to do this (without macros), is to set a variable in the script using function filesize() which is a script-only function. Assuming your application hasn't been deleted since the last reload, that should work for you.

Regards,

Vlad

4 Replies
vgutkovsky
Honored Contributor II

Re: Checking for File Exist

You can't use QVDCREATETIME since that checks for a QVD not a QVW. The only way I know of to do this (without macros), is to set a variable in the script using function filesize() which is a script-only function. Assuming your application hasn't been deleted since the last reload, that should work for you.

Regards,

Vlad

sibin_jacob
Contributor III

Re: Checking for File Exist

Thanks Vlad. Its helped me to solve the issue.

jugrimault
New Contributor III

Re: Checking for File Exist

Hi,

Good, so can you flag this post as Solved? thks

sdmech81
Valued Contributor

Re: Checking for File Exist

May be using in script like:


if FileSize(filename)<>0

Community Browser