Subject RE: [IBO] Refreshing data
Author Riho-Rene Ellermaa
Transaction is tiCommited
Yes, I commited the changes in another tool.

In My Query's BeforeEdit I have the same line:
IB_Dataset->InvalidateRowNum(IB_Dataset->RowNum);
and when I start editing some field, the record is refreshed with data
changed elsewere.

The HELP said something about refreshing data before first request. So,
maybe I have to request the current records's data somehow more specfically:
For now it's:
if(!DModule->Trans->InTransaction)
DModule->Trans->StartTransaction();

(dynamic_cast<TIB_BDataset*>(DSource->Dataset))->SelectedBookmarks(StringLis
t);
DSource->Dataset->InvalidateRowNum(DSource->Dataset->RowNum);
int stat=DSource->Dataset->FieldByName("STATUS")->AsInteger;
<------------- shows old value



Riho-Rene Ellermaa
senior programmer
Hansabank




> > I thought this line does it:
> > DSource->Dataset->InvalidateRowNum(DSource->Dataset->RowNum);
> >
> > If not, then what do use? I don't want to refresh whole dataset, but
only
> > bookmarked items
>
> That's one for Jason, I get away with Refresh nowadays.

What is your transaction isolation set to?
Did you do a commit in the tool that you made the changes with?

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com <http://www.ibobjects.com>





[Non-text portions of this message have been removed]