View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002960||VALENTINA SERVER||API||public||2008-01-20 03:31||2008-01-21 06:29|
|Reporter||Fabian||Assigned To||Ivan Smahin|
|Target Version||Fixed in Version||3.5.2|
|Summary||0002960: A changed picture was reread from the cache and not from the DB|
|Description||Situation (VCOM, VServer, VB6):|
On two PCs record A was read and the same picture was shown on both (as expected). Now on PC 1 the picture was changed (and the update flushed).
On PC 2 the same record was reread -> the old picture was shown.
If I first read an other record on PC 2 and then reread record A -> the correct picture was shown.
It looks like the changement of the picture field does not invalidate the cached data.
|Additional Information||Code snippet:|
Function DBReadPicture(Byval RowID As String) As StdPicture
Dim myPict As VPicture
Dim myTable As VTable
Dim RecID As Long
Set myTable = myDB.Table("Patienten")
RecID=myTable.Field("PAT_ID").FindSingle(RowID) 'RowID is a GUID
If RecID<>0 Then
myTable.RecID = RecID
Set myPict = myTable.Field("Foto")
Set DBReadPicture = myPict.ReadPicture
Set myPict = Nothing
Set myTable = Nothing
Image1.Picture = DBReadPicture(RowID)
|Tags||No tags attached.|