Subject | RE: [IBO] Refreshing data |
---|---|
Author | Riho-Rene Ellermaa |
Post date | 2001-10-11T07:26:28Z |
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
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]
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:only
> > DSource->Dataset->InvalidateRowNum(DSource->Dataset->RowNum);
> >
> > If not, then what do use? I don't want to refresh whole dataset, but
> > bookmarked itemsWhat is your transaction isolation set to?
>
> That's one for Jason, I get away with Refresh nowadays.
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]