Presentation is loading. Please wait.

Presentation is loading. Please wait.

Wizard to add new Fields Module Extension Module Webinar 21 st of January 2009.

Similar presentations


Presentation on theme: "Wizard to add new Fields Module Extension Module Webinar 21 st of January 2009."— Presentation transcript:

1 Wizard to add new Fields Module Extension Module Webinar 21 st of January 2009

2 Page 2 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Agenda Functionality and Demo15 min. Process and Tools5 min. Development Technique10 min. Q & A 30 min.

3 Page 3 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Agenda Functionality and Demo Process and Tools Development Technique Q & A

4 Page 4 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Goal: Make it easy for non-developers to extend Openbravo Model Wizard to add new Fields: Functional Highlights Functional Concepts: Simplified Openbravo Model Use Module Manager Console (MMC) for System Rebuild Solution Approach: Deliver as a Commercial Module Leverage on MDD for simplified development Integrate existing capabilities (DBSourceManager, MMC)

5 Page 5 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia DEMO Wizard to add new Fields: Functional Highlights

6 Page 6 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Agenda Functionality and Demo Process and Tools Development Technique Q & A

7 Page 7 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia History of the module Deliver as a commercial Module Why it is commercial? Focused on QuickStart instances Free for Professional Edition instances Lesson learnt: small effort and high value Next steps planned: graphical IDE to edit Openbravo Model

8 Page 8 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Functionality and Demo Process and Tools Development Technique Q & A Agenda

9 Page 9 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Wizard to add new Fields Development Approach: Technical Design User Interface Simplified Model DBSourceManager MMC

10 Page 10 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Wizard to add new Fields Development Approach: Technical Design User Interface Simplified Model - Simplified info to run the process - Persisted so it can be rerun MMC DBSourceManager

11 Page 11 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Wizard to add new Fields Development Approach: Technical Design User Interface Simplified Model - Simplified info to run the process - Persisted so it can be rerun - Window, Tab&Field - Display Logic - Validations - Rich&efficient MMC DBSourceManager

12 Page 12 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Wizard to add new Fields Development Approach: Technical Design User Interface Simplified Model - Read from Simplified Model - Update database - Export xml files MMC DBSourceManager - Simplified info to run the process - Persisted so it can be rerun - Window, Tab&Field - Display Logic - Validations - Rich&efficient

13 Page 13 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Wizard to add new Fields Development Approach: Technical Design User Interface Simplified Model MMC DBSourceManager - Read from Simplified Model - Update database - Export xml files - Simplified info to run the process - Persisted so it can be rerun - Window, Tab&Field - Display Logic - Validations - Rich&efficient - System rebuild - Server restart

14 Page 14 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Development Approach: code snippets, display logic

15 Page 15 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia private String createResultForNames(HttpServletResponse response, VariablesSecureApp vars, String colName) { String windowtabId = vars.getStringParameter("inpnewfWindowtabId"); NEWF_Windowtab windowTab = OBDal.getInstance().get(NEWF_Windowtab.class, windowtabId); String dbprefix = windowTab.getModule().getModuleDBPrefixList().get(0).getName().toString(); colName = colName.replace(" ", ""); StringBuffer result = new StringBuffer(); String dbcolumn_name = colName; String full_prefix = ""; if (windowTab.isExistingTab()) { full_prefix = "EM_" + dbprefix; } else { full_prefix = dbprefix; } if (!dbcolumn_name.toLowerCase().startsWith(full_prefix.toLowerCase() + "_")) { dbcolumn_name = full_prefix + "_" + dbcolumn_name; } if (dbcolumn_name.length() > 30) { dbcolumn_name = dbcolumn_name.substring(0, 29); } result.append("new Array(\"inpdbColumnName\", \"" + dbcolumn_name + "\")"); result.append(",new Array(\"inpcolumnName\", \"" + dbcolumn_name + "\")"); return result.toString(); } Development Approach: code snippets, callouts

16 Page 16 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Functionality and Demo Wrap-Up Process and Tools Development Technique

17 Page 17 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia Wizard to add new Fields Q & A http://forge.openbravo.com http://wiki.openbravo.com/wiki/ERP/2.50/Developers_Guide Ismael.ciordia@openbravo.com Next webinar: Initial Data Load February 4 th, 2010 at 4-5 PM (CET)

18 Page 18 Wizard to add new Fields -Extension Module Webinar-Openbravo, Ismael Ciordia


Download ppt "Wizard to add new Fields Module Extension Module Webinar 21 st of January 2009."

Similar presentations


Ads by Google