View source | Discuss this page | Page history | Printable version   
Main Page
Upload file
What links here
Recent changes

PDF Books
Add page
Show collection (0 pages)
Collections help


How to develop with Synchronized Transactions



This howto gives insight in how to write functionality which works correctly also in case of synchronized transactions. In synchronized mode the WebPOS user interface remains blocked while the transaction is being processed on the server. Any results are shown (or can be used) directly to the user.

Synchronized transactions need special handling in both client as well as server side code:

Before starting this howto make sure to read the howto setup a dev environment. It also makes sense to have a clear understanding of the states of an Openbravo Commerce server (offline, online, transitioning etc.).

Also the howto assumes that the reader is familiar with the main concepts/information provided by the retail developers guide.

For the topic of synchronized transactions make sure to read special wiki page.

Installing the how to module

The examples provided in this howto can be found in the Store Server Howto module. The howto module can be downloaded using the hg clone command in the modules directory:

 hg clone

After this execute the 'ant smartbuild -Dlocal=no' command in the main project directory.

Synchronized Transactions - Enabling

Synchronized mode is enabled by setting the preference: WebPOS Synchronized Mode to Y.

Synchronized Transactions - Client Side

Synchronized transactions use the WebSQL tables which are present in



Synchronized Transactions - Server Side

The main thing

The result

The result is shown in the screenshot below:


Retrieved from ""

This page has been accessed 166 times. This page was last modified on 6 May 2016, at 23:09. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.