Hi, everyone on this list has been very helpful with my quest to master ofbiz. Today I'd like to ask for help with something I'm stuck on.
I'm trying to make my first ofbiz app after going through the tutorials, reading, etc. I decided to use the ecommerce app as a source to get design ideas for my app, and my first step was to look at a product page in the web catalog so that I could see how items are added to the shopping cart. I went to my web store/catalog and took a look at the URL: http://localhost:8080/ecommerce/control/product/~category_id=PROMOTIONS/~product_id=WG-9943 This told me that I needed to look in the controller.xml file of the ecommerce application for mapping to a certain screen. This lead me to the "product" screen in the CatalogScreens.xml file (/applications/ecommerce/widget/CatalogScreens.xml). Where I'm stuck is on the following line (line 248): <include-screen name="${detailScreen}"/> This tells me that a screen is being included that has the value of ${detailScreen} but I do not know/understand where this value is being set. I'm thinking that if I knew this value I could take a look at the xml for the screen and keep digging further and further down until I understand how the ecommerce application works. Could someone please help me with what I'm missing here? Where is this value set? I of course did a text search for this string in my eclipse workspace but I could only find references to this string, no definitions. Any help is again greatly appreciated. |
Hi, I did the same as you and searched all the files for 'detailScreen'
and between the references you mention there is the file product.bsh at line 115: context.put("detailScreen", detailScreen); in he same file, you can see how the variable detailScreen is created Regards, Hans On Sun, 2008-01-27 at 00:54 -0800, Peter Felts wrote: > Hi, everyone on this list has been very helpful with my quest to master ofbiz. Today I'd like to ask for help with something I'm stuck on. > > I'm trying to make my first ofbiz app after going through the tutorials, reading, etc. > > I decided to use the ecommerce app as a source to get design ideas for my app, and my first step was to look at a product page in the web catalog so that I could see how items are added to the shopping cart. I went to my web store/catalog and took a look at the URL: > > http://localhost:8080/ecommerce/control/product/~category_id=PROMOTIONS/~product_id=WG-9943 > > This told me that I needed to look in the controller.xml file of the ecommerce application for mapping to a certain screen. This lead me to the "product" screen in the CatalogScreens.xml file (/applications/ecommerce/widget/CatalogScreens.xml). > > Where I'm stuck is on the following line (line 248): > > <include-screen name="${detailScreen}"/> > > This tells me that a screen is being included that has the value of ${detailScreen} but I do not know/understand where this value is being set. I'm thinking that if I knew this value I could take a look at the xml for the screen and keep digging further and further down until I understand how the ecommerce application works. > > Could someone please help me with what I'm missing here? Where is this value set? I of course did a text search for this string in my eclipse workspace but I could only find references to this string, no definitions. > > Any help is again greatly appreciated. > > AntWebsystems.com: Quality OFBiz services for competitive rates..... |
In reply to this post by Peter Felts
Deafult screen is set in product.bsh as productdetail screen. However,
you can override this screen in the product->Content of catalog manager application. Thanks, Raj Peter Felts wrote: > Hi, everyone on this list has been very helpful with my quest to master ofbiz. Today I'd like to ask for help with something I'm stuck on. > > I'm trying to make my first ofbiz app after going through the tutorials, reading, etc. > > I decided to use the ecommerce app as a source to get design ideas for my app, and my first step was to look at a product page in the web catalog so that I could see how items are added to the shopping cart. I went to my web store/catalog and took a look at the URL: > > http://localhost:8080/ecommerce/control/product/~category_id=PROMOTIONS/~product_id=WG-9943 > > This told me that I needed to look in the controller.xml file of the ecommerce application for mapping to a certain screen. This lead me to the "product" screen in the CatalogScreens.xml file (/applications/ecommerce/widget/CatalogScreens.xml). > > Where I'm stuck is on the following line (line 248): > > <include-screen name="${detailScreen}"/> > > This tells me that a screen is being included that has the value of ${detailScreen} but I do not know/understand where this value is being set. I'm thinking that if I knew this value I could take a look at the xml for the screen and keep digging further and further down until I understand how the ecommerce application works. > > Could someone please help me with what I'm missing here? Where is this value set? I of course did a text search for this string in my eclipse workspace but I could only find references to this string, no definitions. > > Any help is again greatly appreciated. > > > |
In reply to this post by Peter Felts
Ah, that's what I get for only searching .xml files...
Thanks guys. ----- Original Message ---- From: Hans Bakker <[hidden email]> To: [hidden email] Sent: Sunday, January 27, 2008 1:13:25 AM Subject: Re: Another newbie question... I'm full of them Hi, I did the same as you and searched all the files for 'detailScreen' and between the references you mention there is the file product.bsh at line 115: context.put("detailScreen", detailScreen); in he same file, you can see how the variable detailScreen is created Regards, Hans On Sun, 2008-01-27 at 00:54 -0800, Peter Felts wrote: > Hi, everyone on this list has been very helpful with my quest to master ofbiz. Today I'd like to ask for help with something I'm stuck on. > > I'm trying to make my first ofbiz app after going through the tutorials, reading, etc. > > I decided to use the ecommerce app as a source to get design ideas for my app, and my first step was to look at a product page in the web catalog so that I could see how items are added to the shopping cart. I went to my web store/catalog and took a look at the URL: > > http://localhost:8080/ecommerce/control/product/~category_id=PROMOTIONS/~product_id=WG-9943 > > This told me that I needed to look in the controller.xml file of the ecommerce application for mapping to a certain screen. This lead me to the "product" screen in the CatalogScreens.xml file (/applications/ecommerce/widget/CatalogScreens.xml). > > Where I'm stuck is on the following line (line 248): > > <include-screen name="${detailScreen}"/> > > This tells me that a screen is being included that has the value of ${detailScreen} but I do not know/understand where this value is being set. I'm thinking that if I knew this value I could take a look at the xml for the screen and keep digging further and further down until I understand how the ecommerce application works. > > Could someone please help me with what I'm missing here? Where is this value set? I of course did a text search for this string in my eclipse workspace but I could only find references to this string, no definitions. > > Any help is again greatly appreciated. > > -- AntWebsystems.com: Quality OFBiz services for competitive rates..... |
Free forum by Nabble | Edit this page |