Select field dynamically

Hi,
Is it possible to change dynamically the lookup setting of a field for a select field?
See my lookup setting

For example, i would like a select when i am in insert mode and an other one when i am in update/delete mode

Thanks
Guy
v9.6.014

Hi
you can change where clause (onScriptIni)

if (empty({sc_where_current}))
{
sc_select_where(add) = " where cust_id = “.$usr_num.”";
}

I hope it helps

Hi,
It’s for a select in lookup setting in field not for the application
Thanks
Guy

In this case I think you can use global variables like this
select [field1], [field2],…from [table]

1 Like

Good idea. works fine.
Thanks
Guy