Вы находитесь на странице: 1из 12

19/01/13

2011 January Fugo Consulting

Fugo Consulting Expertise The only substitute to knowledge!


Go

Home Fugo Consulting Posts Comments Openbravo PeopleSoft Pages General Oracle ERP Education Series Postgres

Dynamic column references in SQR


January 21, 2011 by Sundar K Leave a comment Lets say you are given a snapshot of data as shown in Table-1. TABLE-1 Emplid Effdt Field Value 100 01-Jan-2000 COMPANY 203 100 01-Jan-2000 BUSINESS_UNIT 00203 100 100 100 100 100 100 01-Jan-2000 JOBCODE 01-Jan-2000 DEPTID 01-Jan-2000 COMPRATE 11-Jan-2000 JOBCODE 11-Jan-2000 DEPTID 01-Feb-2001 COMPRATE 320032 20302 50000 340045 20301 55000

and you are asked to transpose the data, as represented by TABLE-2 TABLE-2 Emplid Effdt 100 100 100 Company BU Deptid Jobcode Comprate

01-Jan-2000 203 11-Jan-2000 01-Feb-2001

00203 20302 320032 50000 20301 340045 55000

To achieve this in SQR, the crudest solution is to use a combination of BEGIN-SELECT and BEGIN-SQL.
1 2 3 4 5 6 7 B E G I N S E L E C T E M P L I D E F F D T F I E L D V A L U E d oU P D A T E T A B L E 2 F R O MT A B L E 1

Now, lets focus on what would go in UPDATE-TABLE-2 procedure. Every row returned by the BEGIN-SELECT warrants an update on a different column in TABLE-2. A quick solution is to create an update statement for each of the columns BU, DEPTID, JOBCODE etc., and make them execute only when that value occurs in FIELD column.
0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 B E G I N P R O C E D U R EU P D A T E T A B L E 2 I f& F I E L D=' B U ' B e g i n S Q L U P D A T ET A B L E 2 S E TB U=& V A L U E W H E R EE M P L I D=& E M P L I D A N DE F F D T=& E F F D T E n d S Q L

fugoconsulting.wordpress.com/2011/01/

1/12

19/01/13
1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 e n d i f I F& F I E L D=' D E P T I D ' B e g i n S Q L U P D A T ET A B L E 2 S E TD E P T I D=& V A L U E W H E R EE M P L I D=& E M P L I D A N DE F F D T=& E F F D T E n d S Q L e n d i f

2011 January Fugo Consulting

! . . . a n dc o n t i n u et oc r e a t ea nI Fc o n d i t i o ne a c hf o rC O M P A N Y ,J O B C O D E ,C O M P R A T Ee t c . E N D P R O C E D U R E

The crudeness of the solution shows up, as the number of columns in TABLE-2 increases. SQR packs a beautiful technique for dynamic column references. With this technique, the UPDATE-TABLE-2 procedure is compressed and light-weighted as show below:
0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 1 0 B E G I N P R O C E D U R EU P D A T E T A B L E 2 B e g i n S Q L U P D A T ET A B L E 2 S E T[ & F I E L D ]=& V A L U E W H E R EE M P L I D=& E M P L I D A N DE F F D T=& E F F D T E n d S Q L E N D P R O C E D U R E

Any variable surrounded by square brackets [] is treated as database column in a SQL statement. Filed under PeopleSoft Tagged with column, dynamic, SQR

Connecting to postgres database in java code


