Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007836Openbravo ERPZ. Otherspublic2009-02-26 11:472013-06-18 13:03
FrancescoFinamore 
mtaal 
hightrivialhave not tried
closedno change required 
20rPath Linux
pi 
 
Core
No
0007836: Create the file .obx
Hi guys :

I read on the wiki http://wiki.openbravo.com/wiki/Projects/Modularity/Developers_Guide#Publish_the_.obx_file_of_a_Module [^] but isn't clear how to create the file .obx for a new module.
250MP1
Issue History
2009-02-26 11:47FrancescoFinamoreNew Issue
2009-02-26 11:47FrancescoFinamoreAssigned To => rafaroda
2009-03-04 08:42rafarodaAssigned Torafaroda => rachelJohnston
2009-03-04 08:42rafarodaPrioritynormal => high
2009-03-04 08:42rafarodaStatusnew => acknowledged
2009-03-04 08:42rafarodaCategory00. Application dictionary => D. Documentation
2009-04-23 16:05psarobeTag Attached: 250MP1
2009-04-27 15:31pjuvaraAssigned TorachelJohnston => mtaal
2009-04-27 15:33mtaalStatusacknowledged => scheduled
2009-04-27 15:33mtaalfix_in_branch => pi
2009-04-27 15:34mtaalNote Added: 0015793
2009-04-27 15:34mtaalStatusscheduled => feedback
2009-04-28 10:19FrancescoFinamoreNote Added: 0015825
2009-04-28 11:11mtaalNote Added: 0015828
2009-04-28 11:14mtaalStatusfeedback => scheduled
2009-04-28 11:16mtaalNote Added: 0015830
2009-04-28 11:16mtaalStatusscheduled => resolved
2009-04-28 11:16mtaalResolutionopen => no change required
2009-04-28 11:16mtaalFixed in SCM revision => .
2009-04-28 11:16mtaalfix_in_branchpi =>
2009-04-28 11:33mtaalNote Added: 0015833
2009-04-28 11:52plujanRegression testing => No
2009-04-28 11:52plujanStatusresolved => closed
2009-04-28 11:52plujanNote Added: 0015834
2009-04-29 00:00anonymoussf_bug_id0 => 2783242
2009-11-09 15:01jpabloaeProjectOpenbravo ERP => Documentation
2009-11-10 12:56jpabloaeCategoryD. Documentation => ERP Developer's Guide
2011-06-20 15:41jpabloaeCategoryERP Developer's Guide => ERP Developers Guide
2013-06-18 13:00psanjuanProjectDocumentation => Openbravo ERP
2013-06-18 13:03psanjuanCategoryERP Developers Guide => Z. Others

Notes
(0015793)
mtaal   
2009-04-27 15:34   
Hi Fransesco,
This issue is already a few months I see. There is a new developers guide:
http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide_Index [^]

Can you check if it gives better info? Especially the first howto?

gr. Martin
(0015825)
FrancescoFinamore   
2009-04-28 10:19   
Ok now i have created my first module , with one table and a simple window with one tab linked to the table , it works but when i go to launch ant export database -Dmodule=org.cbt.examples i have this error :
Submodel loaded
Path: /home/finamore/openbravowk/ob250/openbravo/modules/org.cbt.examples/src-db/database/model
[exportdatabase] DataSet(0) (name: AD)
Exporting module: My first module
Database [name=PostgreSql server; 1 tables; 0 sequences; 0 views; 0 functions; 0 triggers]
Path: /home/finamore/openbravowk/ob250/openbravo/modules/org.cbt.examples/src-db/database/sourcedata
Exporting table: AD_Process to module My first module
Exporting table: AD_Element to module My first module
[exportdatabase] java.lang.NullPointerException
[exportdatabase] at org.apache.ddlutils.io.DataWriter.write(DataWriter.java:384)
[exportdatabase] at org.apache.ddlutils.io.DataWriter.write(DataWriter.java:602)
[exportdatabase] at org.apache.ddlutils.io.DatabaseDataIO.writeDataForTableToXML(DatabaseDataIO.java:487)
[exportdatabase] at org.openbravo.ddlutils.task.ExportDatabase.doExecute(ExportDatabase.java:263)
[exportdatabase] at org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:116)
[exportdatabase] at org.openbravo.ddlutils.task.BaseDalInitializingTask.execute(BaseDalInitializingTask.java:79)
[exportdatabase] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[exportdatabase] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[exportdatabase] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exportdatabase] at java.lang.reflect.Method.invoke(Method.java:597)
[exportdatabase] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exportdatabase] at org.apache.tools.ant.Task.perform(Task.java:348)
[exportdatabase] at org.apache.tools.ant.Target.execute(Target.java:357)
[exportdatabase] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[exportdatabase] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[exportdatabase] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[exportdatabase] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[exportdatabase] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
[exportdatabase] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[exportdatabase] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
[exportdatabase] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exportdatabase] at java.lang.reflect.Method.invoke(Method.java:597)
[exportdatabase] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[exportdatabase] at org.apache.tools.ant.Task.perform(Task.java:348)
[exportdatabase] at org.apache.tools.ant.Target.execute(Target.java:357)
[exportdatabase] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[exportdatabase] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[exportdatabase] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[exportdatabase] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[exportdatabase] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[exportdatabase] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[exportdatabase] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[exportdatabase] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[exportdatabase] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

I controlled the result of the export and the xml of the table is correct but under sourcedata there is only one file AD_element.xml and it is empty.
(0015828)
mtaal   
2009-04-28 11:11   
Hi Fransesco,
It seems that this is something else. Can you open a new issue for this?
Thanks!

gr. Martin
(0015830)
mtaal   
2009-04-28 11:16   
Is closed as a new issue is entered for the obstacle encountered.

gr. Martin
(0015833)
mtaal   
2009-04-28 11:33   
Hi Fransesco,
Correction, I think the issue you are encountering has been solved a few minutes back:
https://issues.openbravo.com/view.php?id=8566 [^]

So no need to enter a new issue afaics.
You can run:
ant export.database
without the -D option that should work.

gr. Martin
(0015834)
plujan   
2009-04-28 11:52   
It was a documentation issue.