Creating a new entity

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Creating a new entity

advait75
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.
Reply | Threaded
Open this post in threaded view
|

AW: Creating a new entity

Oliver Thoms
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.

Reply | Threaded
Open this post in threaded view
|

Re: Creating a new entity

Jacques Le Roux
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.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Creating a new entity

advait75
Jacques,

Thank you very much for the pointer.


Jacques Le Roux wrote
The opensourcestrategies tutorial is a bit old now, you should better use
http://docs.ofbiz.org/x/UBE

Jacques

From: "Oliver Thoms" <oth@unitb-consulting.de>
> 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:advait@retailwave.com]
> Gesendet: Montag, 16. November 2009 19:09
> An: user@ofbiz.apache.org
> 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.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: AW: Creating a new entity

advait75
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.

Oliver Thoms wrote
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:advait@retailwave.com]
Gesendet: Montag, 16. November 2009 19:09
An: user@ofbiz.apache.org
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.