January 10, 2011 by Shankar Balachandran Leave a comment To connect your Java program with Postgresql driver, add the Postgresql library jar (postgresql-jdbc3-8.2.jar or any current jar file) file in the libraries. Then the following code can be modified for your particular database and table.
0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 p a c k a g ej a v a a p p l i c a t i o n 1 ; i m p o r tj a v a . s q l . * ; / * * * *@ a u t h o rs h a n k a r * / p u b l i cc l a s sM a i n{ / * * *@ p a r a ma r g st h ec o m m a n dl i n ea r g u m e n t s * / p u b l i cs t a t i cv o i dm a i n ( S t r i n g [ ]a r g s ){ / /T O D Oc o d ea p p l i c a t i o nl o g i ch e r e S y s t e m . o u t . p r i n t l n ( " -P o s t g r e S Q LJ D B CC o n n e c t i o nT e s t i n g" ) ; t r y{ C l a s s . f o r N a m e ( " o r g . p o s t g r e s q l . D r i v e r " ) ; C o n n e c t i o nc o n n e c t i o n=n u l l ; c o n n e c t i o n=D r i v e r M a n a g e r . g e t C o n n e c t i o n ( " j d b c : p o s t g r e s q l : / / 1 2 7 . 0 . 0 . 1 : 5 4 3 2 / s a m p l e " , " p o s t g r e s " ," p o s t g r e s " ) ; i f( c o n n e c t i o n! =n u l l ) {

S t r i n gq u e r y = " s e l e c ta d _ a l e r t _ i df r o ma d _ a l e r t " ; R e s u l t S e tr s = s . e x e c u t e Q u e r y ( q u e r y ) ; w h i l e ( r s . n e x t ( ) ) { S y s t e m . o u t . p r i n t ( "" + r s . g e t S t r i n g ( 1 ) ) ; }

} e l s e S y s t e m . o u t . p r i n t l n ( " C o n n e c t i o nF a i l e d ! " ) ; } c a t c h ( E x c e p t i o ne ) { e . p r i n t S t a c k T r a c e ( ) ; } } }

Filed under Openbravo Tagged with Postgres JDBC Connection

Email Validation using Callouts in Openbravo


fugoconsulting.wordpress.com/2011/01/ 2/12

19/01/13

2011 January Fugo Consulting

January 10, 2011 by Shankar Balachandran 7 Comments Hi Folks, I have a written a simple Java code that validates an email ID. This is not a completely validated one, but a basic validated one. This can also be also used as a template for creating Callouts in Openbravo. special mention to my colleague Pandi and one more thanks to Ivan from Openbravo in helping me accomplish this task:)
0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 p a c k a g eo r g . o p e n b r a v o . e r p C o m m o n . a d _ c a l l o u t s ; i m p o r tj a v a x . s e r v l e t . S e r v l e t E x c e p t i o n ; i m p o r to r g . a p a c h e . l o g 4 j . L o g g e r ; i m p o r tj a v a . u t i l . * ; i m p o r tj a v a . u t i l . r e g e x . M a t c h e r ; i m p o r tj a v a . u t i l . r e g e x . P a t t e r n ; i m p o r to r g . o p e n b r a v o . e r p C o m m o n . a d _ c a l l o u t s . S i m p l e C a l l o u t ; i m p o r to r g . o p e n b r a v o . e r p C o m m o n . u t i l i t y . S e q u e n c e I d D a t a ; i m p o r to r g . o p e n b r a v o . e r p C o m m o n . u t i l i t y . O B E r r o r ; i m p o r to r g . o p e n b r a v o . s c h e d u l i n g . P r o c e s s B u n d l e ; p u b l i cc l a s sE m a i l _ C Le x t e n d sS i m p l e C a l l o u t{ p r i v a t es t a t i cf i n a ll o n gs e r i a l V e r s i o n U I D=1 L ; p r i v a t es t a t i cL o g g e rl o g=L o g g e r . g e t L o g g e r ( E m a i l _ C L . c l a s s ) ; @ O v e r r i d e p r o t e c t e dv o i de x e c u t e ( C a l l o u t I n f oi n f o )t h r o w sS e r v l e t E x c e p t i o n{ S t r i n gm a i l i d=i n f o . g e t S t r i n g P a r a m e t e r ( " i n p e m a i l " , n u l l ) ; / /S e tt h ee m a i lp a t t e r ns t r i n g P a t t e r np=P a t t e r n . c o m p i l e ( " . + @ . + \ \ . [ a z ] + " ) ; / /M a t c ht h eg i v e ns t r i n gw i t ht h ep a t t e r n M a t c h e rm=p . m a t c h e r ( m a i l i d . t o S t r i n g ( ) ) ; / /c h e c kw h e t h e rm a t c hi sf o u n d b o o l e a nm a t c h F o u n d=m . m a t c h e s ( ) ; S t r i n g T o k e n i z e rs t=n e wS t r i n g T o k e n i z e r ( m a i l i d ," . " ) ; S t r i n gl a s t T o k e n=n u l l ; w h i l e( s t . h a s M o r e T o k e n s ( ) ) { l a s t T o k e n=s t . n e x t T o k e n ( ) ; } / / i f( m a t c h F o u n d& &l a s t T o k e n . l e n g t h ( )> =2 / / m a i l i d . l e n g t h ( )-1! =l a s t T o k e n . l e n g t h ( ) ) i f ( ! m a t c h F o u n d ) i n f o . a d d R e s u l t ( " M E S S A G E " , " I n V a l i dE m a i l " ) ; } }

