#view dropinmenu (icon:"nav-icon invoice-icon",title:"Accounts") button () --{title:"Create new account" glymph:"pencil-b" from=ACCOUNT where="OWNER=operator.id and name=''New User''" form=GLP/Edit_Account_GLP} sql UPDATE OR INSERT INTO ACCOUNT (OWNER,NAME,STATUS) VALUES ( operator.id, 'New User',10 ) matching (OWNER,NAME) ; select first 1 user_pk_field from ACCOUNT where owner=operator.id and name='New User' into :master_id; table(pagination:25) Select --:{Title:"Manage Accounts",from:ACCOUNT,tablestyle:DT} first 1000 NAME, --:{as:fk,form:"GLP/Edit_Account_GLP",pointer:3} NOTES, --:{as:Text} TYP, --:{as:Text} ID --:{as:Text} From ACCOUNT where status='10' and owner=operator.id #>