Scope of variables for table events

Hi,

I want to make sure that a table event will use global variables relevant for individual tenants, so that I can use the onRecordInsert to assign the tenant_id…is this correct?

Thanks,
Don

Why dont you use the default values?

Hi jasantana,

Don’t know what you mean by default values. Can you elaborate?

I’m using a global variable assigned in onSolutionOpen.

Thank you,
Don

Using default values in Servoy tables. As you have the tenantid in a global variable you can set that as default value:

[attachment=0]AutoEnter.png[/attachment]

Didn’t know about that, thanks for showing me! - Don