Importing it into the Application : Generally callouts are present in the folder ad_callouts in org/openbravo/erpCommon in the source folder of openbravo. You can put your callout file here and then we should define a callout in our application in Application Dictionary under setup folder callout is there. Now Give a name for the callout preferably the name of your java file because the mapping class file and a auto-generated html file will be generated. You check the existing callouts for path and adjust yours accordingly. Then this defined callout should be assigned to the field where the action has to be performed. for the above example it would be the string field where email will be entered. To assign callout to a column go to tables and columns and choose the corresponding column. There will be a field called callout. Choose your name there. Compile and deploy and check your callout. Note: To check whether your callout is called properly, u can use the empty frame at the end of each page. For that go to src/org/openbravo/erpCommon/security. There will be a file called Login_FS.Html. In line No.52 the frame ratio would be 100%,*. Change that too 90%,20%. This will create a empty text area at the end of every page and if that page has callout, the text Callout response page will be displayed. Or else if some error is displayed your path settings in callout definition has to be changed. Happy Working..:) Filed under Openbravo Tagged with Callouts in Openbravo, Email Validation in Openbravo, Openbravo 3.0

Openbravo Environment Setup in Eclipse


January 5, 2011 by Shankar Balachandran 17 Comments I have been using Openbravo for more than an year now and what I noticed is that its a big jungle to enter. You have to learn all about Ubuntu (the preferred platform), then setting up the stack viz, Java, Postgres, PgAdmin(GUI of postgres), Tomcat, Ant, Openbravo, Pentaho(BI tool), etc etc A good play ground to dig and play, but you can be rest assured your suits wont go unscathed more often than not. This is where you need a good dig tool and IDEs are just for that task. Though my personal favorite IDE is Netbeans, Eclipse is the preferred environment for Openbravo, so I
fugoconsulting.wordpress.com/2011/01/ 3/12

19/01/13

2011 January Fugo Consulting

decided to go through that route..:) I went through a lot of hardships, but nevertheless the result was satisfying and i wanted to bring you that. There is a Eclipse installation Manual (http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide/Development_Environment/Setting_up_Development_Environment_with_Eclipse_IDE), but I can assure you that with that link, its bound to take you at least 2 days to complete the installation. So am I going to provide something better than what the Openbravo guys did? Na Na..:) I am just going to shrink and stay up to the point, so that you can have it up and running in a single day. Importing Openbravo in Eclipse can be subdivided into the following sections. 1. Eclipse setup and configuration 2. Openbravo import and setup 3. Tomcat server and setup 1. Eclipse Setup and configuration: We can download eclipse from, http://www.eclipse.org/downloads/packages/release/galileo/sr2. Make sure you download the EE version so that most packages are already available. The following are the architectural elements that are needed for Openbravo to run. 1. Subclipse 2. Mercurial 3. Openarchitectureware (for template changes in core) So once you have downloaded and installed eclipse (its just a click and choose process), you will have the IDE that resembles something like this..:)

Now we have installed eclipse successfully. First hurdle crossed. Next to add the above listed elements(plugins), go to Help -> Install New Software. Here click the Add Button and provide the following link in the Location Field. http://subclipse.tigris.org/update_1.4.x. In the Name field Provide subclipse or anything for your reference. Then give Next, next and choose finish to install it. Once this is complete eclipse will be restarted. Next lets install Mercurial. For this Use the same Install New Software under Help and use the Add Button to add the Following URL in the Location Field, http://subclipse.tigris.org/update_1.4.x . Once you provide that, you will get a window similar to that.

