Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Check if table exist through expressions

Hi all,

I would like to put a condition to display an object only if a certain table is created in my ERD.

what kind of expression should I use in the layout tab of the object properties?

thanks,

Boris

1 Solution

Accepted Solutions
Not applicable
Author

Hi Boris,

You can use the system field $Table to accomplish that, in the layout conditional field add the below to check if a table labeled Production exists or not:

SubStringCount(';' & Concat(DISTINCT $Table, ';') & ';', ';Production;')=1

Hope this helps.

View solution in original post

4 Replies
Not applicable
Author

Hi Boris,

You can use the system field $Table to accomplish that, in the layout conditional field add the below to check if a table labeled Production exists or not:

SubStringCount(';' & Concat(DISTINCT $Table, ';') & ';', ';Production;')=1

Hope this helps.

Not applicable
Author

I get an expression error under the $.

Not applicable
Author

You can enclose the system field between brackets: [$Table].

But it will still work anyways

Not applicable
Author

Boris,

Could you mark the answer as correct if it was the case.

This will also help others having same request.

Thanks.