OK - what I meant was - where do I put my code to get data into my memory table?
Sorry question should have been - how do I populate the memory table- sorry!
Here is my current code:
FillMemory01 ROUTINE
p_web._trace('callW TestingMemoryOptionsBrowse FillMemory01')
loc:DateFrom = p_Web.GSV('loc:DateFrom')
loc:DateTo = p_Web.GSV('loc:DateTo')
Access:Memory01.Open()
Access:Memory01.UseFile()
if records(Memory01) = 0! to prevent routine adding the same data over and over whenever I click anywhere on browse
Access:LOG.Open()
Access:Log.UseFile()
PushBind
!free(statsQ)
BIND('LOG:LogType',LOG:LogType)
BIND('LOG:Taskype',LOG:TaskType)
open(ViewLOG01)
buffer(ViewLOG01,120)
! set order
ViewLOG01{PROP:Order} = 'LOG:LogType,LOG:Taskype'
! set filter
ViewLOG01{PROP:Filter} = 'LOG:LogType = ''WalkIn'''
set(ViewLOG01)
next(ViewLOG01)
set(ViewLOG01)
loop
next(ViewLOG01)
!if errorcode();stop(errorcode()&' '&error());end
if errorcode() then break.
M01:C01 = LOG:TaskType
M01:L01 = LOG:LogNumber
Access:Memory01.Insert()
end
Access:Memory01.Close()
close(ViewLOG01)
UNBIND('LOG:LogType')
UNBIND('LOG:Taskype')
PopBind
! LOC:EndTime=clock()
! LOC:SecondsElapsed = (LOC:EndTime - LOC:StartTime)/100
display
END
This could become a large and complex bit of code involving many tables - therefor I'm using a view.