If you are installing in ubuntu you can uncheck the windows binaries. Then click next and give finish. The same is to be followed for installing Openarchitectureware, using the following URL, http://www.openarchitectureware.org/updatesite/milestone/site.xml. Once Eclipse is installed, our next step is to import Openbravo. 2. Openbravo import and setup Go to File -> New -> Other and in the window that pops out choose Mercurial and the sub option as Clone from Existing Repository. Provide the URL from which you want to clone. If there is no repository, use File -> Import and choose the source folder of Openbravo. Then right click the Project folder and choose Properties. In the source tab add the following folders.
1 .s r cf o l d e r so fy o u rm o d u l e sa n do p e n b r a v os r cf o l d e r 2 .s r c t e s tf o l d e r so fy o u rm o d u l e sa n do p e n b r a v os r c t e s tf o l d e r 3 .s r c g e nf o l d e r 4 .s r c c o r e > s r c 5 .s r c w a d > s r c 6 .s r c w a d > b u i l d > j a v a s q l c > s r c 7 .s r c t r l > s r c 8 .s r c t r l > b u i l d > j a v a s q l c > s r c

fugoconsulting.wordpress.com/2011/01/

4/12

19/01/13

2011 January Fugo Consulting

Add the following libraries in the library tab.


1 .l i b > r u n t i m e 2 .l i b > b u i l d 3 .s r c d b > d a t a b a s e > l i b

Refresh the project. Next step is to compile this application. To add ant commands go to Run-> External Tools -> External Tools Configurations. Then double click, Ant Build and then you can find a screen as follows.

fugoconsulting.wordpress.com/2011/01/

5/12

19/01/13

2011 January Fugo Consulting

So you can add new tasks using the small new button and add as many tasks as you want. You just have to give path as provided in Main Tab. And tick the appropriate task in the Targets Tab. Openbravo is configured..:) 3. Tomcat server and setup To add tomcat 6.-0 server, go to File -> New -> Other and choose tomcat 6.0 as the server and map the corresponding tomcat folder. And then add openbravo to it and give finish. The eclipse would now appear as follows.

fugoconsulting.wordpress.com/2011/01/

6/12

19/01/13

2011 January Fugo Consulting

Note Openbravo attached to tomcat server. Now you can right click the project and choose Run -> run on server to deploy Openbravo. Done. Openbravo will be up and running..:) Happy working..:) Filed under Openbravo Tagged with Eclipse Configuration for Openbravo, Openbravo 3.0, Openbravo in Eclipse

Displaying Images in Openbravo


January 5, 2011 by Shankar Balachandran 4 Comments A picture speaks thousand words. Images are one of the key features of any ERP System. Specially in a feature rich application like Openbravo, images would add more beauty to the window..:) Openbravo provides a table called ad_image that saved image in the form of binary data or in the form of URL. Now in general when you want the reference data from some other table in Openbravo, we use the tabledir to provide direct table mapping or table reference to reference data. For basics on References, refer here. Also for creating external references, refer [1] and [2]. But in the case of ad_image table if you reference it as tabledir, it just comes as a dropdown as attached below.

But that does not show the true power of the image table. To display an image in the grid view and pen view, the reference type of the respective column should be set as Image BLOB. Then the image will be displayed as shown in the screen-shot below. Whatever the features an application has, User Interface is the main factor that decides the success of it, and I guess subtle things like this will enhance the look and feel of the application a little more..:)

Attached below is the screen shot of the column where image is mapped. Size of the image can be anything..:) since it stores binary data, I gave such high values

fugoconsulting.wordpress.com/2011/01/

7/12

19/01/13

2011 January Fugo Consulting

Filed under Openbravo Tagged with BLOB type in Openbravo, Images in Openbravo

Restoration of Openbravo Environment


