[sql generation] fix table scope pb: when an inlined relation is used as principal for the rhs variable, we should adjust lhs variable'scope
functionset_tab(tabname,cookiename){// set appropriate cookieloadRemote('json',ajaxFuncArgs('set_cookie',null,cookiename,tabname));// trigger show + tabname eventtrigger_load(tabname);}