Showing posts from March 17, 2011

Retrieving Parameters for DAL Process and Callouts in OpenbravoERP

Process: In OpenbravoERP, when we write DAL Process, the first thing that we would need are the input parameters with which we can operate on the Window. By default there are some key parameters passed to the process bundle. They are: 1. Record ID 2. Tab Id 3. Client ID 4. Org ID These values are presented to the user as key-value pairs. They can be retrieved as provided below: String id=(String) bundle.getParams().get("TDS_Process_Pay_ID"); String id=(String) bundle.getParams().get("tabId"); The Catch here is that the key-value pairs are Case Sensitive. So the case of your name matters. But more often than not we cannot guess the case of our element variables. Instead of playing the guessing game you can use a very useful method provided in the same process bundle class, which is bundle.getParamsDefalated().This method returns all the process parameters that can be used in the process as a single string delimited by {[key1,value1]}. One example string that was retr…

Changing User Interface modes in Openbravo 3.0

OpenbravoERP 3.0 has brought a radical change to its User interface in its latest release 3.0. But like ardent developers I felt the 2.50 User Interface to be more suited for rapid development and I like the 2.50-3.0 Compatibility User interface for regular working. The buttons and the overall setup was pretty cool in it. Just when I thought there was no way to switch back, I came across this wiki link Though by default the users are provided with the 3.0 user interface, they have the option of reverting to the 2.50 User Interface mode or the 2.50-3.0 compatibility mode.I will present a simple screen shot of each mode and discuss its pro's and con's. 2.50 User Interface Mode:

2.50 User Interface Mode Type the Url like this in your browser to switch to the Classic User interface.
http://localhost:8040/openbravo/security/Menu.html?noprefs=true Pros:
Clean User Interface.Classic left side menus Con…