January 5, 2011 by Shankar Balachandran Leave a comment All of us depend on backup most of the time. Thats one side-effect of innovative product development. Sometimes when our imagination unfolds in the form of thousands of ideas, the first thing that suffers is the application coz its new for it and the last thing is you got to restore it..:) Sometimes we do development in one environment and recreate the environment elsewhere. I will present how I did it for Openbravo in ubuntu. Openbravo in ubuntu has two parts. One if the folder structure and the other of course is the database. I use postgres as database because of the simple reason that its free. So the first step is i need a backup or a dump of the database. If you have pgadmin installed this is a easier task. Just right click on your database, and choose backup. In the options that present before you, choose the plain option. This option is to create a backup in plain text format that you can see. You can almost sense whats there in that dump with the plain format backup.

Now if you dont use pgadmin then use the command pg_dump -U postgres dbname > nameofbackupfile for more doubts in this, visit this link http://www.postgresql.org/docs/8.1/static/apppgdump.html. We have our database copy now. Next step is copy your current folder structure and transfer it to the destination machine. Next step is restoring the database. This command is really simple..:) psql -U postgres -d newdb_name -f path_of_backupfile . Note that you need to create an empty database before restoring into that..:) i forgot his once, so only added this. Next thing there is option restore in Pgadmin but sadly that does not work for plain type database dump that we took. So we now have a database and folder structure. next step is modify the openbravo properties file and set the source directory and database name accordingly(refer obwiki for these stuffs if u have doubts, or i ll put another blog about openberavo properties..:) ). So after modifying the properties file, just go ahead and do a complete build and you have the openbravo ready in your new environmentrevert back with questions if you have any, in fact i am waiting for many:) Filed under Openbravo Tagged with Openbravo Migration, Openbravo Restoration, Postgres Restore

Getting window and menu details from table name


January 5, 2011 by Shankar Balachandran Leave a comment Hi Folks, Its quite a tedious task in Openbravo to find a table associated with a window and to find the window , tab and menu for a given table. I have written a small function to provide the window name and menu names given a table name.
0 1 C R E A T EO RR E P L A C EF U N C T I O Ng e t _ d e t a i l s ( t a b _ n a m ec h a r a c t e rv a r y i n g ) 0 2 R E T U R N Sv o i dA S 0 3 $ B O D Y $D E C L A R E 0 4 w i n d o w _ i dv a r c h a r ( 3 2 ) ; 0 5 w i n d o w _ n a m ev a r c h a r ( 1 0 0 ) ; 0 6 m e n u _ i dv a r c h a r ( 3 2 ) ; 0 7 t m p _ m e nv a r c h a r ( 1 0 0 ) ;

fugoconsulting.wordpress.com/2011/01/

8/12

19/01/13
0 8 0 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 6 5 6 6 6 7 6 8 m e n u _ n a m ev a r c h a r ( 1 0 0 ) [ ] ; p a r _ i dv a r c h a r ( 3 2 ) ; in u m e r i c ; jn u m e r i c ; M e n uv a r c h a r ( 2 5 0 ) ; B E G I N i : = 0 ; j : = 0 ; M e n u : = ' M e n u:O p e n b r a v o ' ; -g e tw i n d o wc o r r e s p o n d i n gt ot a b l e

2011 January Fugo Consulting

