Board index » delphi » multi-user IBX application

multi-user IBX application

When one user updates a record, other user cannot see it if he don't close
the application and open again.

How can I resolve this problem?

PS. I've used ibquery.cachedupdates = true and and
ibquery.datatabase.applyupdates([ibquery]) after ibquery.post

Thanks.

 

Re:multi-user IBX application


Quote
Update wrote:

> When one user updates a record, other user cannot see it if he don't close
> the application and open again.

        Your "other user" is probably using a SNAPSHOT transaction.  Try
setting the transaction isolation mode to READ COMMITTED (double-click
on the TIBTransaction at design time).

        You can read about transaction isolation modes here:

http://www.cvalde.com/document/TransactionOptions.htm

        HTH,

        -Craig

--
 Craig Stuntz (TeamB) Vertex Systems Corp. Columbus, OH
We're hiring: http://www.vertexsoftware.com/careerops.htm#sd
     Delphi/InterBase WebLog: http://delphi.weblogs.com

Re:multi-user IBX application


I'm very new to Interbase and seem to be having the same problem.

I have set the transaction properties as suggested.. but I've obviously
missed something.

Regards

Dave

Quote
Update wrote in message <3bbb13b9$1_2@dnews>...
>When one user updates a record, other user cannot see it if he don't close
>the application and open again.

>How can I resolve this problem?

>PS. I've used ibquery.cachedupdates = true and and
>ibquery.datatabase.applyupdates([ibquery]) after ibquery.post

>Thanks.

Re:multi-user IBX application


Are you committing the changes?  Other users can not see uncommitted changes.
Just posting is not enough.

Quote
DA Brookes wrote:

> I'm very new to Interbase and seem to be having the same problem.

> I have set the transaction properties as suggested.. but I've obviously
> missed something.

> Regards

> Dave

--
Jeff Overcash (TeamB)   | Talk about failure
(Please do not email    | To fall is not to fail
 me directly unless     | Failure isn't about falling down
 asked.  Thank You)     | Failure is staying down (Marillion)

Re:multi-user IBX application


Quote
Update wrote:

> PS. I've used ibquery.cachedupdates = true and and
> ibquery.datatabase.applyupdates([ibquery]) after ibquery.post

There is no need for CachedUpdates if you are going to do this.  You are adding
an unnecessary level of complication.

Quote
> Thanks.

--
Jeff Overcash (TeamB)   | Talk about failure
(Please do not email    | To fall is not to fail
 me directly unless     | Failure isn't about falling down
 asked.  Thank You)     | Failure is staying down (Marillion)

Re:multi-user IBX application


I've used ibtable2.applyupdates
and ibtransaction2.commit
in an afterpost operation, but get an error message "cannot perform this
operation on a closed dataset" when I try to click on post...

I'm used to dBASE tables, sorry..
Regards
Dave

Quote
Jeff Overcash (TeamB) wrote in message <3BBC765B.6C4EB...@onramp.net>...
>Are you committing the changes?  Other users can not see uncommitted
changes.
>Just posting is not enough.

>DA Brookes wrote:

>> I'm very new to Interbase and seem to be having the same problem.

>> I have set the transaction properties as suggested.. but I've obviously
>> missed something.

>> Regards

>> Dave

>--
>Jeff Overcash (TeamB)   | Talk about failure
>(Please do not email    | To fall is not to fail
> me directly unless     | Failure isn't about falling down
> asked.  Thank You)     | Failure is staying down (Marillion)

Re:multi-user IBX application


Thanks for your help
Regards
Dave

Re:multi-user IBX application


Sorted this I think..
I have to commit everything, post, delete, refresh etc.. (which makes sense
now)
Sorry If I look dim, this is my second day with interbase...

Thanks for your patience..

Other Threads