SQL query parameters can be given values on the server in the onBeginProcessData event — the values never reach the client.

Set a parameter value in the data event.
def beginProcessData(args: StiDataEventArgs):
    if args.dataSource == 'customers' and len(args.parameters) > 0:
        args.parameters['Country'].value = 'Germany'

viewer.onBeginProcessData += beginProcessData

How it works. Parameter values are applied on the server, so query filters stay confidential and are not exposed to the client.

By using this website, you agree to the use of cookies for analytics and personalized content. Cookies store useful information on your computer to help us improve efficiency and usability. For more information, please read the privacy policy and cookie policy.