R a i s eN o t i c e' T a b l eD e t a i l s ' ; R a i s eN o t i c e' T a b l eN a m e:% ' , t a b _ n a m e ; s e l e c ta . a d _ w i n d o w _ i d , b . n a m ei n t ow i n d o w _ i d , w i n d o w _ n a m e f r o ma d _ t a b l ea , a d _ w i n d o wbw h e r ea . t a b l e n a m e = t a b _ n a m ea n da . a d _ w i n d o w _ i d = b . a d _ w i n d o w _ i d ; R a i s eN o t i c e' W i n d o wD e t a i l s ' ; R a i s eN o t i c e' W i n d o wI dM a p p e d:% ' , w i n d o w _ i d ; R a i s eN o t i c e' W i n d o wM a p p e d:% ' , w i n d o w _ n a m e ; s e l e c ta d _ m e n u _ i d , n a m ei n t om e n u _ i d , t m p _ m e n f r o ma d _ m e n uw h e r ea d _ w i n d o w _ i d = w i n d o w _ i d ; m e n u _ n a m e [ i ] = t m p _ m e n ; R a i s eN o t i c e' M e n uD e t a i l s ' ; R a i s eN o t i c e' M e n uI d:%' , m e n u _ i d ; R a i s eN o t i c e' M e n uN a m e:%' , m e n u _ n a m e [ i ] ; s e l e c tp a r e n t _ i di n t op a r _ i df r o ma d _ t r e e n o d ew h e r en o d e _ i d = m e n u _ i d ; w h i l en o tp a r _ i d = ' 0 'l o o p i : = i + 1 ; R a i s eN o t i c e' ' ; R a i s eN o t i c e' P a r e n tM e n uD e t a i l s ' ; R a i s eN o t i c e' ' ; R a i s eN o t i c e' A b o v eP a r e n ti d% ' , p a r _ i d ; s e l e c ta d _ m e n u _ i d , n a m ei n t om e n u _ i d , t m p _ m e nf r o ma d _ m e n uw h e r ea d _ m e n u _ i d = p a r _ i d ; m e n u _ n a m e [ i ] = t m p _ m e n ; R a i s eN o t i c e' L e v e l%M e n uN a m e% ' , i , m e n u _ n a m e [ i ] ; s e l e c tp a r e n t _ i di n t op a r _ i df r o ma d _ t r e e n o d ew h e r en o d e _ i d = m e n u _ i d ; R a i s eN o t i c e' A b o v eP a r e n ti d% ' , p a r _ i d ; e n dl o o p ; R a i s eN o t i c e' R e s u l t s ' ; R a i s eN o t i c e' ' ; R a i s eN o t i c e' L e v e l%i st h es u m m a r yl e v e lm e n ua n di t sn a m ei s% ' , i , m e n u _ n a m e [ i ] ; R a i s eN o t i c e' R e q i u r e dM e n ui s% ' , m e n u _ n a m e [ 0 ] ; R a i s eN o t i c e' ' ; w h i l en o ti & a m p ; l t ; 0l o o p t m p _ m e n : = m e n u _ n a m e [ i ] ; M e n u : = M e n u | | '& a m p ; g t ;' ; M e n u : = M e n u | | t m p _ m e n ; j : = j + 1 ; i : = i 1 ;

6 9 e n dl o o p ; 7 0 7 1 R a i s eN o t i c e' % ' , M e n u ; 7 2 r e t u r n ; 7 3 E N D ; $ B O D Y $ 7 4 L A N G U A G E' p l p g s q l 'V O L A T I L E

provide the table name as argument for the function and run it in pgadmin using select. eg. select get_details(c_order) Hope its helpful to you. We will soon publish a way to integrate it within the application itself..:) Happy Working

Filed under Openbravo Tagged with openbravo menu information from table name, window details from table

Openbravo ERP 2.50 installation steps in ubuntu (default installation)


January 5, 2011 by Shankar Balachandran 3 Comments Hi Folks, There are n number of ways presented in Openbravo community to try or work with Openbravo ERP. But I felt most of them were too big for novices. So I have presented my compiled version of installing Openbravo in Ubuntu. There is a virtual box appliance that is far more easier to install fugoconsulting.wordpress.com/2011/01/ 9/12

19/01/13

2011 January Fugo Consulting

novices. So I have presented my compiled version of installing Openbravo in Ubuntu. There is a virtual box appliance that is far more easier to install than this, but lemme get to its disadvantages in a later post. Adding canonical partner repositories. $ sudo gedit /etc/apt/sources.list In the file that opens up add the following lines, deb http://archive.canonical.com/ubuntu karmic partner deb-src http://archive.canonical.com/ubuntu karmic partner Installing and Deploying the Application $ sudo apt-get update $ sudo apt-get install openbravo-erp This will install openbravo cluster,apache tomcat,postgres. Openbravo uses its own properties so the post numbers are not the default ones. To run the application, type the follwing in the browser menu. http://localhost/openbravo User Credentials: Username: Openbravo Password: openbravo Other Options: Creating Backup $ sudo /etc/init.d/openbravo-erp stop $ cd /opt $ tar cvzf OpenbravoERP-2.50.tar.gz OpenbravoERP-2.50 Restoring from the backup $ sudo /etc/init.d/openbravo-erp stop $ cd /opt $ rm $ tar xvzpf OpenbravoERP-2.50.tar.gz $ sudo /etc/init.d/openbravo-erp start Uninstall There are two options available to uninstall. we can update the database to the recent level or leave it to the last compiled state. Uninstall maintaining the database $ sudo apt-get remove openbravo-erp Uninstall without maintaining the database $ sudo apt-get remove purge openbravo-erp Startup Options Openbravo is configured to automatically start at run-time. but in case its not in a dedicated server, we can change those options To disable startup at boot time: $ update-rc.d -f openbravo-erp remove
fugoconsulting.wordpress.com/2011/01/ 10/12

