<% oJSON=NEWOBJECT('json','json.prg') oresponse.expires=-1 IF NOT [NFJSON] $ SET("Procedure") SET PROCEDURE TO (addbs(oprop.appstartpath)+[prg\nfjson.FXP]) additive endif SET NULL off SET DELETED ON SET DATE TO YMD SET CENTURY on SET HOURS TO 24 operation=orequest.form('operation') if operation='timestamp' tendtime=orequest.form('endtime') ktsql=[select top 100 itemid, bar_code, name, sale, cost, pcost, timestamp from (']+dbclocation+[itemmast') where not empty(timestamp) and timestamp