I would like to change the SQL browse FORM based on variable from JS (for example limit data displayed based on user name or department name)
for ex.: initially in the SQL Browse Form Properties I have:
Code: Select all
SELECT storage_id, sto_ref_nr, sto_name, sto_memo, sto_resp FROM storage
Code: Select all
nuSetProperty('browse_sql', "SELECT storage_id,sto_ref_nr,sto_name,sto_memo,sto_resp from storage WHERE sto_resp='John'");
Do you think should this work? or maybe any suggestion how can I do it?