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: 
d_koti24
Creator II
Creator II

Regarding qvs file issue?

Hi ,

I Have a one qvs file,i am using that qvs file in diff apps like app1,app2,app3,

in qvs file diff fields are there like :

load

a,

b,

c,

d,

e

from sample;

my requirement is  i want load 'd' field in particular app1 only,remaining apps i don't want load 'd' field .

how to achive this?

regards,

kd

1 Solution

Accepted Solutions
Anonymous
Not applicable

your qvs

if (vmyapp=1) then

   TABLE1:

   load d

   from sample;

if (vmyapp<>1) then

   TABLE1:

   load a,

   b,

   c,

   e

   from sample;

in your app1:

let vmyapp = 1

include ...qvs

in your other apps

let vmyapp=2

include ....qvs

View solution in original post

7 Replies
datanibbler
Champion
Champion

Hi koti,

you can use the DocumentName() to get the app's name and make that line in the LOAD dependent on the output of that function.

HTH

Anonymous
Not applicable

in app1 you define

load d

from yourfile.qvd

in other apps

load

a,

b,

c,

e

from yourfile.qvd

? or do i understand wrong?

Anonymous
Not applicable

sorry, my mistake

you mean using include?

why not use a variable to differentiate?

if (vapp = 1)

  load

  d

from ..

if (vapp=2)

load

a,

b,

c

e

from ..

d_koti24
Creator II
Creator II
Author

Hi Rudolf,

Yes,Correct

d_koti24
Creator II
Creator II
Author

Can you please share me the sample app.

d_koti24
Creator II
Creator II
Author

can you send me sample app..

Anonymous
Not applicable

your qvs

if (vmyapp=1) then

   TABLE1:

   load d

   from sample;

if (vmyapp<>1) then

   TABLE1:

   load a,

   b,

   c,

   e

   from sample;

in your app1:

let vmyapp = 1

include ...qvs

in your other apps

let vmyapp=2

include ....qvs