Show if constraint for view with Context("Table")

I'm trying to set a Show if constraint for a certain view with the CONTEXT("Table") function, but it won't work... I've tried to remove spaces from the table name, tried using the data source name too — nothing works.

Here's part of my Show if expression: CONTEXT("Table")="PRODUCT_DB"

(PRODUCT_DB = Table name)

Anyone would be able to help on this?

Thanks in advance!

Solved Solved
0 3 310
1 ACCEPTED SOLUTION

I typically follow Appsheet's default View naming schema wherever I can, which means the table name is the first part of the view name. In such a case, to accomplish your goal (or at least how I interpret it, it's not 100% clear), you could use STARTSWITH( CONTEXT("View"), ... ).

I can't imagine a situation where this would help though. Views can only be set on a single table, so why would there be an "inside" view on a different table that you'd just be hiding anyways.

View solution in original post

3 REPLIES 3