Hi,
Trying to solve some speed issues, using TPS
I enabled the driver trace to debug the following VIEW code
The “next(ThisView)” generates a next in the driver trace for every record in the file.
Using upper or not makes no difference.
What is missing with the view code here as the file has a primary key and the value is loaded in the filter.
thanks for any info
Johan
! code
open(thisview)
ThisView{prop:filter} = 'UPPER(ITE:ITEM_ISN) = <39>' & Upper(ite:item_isn) & '<39>'
set(ThisView)
next(ThisView)
if error()
ds_OutputDebugString('TVCweb testview error2=:' & error() & format(clock(),@t06))
end
! view decleration
ThisView &View
View:item View(item)
Project(ite:item_isn)
Project(ite:item_desc)
Project(ite:item_amt)
Project(ite:item_qty)
Project(ite:item_gr_total)
END ! of ThisView
! file layout
item FILE,DRIVER('TOPSPEED'),NAME(glo:item_f),PRE(ite),CREATE
item_isn_key KEY(ite:item_isn),PRIMARY
account_isn_key KEY(ite:account_isn,ite:invoice_isn,ite:item_date,ite:item_time),DUP,NOCASE
item_type_key KEY(ite:item_type,ite:item_date),DUP,NOCASE
order_isn_key KEY(ite:order_isn,ite:item_isn),NOCASE,OPT
cons_isn_key KEY(ite:cons_isn),DUP,NOCASE
item_desc_key KEY(ite:item_desc),DUP,NOCASE
invoice_isn_key KEY(ite:invoice_isn,ite:item_isn),DUP,NOCASE
piece_isn_key KEY(ite:piece_isn),DUP,NOCASE
acc_nr_key KEY(ite:acc_nr,ite:invoice_isn),DUP,NOCASE
print_key KEY(ite:invoice_isn,-ite:item_seq_nr,ite:item_desc),DUP,NOCASE
ordergrp_isn_key KEY(ite:ordergrp_isn),DUP,NOCASE
invoicing_key KEY(ite:invoice_isn,ite:account_isn,ite:item_grp_isn,-ite:item_DC,ite:item_date,ite:item_time),DUP,NOCASE !'D' comes before 'C' ----- see notes
integ_isn_key KEY(ite:integ_isn),DUP,NOCASE
stockper_isn_key KEY(ite:stockper_isn,ite:x_isn),DUP,NOCASE
gp_completed_key KEY(ite:gp_completed,ite:item_date),DUP,NOCASE
wlable_isn_key KEY(ite:item_type,ite:wlable_isn,ite:wtype_isn),DUP,NOCASE
stock_eff_key KEY(ite:item_type,ite:wlable_isn,ite:wtype_isn,ite:bottle_size,ite:item_date),DUP,NOCASE
record RECORD
item_isn STRING(20)
item_date LONG
item_time LONG
and lots more fields............
…