SercoSteve
Programmer
Firstly is it possible to set the secondary index of a Table prgrammatically when the primary index is linked to another table in the data model?
I am using the code shown in an attempt to set the secondary index of my all_part DB to "ALT" which is defined. Then update my PARTS Table Frame to reflect the changes to all_part.
method pushButton(var eventInfo Event)
var
custTbl Table
tc TCursor
endVar
custTbl.attach(":ITEMSLIST:all_part.db"
if isTable(custTbl) then
if custTbl.setIndex("ALT" then
if tc.open(custTbl) then
PARTS.resync(tc)
tc.close()
endIf
endIf
endIf
endMethod
I only learnt about Secondary indexes this morning so I am kind of shooting in the dark, any suggestions would be greatly appreciated.
Steve
I am using the code shown in an attempt to set the secondary index of my all_part DB to "ALT" which is defined. Then update my PARTS Table Frame to reflect the changes to all_part.
method pushButton(var eventInfo Event)
var
custTbl Table
tc TCursor
endVar
custTbl.attach(":ITEMSLIST:all_part.db"
if isTable(custTbl) then
if custTbl.setIndex("ALT" then
if tc.open(custTbl) then
PARTS.resync(tc)
tc.close()
endIf
endIf
endIf
endMethod
I only learnt about Secondary indexes this morning so I am kind of shooting in the dark, any suggestions would be greatly appreciated.
Steve