19/01/13

2011 January Fugo Consulting

Manually starting openbravo: $ sudo /etc/init.d/openbravo-erp start Enable start up at boot time: $ update-rc.d openbravo-erp defaults Hope this serves as a small window to make you look through the Openbravo Universe. Filed under Openbravo Tagged with Openbravo Appliance Stack Installation Ubuntu, Openbravo Installation in Ubuntu

Openbravo shortcuts
January 5, 2011 by Shankar Balachandran 1 Comment Hi Folks, I have been working with Openbravo for quite a while and with fairness to all the other ERPs, Openbravo is a good look and feel providing ERP. I used good look and feel instead of good user interface because User interface is the ease with which the customers acquaint themselves with the application. In that sense the last thing that a guy who is recording a sales order would want is the mouse. Its such a world that every little second delay could rob you off a customer. With a feature rich application like Openbravo lots of navigations is required. Though the developers dont feel the delay, the customers are robbed off quite a few vital seconds. This is where the shortcuts come into place. wellnot all are required for all, some meant at developers alone and others at the customer alone, but may be getting used to the basic ones will save a lot of dwell time for both. CTRL+M move the focus to the menu CTRL+Shift+M expand or collapse the menu by pressing. After this action, the focus will be placed on the menu CTRL+U access the user/role window where one can switch roles and defaults CTRL+Q logout CTRL+I open the About window CTRL+H open the Help window CTRL+R refresh the current frame CTRL+Shift+Backspace navigate back to the previous window F8 show the Alert Management window F9 expand/collapse the left menu panel using TAB and Shift+TAB keys you can navigate back and forth between input fields CTRL+G toggle between Grid View and Form View CTRL+N invoke the Create New Record command CTRL+S invoke the Save Record command CTRL+Shift+S invoke the Save and New command CTRL+D invoke the Delete Record command CTRL+Z invoke the Undo command CTRL+A invoke the Attach a File command CTRL+F invokes the Search Records command CTRL+Home invokes the Go to First Record command CTRL+End invoke the Go to Last Record command CTRL+ArrowLeft invokes the Go Back One Record command CTRL+ArrowRight invokes the Go Forward One Record command
fugoconsulting.wordpress.com/2011/01/ 11/12

19/01/13

2011 January Fugo Consulting

F10 moves the focus to the tab region; from there you can move through tabs using the TAB or Shift+TAB keys CTRL+L invokes the Linked Items command Arrow keys navigate through records within Grid View pressing ArrowUp and ArrowDown Buttons that have a letter underlined are accessible using the ALT+ combination I remember people saying its not enough if you do hard work, but you should do smartwork..:). Not sure thats exactly, but I assumed its saving time like this..:) Filed under Openbravo Tagged with Openbravo made easy, Openbravo Shortcuts, Shortcuts in Openbravo Archives May 2012 (3) April 2012 (1) March 2012 (1) December 2011 (4) October 2011 (2) August 2011 (1) July 2011 (5) June 2011 (12) May 2011 (8) April 2011 (3) March 2011 (4) February 2011 (1) January 2011 (9) November 2010 (1) October 2010 (1) August 2010 (2) June 2010 (1) May 2010 (1) April 2010 (3) March 2010 (1) Blog at WordPress.com. Theme: Enterprise by StudioPress.

fugoconsulting.wordpress.com/2011/01/

12/12

Вам также может понравиться