Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
bumin
Partner - Creator II
Partner - Creator II

selection screen to show only if data is in

I want to show the selection screen only if there is data in it.

I tried to define the criteria within the layout folder but it didn't work.

see attached qv-object

1 Solution

Accepted Solutions
Not applicable

sum(If(ISNUM(statmemo),0,1))>0

This should work here. Put it in layout-section

View solution in original post

5 Replies
Not applicable

I don't get your question. I looked at your qvd and...

What means "data in it".

Your layout restriction shows when something is selected in that field.

Not applicable

Try:

num(statmemo)<'10000' and cmpcode='D100'

in layout condition.

statmemo is no number by default I think. Don't if that is what you want to do!?

bumin
Partner - Creator II
Partner - Creator II
Author

thanks Jonas

I'll explain with a simle list

I want to see the object "selection' only if there is a line in the inline-table with a missing statmemo field

So if you change the inline tbale like this

test:
REPLACE LOAD * INLINE [
cmpcode, code, statmemo
D100, '4580', ' '
D100, '8000', '30000'
C100, '4580', '25000'
C100, '8000', '30000'
];

The selecttion object should appear

If you have this situation

test:
REPLACE LOAD * INLINE [
cmpcode, code, statmemo
D100, '4580', '25000'
D100, '8000', '30000'
C100, '4580', '25000'
C100, '8000', '30000'
];

The selection object should not appear at all

Not applicable

sum(If(ISNUM(statmemo),0,1))>0

This should work here. Put it in layout-section

bumin
Partner - Creator II
Partner - Creator II
Author

thanks Jonas, It works