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

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

Search

QA Sampledata Export

HOW TO OBTAIN POS2.SAMPLEDATA

First step to obtain POS2 Sampledata is to download & copy the following 2 files to your desktop:

And create a new POS2 environment in order to avoid unnecessary data previously created.

Once we have a clean environment, execute the following command in “openbravo” folder:

cp /home/openbravo/Desktop/dbsourcemanager.jar src-db/database/lib/dbsourcemanager.jar && patch -p1 < /home/openbravo/Desktop/sampleDataExtension.diff

The command will create the following files in your environment, that are strictly necessary to export the required sampledata:

Wiki NecessaryFilesToExport.png


OPTIONAL: In order to ease which sampledata (XML Table) is the one we need, it is recommended to make an export with the clean environment first and commit the new files created.

To do it, first create a branch for openbravo/modules/pos2.sampledata and switch to it, then return to openbravo folder and execute the following command:

 ant export.sample.data.extension -DdataSetName="POS2 SampleData" -Dclient="The White Valley Group" -Dmodule=org.openbravo.pos2.sampledata

XML tables will be updated in “org,openbravo.pos2.sampledata” folder, add all changes and create a commit (DO NOT PUSH IT).


Now, it’s all ready to export sampledata BUT take in account that it can be 2 possible scenarios:

Table EXISTS in pos2.sampledata Dataset

The easier scenario, in this case sampledata can be easily obtained following the next steps:

ant export.sample.data.extension -DdataSetName="POS2 SampleData" -Dclient="The White Valley Group" -Dmodule=org.openbravo.pos2.sampledata

XML tables will be updated in “org,openbravo.pos2.sampledata” folder, commit and push the required tables.

Table DOES NOT exist in pos2.sampledata Dataset

In this case, it will be necessary to create them following this steps:

Wiki DatasetTableInfo.png

Wiki ModuleDevelop.png

Wiki DatasetTable.png

Wiki DataAccessLevel.png

Now, the required tables will be exported in pos2.sampledata, but first it is necessary to go to the terminal, and in openbravo folder execute the following command:

ant export.database

Go to http://localhost:8080/openbravo/ , apply the necessary changes and verify in POS2 if changes are the desired ones.

Finally, execute the command to obtain the sampledata:

ant export.sample.data.extension -DdataSetName="POS2 SampleData" -Dclient="The White Valley Group" -Dmodule=org.openbravo.pos2.sampledata

XML tables will be updated in “org,openbravo.pos2.sampledata” folder, commit and push the required tables.

Retrieved from "http://wiki.openbravo.com/wiki/QA_Sampledata_Export"

This page has been accessed 78 times. This page was last modified on 16 May 2022, at 08:34. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.