Hi gricha2380, I've tried everyway I can think of to duplicate your problem. So far without any success. I've duplicated the datagrid (that just produces a non-responsive copy of the dg), I've removed all references to putting "empty" into the data grid, that didn't create the problem either (so my code to clear the dg seems unnecessary as well).gricha2380 wrote: Take a look. The table on the left is what I see just by opening the card. The table on the right is a duplicate table that is not tied into the search code.
img542.imageshack.us/img542/4213/screenshot20111202at102.png
BTW, based on what I've learned here I went back and re-scripted it. The "else" clause is now just 1 line of LC
Code: Select all
on preopenstack
put "/users/mark/runrev/summer academy" & "/sa index.txt" into tSavePath
if there is a file tSavePath then
-- copy the file into a variable
put url ("file:" & tSavePath) into theData
cleanupsaindex -- go cleanup the index (you can read what that handler does but you won't need it)
-- now initialize the datagrid (copy the variable into the dg)
set the dgText of group "DataGrid" to theData
set the cindex of this stack to theData -- and save a copy in a custom property for later use
else
-- there is no file so initialize the dg using the custom property
set the dgText of group "DataGrid" to the cindex of this stack
end if
put the number of lines of the cindex of this stack into thecount
put thecount && "records" into fld "count"
end preopenstack
Cheers,
-- Mark