Problem/Bug with CONTEXT()

Hi!
When using CONTEXT() in security filters, the “Host” and “View” parameters doesn’t work correctly.

CONTEXT("Host") = "Server" returns TRUE when previewing the app in the emulator
CONTEXT("Host") = "Browser" returns FALSE when previewing the app in the emulator
CONTEXT("View") = "" returns TRUE when previewing the app in the emulator

The documentation states:

Host : Gives Browser if the app is running in a browser or the app editor’s emulator, Device if a native app, or Server if used from an AppSheet server (e.g., in a workflow or report).
View : The name of the view currently displayed to the user, or blank if no view is currently displayed (e.g., in a workflow or report).
CONTEXT() | AppSheet Help Center

If I understand it correctly, the reason behind this error is that the security filter is run on the AppSheet server, and not local on the device. But this limits the functionality, because I may want for instance to sync some records when using a phone app, and other records when using the browser. And the documentation doesnt state that is doesn’t work.

Any suggestions? @Steve

0 10 493
10 REPLIES 10
Top Labels in this Space