Hi,
I tried creating a new entity and adding screens that would list, add, create, edit and delete this entity. I did so by copying existing entities and screens. I made changes in the following files - applications/product/entitydef/EntityModel.xml applications/product/script/org/ofbiz/product/product/ProductServices.xml applications/product/widget/catalog/Menus.xml applications/product/servicedef/services.xml applications/product/widget/catalog/ProductScreens.xml applications/product/webapp/catalog/product/ProductForms.xml applications/product/webapp/catalog/WEB-INF/controller.xml However, when I try to access the page, I get the following error - org.ofbiz.webapp.control.RequestHandlerException: No definition found for view with name [] Can somebody please tell me if I'm missing any other file that I need to modify, or point me to a tutorial where I can learn how to create a new entity. I have already gone through the Hello World New App tutorial, but I dont see how to create a new entity and add screens to work with these new entities. It only shows how to extend existing entities. Thanks. |
Hello Adavit,
you have most likely some typos or similar in the references of requests ti screens and/or your screen definition. A great set of tutorials to build a new application for OFBiz: http://www.opensourcestrategies.com/ofbiz/tutorials.php Try "Hello World" 1-3 it shows the basic principals of Screens, Entities and how to set them up. Regards, Oliver -----Ursprüngliche Nachricht----- Von: advait75 [mailto:[hidden email]] Gesendet: Montag, 16. November 2009 19:09 An: [hidden email] Betreff: Creating a new entity Hi, I tried creating a new entity and adding screens that would list, add, create, edit and delete this entity. I did so by copying existing entities and screens. I made changes in the following files - applications/product/entitydef/EntityModel.xml applications/product/script/org/ofbiz/product/product/ProductServices.xml applications/product/widget/catalog/Menus.xml applications/product/servicedef/services.xml applications/product/widget/catalog/ProductScreens.xml applications/product/webapp/catalog/product/ProductForms.xml applications/product/webapp/catalog/WEB-INF/controller.xml However, when I try to access the page, I get the following error - org.ofbiz.webapp.control.RequestHandlerException: No definition found for view with name Can somebody please tell me if I'm missing any other file that I need to modify, or point me to a tutorial where I can learn how to create a new entity. I have already gone through the Hello World New App tutorial, but I dont see how to create a new entity and add screens to work with these new entities. Thanks. -- View this message in context: http://n4.nabble.com/Creating-a-new-entity-tp622277p622277.html Sent from the OFBiz - User mailing list archive at Nabble.com. |
Administrator
|
The opensourcestrategies tutorial is a bit old now, you should better use
http://docs.ofbiz.org/x/UBE Jacques From: "Oliver Thoms" <[hidden email]> > Hello Adavit, > > you have most likely some typos or similar in the references of requests ti > screens and/or your screen definition. > > > A great set of tutorials to build a new application for OFBiz: > > http://www.opensourcestrategies.com/ofbiz/tutorials.php > > Try "Hello World" 1-3 it shows the basic principals of Screens, Entities and > how to set them up. > > > Regards, > Oliver > > > > -----Ursprüngliche Nachricht----- > Von: advait75 [mailto:[hidden email]] > Gesendet: Montag, 16. November 2009 19:09 > An: [hidden email] > Betreff: Creating a new entity > > > Hi, > > I tried creating a new entity and adding screens that would list, add, > create, edit and delete this entity. I did so by copying existing entities > and screens. I made changes in the following files - > applications/product/entitydef/EntityModel.xml > applications/product/script/org/ofbiz/product/product/ProductServices.xml > applications/product/widget/catalog/Menus.xml > applications/product/servicedef/services.xml > applications/product/widget/catalog/ProductScreens.xml > applications/product/webapp/catalog/product/ProductForms.xml > applications/product/webapp/catalog/WEB-INF/controller.xml > > However, when I try to access the page, I get the following error - > > org.ofbiz.webapp.control.RequestHandlerException: No definition found for > view with name > > Can somebody please tell me if I'm missing any other file that I need to > modify, or point me to a tutorial where I can learn how to create a new > entity. I have already gone through the Hello World New App tutorial, but I > dont see how to create a new entity and add screens to work with these new > entities. > > Thanks. > -- > View this message in context: > http://n4.nabble.com/Creating-a-new-entity-tp622277p622277.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > |
Jacques,
Thank you very much for the pointer.
|
In reply to this post by Oliver Thoms
Hi Oliver,
Thanks for pointing me to the tutorials. I had to change a few things here and there to get it working with the latest version og OFBiz, but it works great and was able to complete the tutorial. Thanks again.
|
Free forum by Nabble | Edit this page |