Re: redirect user to specific tab or sub-menu
See how it is done for party and content apps. On Mon, 24 Jun 2013 11:45:46 +0530, Kushal Darji kushalda...@gmail.com wrote: Hello, What i need is, for e.g. when user select manufacturing tab from applications, user will directly redirect to MRP tab. So anyone can help me, how can i redirect user to directly any specific sub-menu. Thanx in Advance. -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Virtual variant products with quantity in product association
There are quantity fields in ProductAssoc and ProductCategoryMember entities, I wonder what they are for. Didn't dig into the code, thought someone might already know and can help. On Thu, 20 Jun 2013 06:04:59 +0530, Scott Gray scott.g...@hotwaxmedia.com wrote: Hi Robert, I don't believe the quantity field has a use in virtual/variant associations (but I could be wrong). I think you'd want a setup similar to the following: - A product for the supplier that sells double packs (Product A) - A product for the suppler that sells single packs (Product B) - A product that combines 2 x Product B into a single product, this would have a product type of Marketing Package Pick and would have a component product association to Product B with a quantity of 2 (Product C) - A virtual product that has as variants Product A and product C (Product D) Because you're buying Product B and combining it into a single double pack product it makes sense to have the single and double as separate products I think, one for purchasing and the other for selling. Regards Scott On 19/06/2013, at 9:46 AM, Robert G. wrote: I thought that it is difficult, or maybe not out of the box. But maybe someone can explain me the thing concerning the quantity within the productassociation. Is this just for packaging and does not influence the price? or what is the base idea? thanks a lot! -- View this message in context: http://ofbiz.135035.n4.nabble.com/Virtual-variant-products-with-quantity-in-product-association-tp4642095p4642152.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Multitenant ecommerce support
Hello All, I was reading through https://cwiki.apache.org/confluence/display/OFBIZ/Multitenancy+support, and saw this: Currently the Ecommerce for Tenants is not supported. I was wondering, is it old information which was missed while updating, or it it still not supported? Someone using the feature? -- Thanks Regards Atul Vani
Re: seeking upgrade instructions 11.04.01?
You might have used svn export or downloaded the zipped source. To be able to svn update, you need a working copy, which you can get by svn checkout. Get svn URLs from here: http://ofbiz.apache.org/source-repositories.html On Fri, 31 May 2013 07:40:47 +0530, Phillip Rhodes rhodeb...@gmail.com wrote: Hi Everyone! I am looking to upgrade my ofbiz There is revision-of-11.04.01.txt file, and it's in a folder called apache-ofbiz-11.04.01 I found some instructions that said to do a svn update, but since there are no .svn file in my install, this didn't work.. I see there is a mergefromtrunk.sh script in my project directory, is there any documentation out there on how to use this? Thanks! -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: How to set log levels in 12.0
Is this a bug? On Wed, 29 May 2013 09:12:38 +0530, Pravin Patil pravin.pa...@hotwaxmedia.com wrote: change threshold value in appender named stdout Kind Regards Pravin Patil HotWax Media Pvt Ltd. On 05/29/2013 09:08 AM, Pravin Patil wrote: Hi skip, try this - go to log4j.xml and set the threshold value to error HTH Kind Regards Pravin Patil HotWax Media Pvt Ltd. On 05/29/2013 02:33 AM, Skip wrote: I have changed print.info and print.timing to =false in debug.properties. However, I am still getting tons of INFO messages in the log. Is there some additional thing I have to do? -- Using Opera's revolutionary email client: http://www.opera.com/mail/
View Relations page errors out
Didn't get a chance to look into it yet, but there is some bug due to recent changes. https://demo-stable.ofbiz.apache.org:8443/webtools/control/ViewRelations?entityName=Product -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: View Relations page errors out
Thanks Adrian. On Wed, 08 May 2013 17:57:38 +0530, Adrian Crum adrian.c...@sandglass-software.com wrote: Fixed in revision 1480248. -Adrian On 5/8/2013 12:59 PM, Adrian Crum wrote: Thank you for reporting it. I will take care of it. -Adrian On 5/8/2013 12:55 PM, Atul Vani wrote: Didn't get a chance to look into it yet, but there is some bug due to recent changes. https://demo-stable.ofbiz.apache.org:8443/webtools/control/ViewRelations?entityName=Product -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Ofbiz Newbie Needs Guidance
Extending it is a far better option and must work for you, I believe. But if for some reason that doesn't happen, you might wanna try moqui instead of cleaning all the stuff from OFBiz. http://www.moqui.org/ On Wed, 08 May 2013 06:54:36 +0530, Paul Foxworthy p...@cohsoft.com.au wrote: Hi Arpit, If you use just the framework part of OFBiz, you can create pretty much any web application. You can think of the framework as another web application framework, something like Spring, Struts and so on. For example, Atlassian's Jira product is not in any way an ERP system, but uses the OFBiz framework. If you like what you've seen of the OFBiz way, using the framework is a possibility, and yes, you could reinvent a different ERP system based on the framework. That said, I find it hard to believe that nothing in OFBiz would be relevant to an ERP application. Surely your application will deal with Parties, Products, Services, Orders, Invoices, Payments, Inventory and so on. I suggest you reconsider *extending* OFBiz instead of rewriting it. If you haven't read The Data Model Resource Book (https://cwiki.apache.org/OFBADMIN/ofbiz-related-books.html), I strongly suggest you do before embarking on defining your entities, and that applies whether or not you do decide to rewrite. OFBiz's data model is based on the book, although there are differences. Have you looked at the services in OFBiz separately from the screens in the demo application? The demo is just that, a demo and not a finished application. It tends to expose all the knobs and dials when for a given application you would be happy to hide away some portion of them. So I would expect that you would vary screens, remove some, and change the workflow of others. But the screens would call on services, and there would be less changes there. I understand you would want your own entities, and that is fine. But if they have relationships to standard OFBiz entities like Party, why not store them in the ofbiz database? As for working with your DBA: model the entities first. OFBiz will automatically create tables to persist entity data, so there should be less work for your DBA to do. The Data Model Resource Book will give you some ideas about conventions. There are conventions for types of entities and additional attributes, see the discussion at https://cwiki.apache.org/OFBTECH/general-entity-overview.html and look for examples in OFBiz. Hope that helps. Regards Paul Foxworthy Arpit Gadle wrote Hello Everyone, I am a newbie to Ofbiz. I am having 4 yrs of exp in Java Technology and MySQL database. Recently I have been assigned a task by the company to develop ERP using Ofbiz. I had installed and developed a demoapp ofbiz component successfully and also configured Ofbiz installation with MySQL. I had gone through the ofbiz core components and found that I cannot reuse and also cannot extend those components as our requirement is very complex and flexible. I would like to ask you guys few things 1) Can I develop whole new ERP from ground-zero using Ofbiz (as i created demoapp)? 2) How can Ofbiz will help me as I won't be using any core components? 3) Can I create and use a separate database for the development other than ofbiz,ofbizolap and ofbiztenant? 4) We are having a MySQL DBA with us who will be designing the new ERP database. Are there any rules or conventions to follow when working with Ofbiz. I apologize If I had made some mistakes or asked some questions not pertaining to this mailing list. Any help is greatly appreciated Thanks Regards, Arpit Gadle - -- Coherent Software Australia Pty Ltd http://www.coherentsoftware.com.au/ Bonsai ERP, the all-inclusive ERP system http://www.bonsaierp.com.au/ -- View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-Newbie-Needs-Guidance-tp4641068p4641075.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: second website
Didn't get your purpose but a small thing to do would be to have something like ecommerce clone app. Override only what needs to be changed and use a different theme. With this both sites can be kept on the same server. To have them on different servers, you can just use the same database by as mentioned by Jacques. On Tue, 23 Apr 2013 17:47:53 +0530, Heidi Dehaes info.ola...@gmail.com wrote: Hi, And i have to copy the ecommerce subdirectory with files to a second mount point, i guess? Eric, Heidi 2013/4/23 Jacques Le Roux jacques.le.r...@les7arts.com: Hi Heidi, It's as easy as setting the entittyengine.xml fil to point to the same DB Jacques From: Heidi Dehaes info.ola...@gmail.com Hello, I have a ofbiz11.0.4 version on Debian Linux with one database. I want to know how to setup a second website (webshop) with the same database only a different layout. I have a second IP address available. Regards, Eric -- Olagos bvba http://www.olagos.eu http://www.olagos.com http://www.olagos.be http://www.olagos.nl Olagos team Kerkstraat 34 2570 Duffel Belgium -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Job Scheduling
Check out data setup of Temporal Expressions and how they are used. On Fri, 19 Apr 2013 21:27:04 +0530, Jeremy Olmstead jolmste...@gmail.com wrote: Any help with this would be appreciated...how can I schedule a job in OFBiz to run Monday-Friday once per day (maybe even skip holidays, if possible)? Thanks, Jeremy Olmstead -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Environment Specific Configurations - Best practices
If it's data that is different, then you can have different ant readers. If it's the code or properties files, then you can maintain patches. On Sat, 20 Apr 2013 02:31:16 +0530, Matthew Bertolini mbertol...@mypublisher.com wrote: I was wondering how everyone tackles environment specific configurations in OFBiz. We deploy the same codebase to multiple environments (local, development, QA, and production) and we have different settings for things like database connections, server settings, security settings, etc. What are the best practices for maintaining different settings for each environment? In other Java applications I maintain, I have an environment variable (app.env) that I set a runtime with something like 'dev' or 'prod' which get used to load properties files named 'settings_dev.properties' and 'settings_prod.properties'. In the code (or in a spring file) can can substitute the ${app.env} with the environment name and it will load the correct configuration. Is something like this possible with OFBiz configuration/XML files? Is there a pre-baked solution already in place? Thanks, Matt Bertolini -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: How to build the latest version from trunk?
Try building it using the internal ant. $./ant What's the version of ant and jdk on your system? On Tue, 16 Apr 2013 07:59:01 +0530, Ted Byers r.ted.by...@gmail.com wrote: I set up a virtual machine running the latest Suse (version 12.3), and obtained ofbiz, using svn from trunk. I set up everything as usual, including configuring it to use MySQL, and placing the latest mysql connector in the jdbc directory. However, no matter how I invoke ant, I get an error on line 23 of build.xml, to the effect that one can not declare any more prefixes in this context. This is regardless of whether I just invoke 'ant' or 'ant run-install' So what changed since I built from trunk last. Or does ofbiz not build on Suse 12.3? Or rather, does it not like the latest versions of the JDK and ant that are installed on the latest distribution of Suse? Any help would be appreciated. Thanks Ted -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Shipping configuration in OFBIZ
Carrier is a Party just like others with a PartyRole of carrier. On Fri, 12 Apr 2013 10:37:02 +0530, Deepak Agarwal dagarwa...@gmail.com wrote: First create shipment method : Catalog - Shipping then attach a carrier to it and then go to store and attach the above combination to store. and then give the estimates. On Fri, Apr 12, 2013 at 7:44 AM, Ofbiz 开发 phoneme...@gmail.com wrote: Hi Atul, Sorry to bother you again. I have read the Wiki document and trying to play around in the back office, but I can't find a place to create a new carrier, I can only edit the existing shipping methods within existing carrier, e.g. UPS. What I try to do is be able to create a new courier and configure its shipping method and cost etc in back office. Is this possible without any code change please? Thanks very much. On Thu, Apr 4, 2013 at 7:51 AM, Ofbiz 开发 phoneme...@gmail.com wrote: Thank you very much Nandani and Atul, I found it under Catalog Manager - Stores - Shipping Estimates. I will have a look. Thanks! On Wed, Apr 3, 2013 at 6:49 PM, Atul Vani atul.v...@hotwaxmedia.com wrote: You can see some demo data from here https://cwiki.apache.org/**OFBIZ/third-party-payment-and-** shipment-configuration.html https://cwiki.apache.org/OFBIZ/third-party-payment-and-shipment-configuration.html Then you can refer more data with advanced options from special purpose ecommerce component. -- Thanks Regards Atul Vani On Wed, 03 Apr 2013 10:13:42 +0530, Nandani Aggarwal nandani.aggar...@paxcel.net wrote: Ofbiz calculates shipping cost using method calcShipmentCostEstimate in ShipmentServices.java or you may use getShipEstimate in ShippingEvents.java. Shipping charges are configured in store-Shipping estimates --Nandani On Wed, Apr 3, 2013 at 7:38 AM, Ofbiz 开发 phoneme...@gmail.com wrote: Hi everyone, I am trying to configure the shipping method in OFBIZ but I am a bit lost. Is there any tutorial or documentation of how to use it / set it up please? How does the eCommerce application use it to calculate the shipping cost of an order please? Thank you very much! Kind Regards Fong -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Problem in approving internal requests thru order manager after MRP run
That explains the incidence (issue! I disagree) well, thanks. On Mon, 08 Apr 2013 13:12:11 +0530, Sharan-F sharan.f...@gmail.com wrote: Hi Atul Thanks very much for your response on this and I’ve taken another look at one of the screens that uses the date picker. The one I used for this test was the BOM screen (manufacturing/control/UpdateProductBom) In the ‘From Date’ field the help text says that it “Will be set to Now if empty”. In this case if you leave it blank it will take the server time and not the local user time (but if you use the date picker and select ‘Now’ it will default to the user’s local time.) I think this is a bit confusing. Thanks Sharan -- View this message in context: http://ofbiz.135035.n4.nabble.com/Problem-in-approving-internal-requests-thru-order-manager-after-MRP-run-tp4639893p4640506.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Problem in approving internal requests thru order manager after MRP run
Comments inline. On Sun, 07 Apr 2013 21:41:57 +0530, Sharan-F sharan.f...@gmail.com wrote: Hi Ejaz For info - What OFBiz tries to do when you approve the Internal Requirement is to create a Production Run. I did run a test through 12.04 and got an error too so took a copy of the log (see below). I’m not sure if this is the exact same issue you encountered. The first thing to point out is that I’m running OFBiz using a server based in New Zealand and I’m in Europe so there is a time difference of 11 hours as they are ahead of me. Going through that 5 Step Manufacturing scenario – when I created the BOM for the wood, nails and varnish all the default dates and timestamps are taken from the NZ server by default (so in my case this was 06.43am on 29th March 2013) although in Europe it was only 16.43 on* 28th March 2013.* I ran MRP ran but when I tried to approve the Internal Requirement in Order Manager for the table (as you did) – I got the error message because it says that no production run is required as at 17.29 on 28th March. I think this is because the BOM isnt active until 29th March 2013 at 06.43am. It seems that in some cases the default date used by OFBiz is the system date and other times it is the user’s local date and time. When someone uses a datetime picker, he might select the time according to his local clock. However server's clock might differ, one can check the server time in the bottom right corner. If he does not select any time at all, it is considered as 0:00 Please check to see if this could be the source of your error. If so then I think you’ll be able to correct it by • Updating the start dates and times for the BOM (don’t forget to do the table product linked the BOM and routing too) • By waiting until the BOM is active and re-running MRP Hope this helps. Thanks Sharan See below for an extract of the log file. 2013-03-29 06:53:54,136 (http-bio-0.0.0.0-8443-exec-28) [ ServiceEcaRule.java:157:INFO ] Running Service ECA Service: createProductionRunFromRequirement, triggered by rule on Service: updateRequirement 2013-03-29 06:53:54,190 (http-bio-0.0.0.0-8443-exec-28) [ ServiceDispatcher.java:525:ERROR] Error in *Service [createProductionRunsForProductBom]: No production run is required for product with id 10003 in date 2013-03-28 17:29:59.995; please verify the validity dates of the bill of materials and routing. * 2013-03-29 06:53:54,199 (http-bio-0.0.0.0-8443-exec-28) [ TransactionUtil.java:379:WARN ] exception report -- [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening: Exception: java.lang.Exception Message: Error in Service [createProductionRunsForProductBom]: No production run is required for product with id 10003 in date 2013-03-28 17:29:59.995; please verify the validity dates of the bill of materials and routing. stack trace --- java.lang.Exception: Error in Service [createProductionRunsForProductBom]: No production run is required for product with id 10003 in date 2013-03-28 17:29:59.995; please verify the validity dates of the bill of materials and routing. org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:379) org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:320) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:529) org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:225) org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163) org.ofbiz.manufacturing.jobshopmgt.ProductionRunServices.createProductionRunFromRequirement(ProductionRunServices.java:2243 -- View this message in context: http://ofbiz.135035.n4.nabble.com/Problem-in-approving-internal-requests-thru-order-manager-after-MRP-run-tp4639893p4640485.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Shipping configuration in OFBIZ
You can see some demo data from here https://cwiki.apache.org/OFBIZ/third-party-payment-and-shipment-configuration.html Then you can refer more data with advanced options from special purpose ecommerce component. -- Thanks Regards Atul Vani On Wed, 03 Apr 2013 10:13:42 +0530, Nandani Aggarwal nandani.aggar...@paxcel.net wrote: Ofbiz calculates shipping cost using method calcShipmentCostEstimate in ShipmentServices.java or you may use getShipEstimate in ShippingEvents.java. Shipping charges are configured in store-Shipping estimates --Nandani On Wed, Apr 3, 2013 at 7:38 AM, Ofbiz 开发 phoneme...@gmail.com wrote: Hi everyone, I am trying to configure the shipping method in OFBIZ but I am a bit lost. Is there any tutorial or documentation of how to use it / set it up please? How does the eCommerce application use it to calculate the shipping cost of an order please? Thank you very much! Kind Regards Fong -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: ofBiz Hosting on Linux Server
If you have brought a shared hosting, then it is of no use to you. You will need VPS or Dedicated hosting plan. On Mon, 01 Apr 2013 10:29:11 +0530, Vikas vi...@divsinsol.com wrote: Hi Joe Hockaday, My actual requirement is I would like to host to a remote server, I only have a control panel with me. -- View this message in context: http://ofbiz.135035.n4.nabble.com/ofBiz-Hosting-on-Linux-Server-tp4640190p4640259.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: ofBiz Hosting on Linux Server
Although I do not have any thing to back this up, but I have experienced it to perform way faster on linux machines. On Mon, 01 Apr 2013 11:45:49 +0530, Vikas vi...@divsinsol.com wrote: Thank You for your quick reply, Is it better to purchase a windows server or Linux server? Thank You Vikas -- View this message in context: http://ofbiz.135035.n4.nabble.com/ofBiz-Hosting-on-Linux-Server-tp4640190p4640262.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Show a flat ship charge if order amount of 1000 Rupees (before having the pincode)
This is roughly what you need to do. Create custom shipping method for the product store, use quantity breaks to specify the Rs. 1000 condition. Set shipment method and carrier party in the shopping cart object when you create it. On Mon, 01 Apr 2013 16:46:33 +0530, Deepak Agarwal dagarwa...@gmail.com wrote: Any hints... On Fri, Mar 29, 2013 at 4:16 PM, Deepak Agarwal dagarwa...@gmail.comwrote: How can we show the flat shipping charge (say 40 Rs. ) if order amount is less than 1000 rs. after clicking on add to cart button. Right now shipping estimates are calculated only after entering the shipping address -- Thanks, Deepak Agarwal, Mobile: +91 9501190044 -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Fwd: Re: Creating time scheduled products - bus tickets
Ah, Missed to do reply-all so forwarding. --- Forwarded message --- From: Atul Vani atul.v...@hotwaxmedia.com To: Angel Gerdzhikov angel.gerdzhi...@gmail.com Cc: Subject: Re: Creating time scheduled products - bus tickets Date: Sun, 31 Mar 2013 01:14:31 +0530 Comments inline. On Sat, 30 Mar 2013 16:36:34 +0530, Angel Gerdzhikov angel.gerdzhi...@gmail.com wrote: Hi Atul, thank you for the quick response. I think more or less I would make the stuff the same way, but I see some problems doing it this way. Though the way product features are mentioned to be used is not right, but what I had in mind was to minimize the custom implementation. If a bus travels from station P to T via Q, R S, and some customer wants a ticket from P to R, then you can sell him the PQ and QR features (think like sizes for a t-shirt) of that seat. How about time tables. The use case is, that I have a lot of trips but they are regular trips. A bus is traveling each business day from A to B and I don't wont to define each ticket (an instance of a virtual product) individually but much more to define some time expression like a cron job on the virtual product level. Tickets will need to be defined individually. People would want to book the tickets in advance. And you would like to tell the customers which tickets/seats are already booked. So, they need to exist in the system to store these kinda information. It's not like one can book a ticket for infinite time in advance. There will be some kind of upper limit, say two weeks. Two weeks will be the time that you can provide commitment for. So with the design provided, you will need to have products created for all the trips in next two weeks, to be able to sell those. You can surely use some scheduled jobs to create tickets, or you can create them on the fly. For example, if someone tries to buy a ticket for a trip on 40 days from now, then create that trip at that moment. You will need to store plans for future trips in this case, possibly using work efforts. For the problem of creating so many tickets for so many trips of just a single bus, ofcourse there will several buses, you can use template products. There might be different size/design of buses with different number of seats. With these different numbers, you might have different number of reserved-for-women, reserved-for-seniors, reserved-for-handicaps and VIP seats (another use of product features). So, you will need to design the setup (product) in advance, and then just duplicate it along with it's variants for each trip. So the user should be able to search about trips in the feature, and the system administrator don't have to define these trips manually but he still should have the possibility to cancel some trip in the feature manually. Custom implementation will be required for both of these, but it's going to be a small one. An other question is I will to have some kind of management of the busses. Each bus has a capacity e.g. 40 seats and some meta information like type, name, year of construction and so on. The count of tickets from A to B should be based on the count of seats in each bus. And in accordance of this count I have to determine the available count of free seats for a particular trip. Buses are fixed assets for your business, but I do not have much knowledge in that area. Someone else from the community might be able to help here. Though you can also use product attributes for meta information, but I would have explored the first option if I were you. The count thing will be managed by the variants, along with lot of other options like window-seat, the row of the seat etc. You will need to show something like this for seat selection http://a1hollowayrental.co.uk/images/17seater_top_view.jpg What are you meaning exactly with Associate from and to geo with the product feature ? As in the example above. P, Q, R, S and T are the stations/cities. Then they will be managed using the Geo entity (table). Also there will be a timing associated with them, people would want to know when the bus reaches station Q and R and S. I can't see how can you manage this aspects in the way you've described, but I'm really new in the stuff What of this things can I do with functionalities from Ofbiz and what have I to build from scratch. Well, some are outlined above, but for a full fledged ecommerce system you will need a decent amount of development. The library supports it all, but a customized interface to manage stuff will be required. Thanks and regards, Angel On 27.03.2013, at 06:46, Atul Vani wrote: Hi Angel, Here is what I could quickly think: * Create the trip between origin to destination as a virtual product. * Create seats in the bus as variant products. You will be selling these. * Create all the stations as product features. This will allow to sell a seat for a particular set of stations. * Extend the product feature
Re: WYSIWYG HTML editor in OFBIZ
Generally WYSIWYG plugin need a textarea to act on. Use any plugin instead of the one that ofbiz uses on the form's textarea. On Thu, 28 Mar 2013 03:39:29 +0530, Ofbiz 开发 phoneme...@gmail.com wrote: Hi, Does anyone know what is the WYSIWYG HTML editor used in OFBIZ please? Is it hard to change to another one and any tutorial for how to do it please? Thanks! Fong -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Creating time scheduled products - bus tickets
Hi Angel, Here is what I could quickly think: * Create the trip between origin to destination as a virtual product. * Create seats in the bus as variant products. You will be selling these. * Create all the stations as product features. This will allow to sell a seat for a particular set of stations. * Extend the product feature entity to include from and to timing. * Associate from and to geo with the product feature. You will need to code some business logic yourself. -- Thanks Regards Atul Vani On Tue, 26 Mar 2013 04:38:16 +0530, Angel Gerdzhikov angel.gerdzhi...@gmail.com wrote: Hi, I'm pretty new in the Apache OfBiz and I'm looking for a solution to build a online portal for selling bus tickets. So far as I saw the Apache OfBiz offers almost everything to create such a solution. The only thing, I'm not sure if it's possible, is how to create a product representing a place in a bus at some time point from A to B. Its the standard use case for this scenario: I have some providers, offering a journey from A to B: each monday at 12:15 a bus with 40 places is traveling from A to B via C and D. I'll offer my customers to by tickets for the trip from A to B, but may be also from C to B etc. Is a use case like this full ore partially covered by the Apache OfBiz or I have to implement everything from scratch. I'll be very happy if someone has an advice how to solve my problem Thanks a lot and kind regards, Angel -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: What is OLAP database?
Got this error when I hit the Quick Init DataWarehouse button. Just reporting. ERROR: Could not complete the [file:/home/ofbiz/trunk/applications/order/script/org/ofbiz/order/olap/FactServices.xml#loadSalesOrderItemFact] process [problem invoking the [convertUomCurrency] service with the map named [convertUomCurrencyMap] containing [{uomId=USD, uomIdTo=USD, userLogin=[GenericEntity:UserLogin][createdStamp,2013-01-29 08:12:42.373(java.sql.Timestamp)][createdTxStamp,2013-01-29 08:12:42.358(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2013-01-29 08:30:34.189(java.sql.Timestamp)][lastUpdatedTxStamp,2013-01-29 08:30:34.188(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,null()][requirePasswordChange,null()][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)], locale=en}]: The following required parameter is missing: [IN] [convertUomCurrency.nowDate]] -- Thanks Regards Atul Vani On Tue, 29 Jan 2013 13:49:15 +0530, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Have a look at https://demo-trunk.ofbiz.apache.org/bi/control/main Jacques From: Winster Jose wins...@chathurangam.net Hi, Can someone please throw some light on OLAP database? I understand that it is basically a star schema mainly used for reports. But how are the values in Dimension and Fact tables populated? Are there any jobs running? Thanks Winster T Jose Director - Technology and Architecture Chathurangam Creative Solutions Private Ltd. Cell: +91-98469 31020 Mail: wins...@chathurangam.net -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: What is OLAP database?
https://issues.apache.org/jira/browse/OFBIZ-5128 Thanks Jacques. On Tue, 29 Jan 2013 14:40:03 +0530, Atul Vani atul.v...@hotwaxmedia.com wrote: Got this error when I hit the Quick Init DataWarehouse button. Just reporting. ERROR: Could not complete the [file:/home/ofbiz/trunk/applications/order/script/org/ofbiz/order/olap/FactServices.xml#loadSalesOrderItemFact] process [problem invoking the [convertUomCurrency] service with the map named [convertUomCurrencyMap] containing [{uomId=USD, uomIdTo=USD, userLogin=[GenericEntity:UserLogin][createdStamp,2013-01-29 08:12:42.373(java.sql.Timestamp)][createdTxStamp,2013-01-29 08:12:42.358(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2013-01-29 08:30:34.189(java.sql.Timestamp)][lastUpdatedTxStamp,2013-01-29 08:30:34.188(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,null()][requirePasswordChange,null()][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)], locale=en}]: The following required parameter is missing: [IN] [convertUomCurrency.nowDate]] -- Thanks Regards Atul Vani On Tue, 29 Jan 2013 13:49:15 +0530, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Have a look at https://demo-trunk.ofbiz.apache.org/bi/control/main Jacques From: Winster Jose wins...@chathurangam.net Hi, Can someone please throw some light on OLAP database? I understand that it is basically a star schema mainly used for reports. But how are the values in Dimension and Fact tables populated? Are there any jobs running? Thanks Winster T Jose Director - Technology and Architecture Chathurangam Creative Solutions Private Ltd. Cell: +91-98469 31020 Mail: wins...@chathurangam.net -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Difference between One page checkout and Quick checkout
One page checkout on 1104 is working fine for me. On Wed, 09 Jan 2013 11:37:02 +0530, Winster Jose wins...@chathurangam.net wrote: Okay. I am working on Ofbiz 11.04. When comparing screens for Quick checkout and One page checkout, I found that Payment method selection is missing in One page checkout. I compared checkoutoptions.ftl and OnePageCheckoutProcess.ftl and confirmed it. Am I missing anything? On Wed, Jan 9, 2013 at 10:50 AM, Atul Vani atul.v...@hotwaxmedia.comwrote: Well, I am not even able to go to the third step on demo-trunk. Will work on the fix some time soon. On Wed, 09 Jan 2013 10:27:08 +0530, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Can you reproduce on the demo server? Jacques From: Winster Jose wins...@chathurangam.net Hi, Are there any differences between One page and Quick checkouts? I am getting an exception for one page checkout as follows while quick checkout works correctly. The Following Errors Occurred: Did not complete the order, the following occurred:ERROR : Could not create order (write error :Error while inserting: [GenericEntity:**OrderContactMech][**contactMechId,10034(java.lang.** String)][**contactMechPurposeTypeId,**PHONE_BILLING(java.lang.** String)][createdStamp,2013-01-**08 15:26:05.636(java.sql.**Timestamp)][createdTxStamp,**2013-01-08 15:26:05.569(java.sql.**Timestamp)][lastUpdatedStamp,**2013-01-08 15:26:05.636(java.sql.**Timestamp)][**lastUpdatedTxStamp,2013-01-08 15:26:05.569(java.sql.**Timestamp)][orderId,WS10024(**java.lang.String)] (SQL Exception while executing the following:INSERT INTO ORDER_CONTACT_MECH (ORDER_ID, CONTACT_MECH_PURPOSE_TYPE_ID, CONTACT_MECH_ID, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?) (Cannot add or update a child row: a foreign key constraint fails (`ofbiz`.`ORDER_CONTACT_MECH`, CONSTRAINT `ORDER_CMECH_CM` FOREIGN KEY (`CONTACT_MECH_ID`) REFERENCES `CONTACT_MECH` (`CONTACT_MECH_ID`). I went through CheckOutHelper-createOrder method. What I understand is that, all Email address against the user will be fetched and stored as OrderContactMechanism. I have email address configured for order confirmation and primary purposes. What would have gone wrong here? Thanks in advance Winster T Jose Director - Technology and Architecture Chathurangam Creative Solutions Private Ltd. Cell: +91-98469 31020 Mail: wins...@chathurangam.net -- Using Opera's revolutionary email client: http://www.opera.com/mail/ -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Difference between One page checkout and Quick checkout
Well, I am not even able to go to the third step on demo-trunk. Will work on the fix some time soon. On Wed, 09 Jan 2013 10:27:08 +0530, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Can you reproduce on the demo server? Jacques From: Winster Jose wins...@chathurangam.net Hi, Are there any differences between One page and Quick checkouts? I am getting an exception for one page checkout as follows while quick checkout works correctly. The Following Errors Occurred: Did not complete the order, the following occurred:ERROR : Could not create order (write error :Error while inserting: [GenericEntity:OrderContactMech][contactMechId,10034(java.lang.String)][contactMechPurposeTypeId,PHONE_BILLING(java.lang.String)][createdStamp,2013-01-08 15:26:05.636(java.sql.Timestamp)][createdTxStamp,2013-01-08 15:26:05.569(java.sql.Timestamp)][lastUpdatedStamp,2013-01-08 15:26:05.636(java.sql.Timestamp)][lastUpdatedTxStamp,2013-01-08 15:26:05.569(java.sql.Timestamp)][orderId,WS10024(java.lang.String)] (SQL Exception while executing the following:INSERT INTO ORDER_CONTACT_MECH (ORDER_ID, CONTACT_MECH_PURPOSE_TYPE_ID, CONTACT_MECH_ID, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?) (Cannot add or update a child row: a foreign key constraint fails (`ofbiz`.`ORDER_CONTACT_MECH`, CONSTRAINT `ORDER_CMECH_CM` FOREIGN KEY (`CONTACT_MECH_ID`) REFERENCES `CONTACT_MECH` (`CONTACT_MECH_ID`). I went through CheckOutHelper-createOrder method. What I understand is that, all Email address against the user will be fetched and stored as OrderContactMechanism. I have email address configured for order confirmation and primary purposes. What would have gone wrong here? Thanks in advance Winster T Jose Director - Technology and Architecture Chathurangam Creative Solutions Private Ltd. Cell: +91-98469 31020 Mail: wins...@chathurangam.net -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: What is entity-one ?
Whatever are the primary keys of the entity DataResource, will be searched in the context. Why primary keys? because you are using entity-ONE. And the context is where you are setting variables, dataResourceId in line 1, currentValue in line 2 and dataResource in line 3. On Mon, 07 Jan 2013 11:49:20 +0530, Winster Jose wins...@chathurangam.net wrote: Hi, Can anyone please help me to understand below xml? Please correct me if I am wrong. dataResourceId is taken from parameters and set to field dataResourceId. And DataResource entity is fetched (but which will act as primary key here?) and set to field currentValue and later currentValue is assigned to another field dataResource. set field=dataResourceId from-field=parameters.dataResourceId/ entity-one entity-name=DataResource value-field=currentValue/ set field=dataResource from-field=currentValue/ Regards Winster T Jose Director - Technology and Architecture Chathurangam Creative Solutions Private Ltd. Cell: +91-98469 31020 Mail: wins...@chathurangam.net -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Best way of implementing (external) code tables in ofbiz
Check if Enumeration and EnumerationType entities are useful to you. Although, I would suggest the same as Adrian. On Thu, 03 Jan 2013 16:10:00 +0530, Adrian Crum adrian.c...@sandglass-software.com wrote: I would recommend reading The Data Model Resource Book - the OFBiz data model is based on it. -Adrian On 1/3/2013 8:35 AM, t...@skynet.be wrote: Dear All, I have some code tables I want to add in my ofbiz installation. * Excise Products Categories * Excise Product * Cn Codes * Correspondences Cn Code - Excise Product1 * Units Of Measure * Events Types * Evidence Types * History Refusal Reasons * Language Codes * Member States * Country Codes * Administrative Cooperation Actions * Administrative Cooperation Request Reasons * Packaging Codes * Reasons For Unsatisfactory Receipt Or Control Report * Reasons For Interruption * Transport Modes * Transport Units * Wine-Growing Zones * Wine Operation Codes * Reasons For Delayed Result * Cancellation Reasons * Alert Or Rejection Of E-Ad Reasons * Delay Explanations * Event Submitting Persons * Administrative Cooperation Action Not Possible Reasons * Common Request Rejection Reasons Most of them have the same format : code , description. Normally there used to be 2 ways to implement this type of code tables a) for each code a new table is created with the corresponding screen for maintenance on the table b) one code table is created and a field was added as 'descriptor' for the code. The maintenance screen used the descriptor to filter the correct codes What would be the best way to implement these in Ofbiz ? Kind regards Tore -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: Ecommerce Visual Themes
Is the theme data loaded? On Mon, 26 Nov 2012 07:04:00 +0530, N Gowthaman gouthaml...@gmail.com wrote: Dear Group, I am trying to design ecommerce frontend page by renaming multiflex them as per the steps provided in https://cwiki.apache.org/confluence/display/OFBIZ/Visual+Themes+-+How+to However I am not able to view created theme in backoffice Catalog Manager - Visual Theme (it shows default and multiflex alone). Any clue for this. Or is this a bug ? -- Using Opera's revolutionary email client: http://www.opera.com/mail/
Re: How to include ftl from another module using a variable?
Try this #include StringUtil.wrapString(myTemplate) Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 06/21/2012 01:28 AM, Colin Rooney wrote: hint: look at how location= is used in the screen definitions of ofbiz applications to see how it is used to include .ftl from other modules. colin On 20 June 2012 20:04, Michael Brohlof...@brohl.net wrote: Hi everyone, do you have any hint for me on this issue? Or is this simply not possible? Thanks and regards, Michael Hi, I want to include a freemarker template using the#include / directive from another module. The template path is given to the including ftl (in module1) through a screen variable in the form component://module2/path/to/ftl/name.ftl. The variable is named myTemplate. Code .. #include myTemplate .. Freemarker cannot find the template because is searches for component://module1/includes/component://module2/path/to/ftl/name.ftl. Is there a way to avoid that component://module1/includes/ is used as the base? I tried .. #include / + myTemplate .. to give Freemarker a hint for an absolute path but it says Error rendering included template at location [component://module1/includes/header.ftl]: java.lang.IllegalArgumentException: Bad component location [component://component://module2/path/to/ftl/name.ftl]: base location missing slashes [/component://module2/path/to/ftl/name.ftl], first=0, second=-1; should be like: component://{component-name}/relative/path Any hints? Thanks and regards, Michael -- Regards, Michael
Re: proposal
Ruth, Nick, It might be a possible scenario that someone wants to display the newly setup products in the catalog at any particular date-time, may be at the beginning of a new season or some kinda festival. He would rather process the product data for them in advance, test it and have some trigger mechanism to publish them. This is why a date-time field is required along with the Publish button. One may also want to remove the products from the site, and may be want to do that at a specific date-time. So an un-publish button is also required, and that too along with a date-time field. A publish button should be of great help, or alternatively this can also be done by setting a future fromDate/thruDate field for the ProductCategoryMember record, for the VIEW_ALLOW category. Though a product not only needs to be controlled for catalog listing, it might also require to be added/removed from the SEARCH, PURCHASE_ALLOW, NEWLY_ARRIVED kinda categories, depending on the business requirements and it's nature. A catalog manager also requires to deal with such work flow when associating/dissociating products from categories. I believe the current workflow keeps things consistent. Moreover the consistent workflows help in building better understanding about processes and data model. If I were the catalog manager, I would have setup and added the products (which I wish to launch next month), in some category. And then would have set the fromDate for the category's association, with the VIEW_ALLOW category, to the scheduled time. Saves me the trouble of hitting a publish button for every product (assuming the number of products is large here). Should consider this kinda requirements when you add the feature :) Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/21/2012 06:55 PM, Nick Rosser wrote: Ruth, Yep, all possibilities. As always the simple original request that was posted so we need a PUBLISH button now morphs into something that gets considerably more complex! You mentioned pricing, inventory, image available and approvals (all good considerations). I would add to this the complexity of Virtual / Variant product definitions. And the introduced/discontinued date. So now we very quickly get into something more complex. What if an eCommerce client is not using OFBiz inventory (we have clients that accept orders into their existing ERP solution and manage inventory from there)? We have yet more clients that want variants with no or low inventory to be listed -- in their case if that variant is selected the customer knows it is out of stock. What if pricing expires on a certain date (so in a few days there will not be any pricing available)? And approvals (workflow, who can approve? what if they are on vacation? multiple levels of approval?) opens up a complete other aspect of managing products (and any content for that matter). Again, all possible. But it just goes to show that any simple idea has big implications in a solution as comprehensive as OFBiz. We know from experience that unless requirements are fully documented, discussed and reviewed all sorts of problems can occur. This is why everything in BigFish is fully documented, discussed and developer reviewed before any actual development takes place -- it would be impossible to build a viable solution without this discipline. BTW: glad to see that you're keeping an eye out for our BigFish enhancements! Ideas always welcome for improvements! Best Regards, Nick Rosser nros...@salmonllc.com O: 516.742.7888 x221 C: 516.901.1720 On 5/21/2012 8:50 AM, Ruth Hoffman wrote: Hi Nick: I agree with you 100%. IMHO it is noteworthy that BigFish does implement an entirely new UI to expose these functions. In my ideal world, I would add to BigFish and build a new application. This application would, under certain circumstances (these are the business rules that I mentioned earlier) allow the publish function (the button that sets the active/inactive date) to only work when, for example: A valid price exists There is enough inventory to cover fulfillment There is at least one image of the correct resolution The product description or other content has been approved Each one of these requirements is driven by a business rule. Right now, the only way that these business rules are enforced are by the order of the data entry screens and/or the BigFish product loader. (BTW, I've had an opportunity to use BigFish recently, so I'm pretty up-to-date on its features/functions. Nice job!) Best Regards, Ruth Hoffman Adaptive Enterprise Solutions, LLC. http://www.myofbiz.com http://www.aesolves.com On 5/21/12 8:29 AM, Nick Rosser wrote: There is also something similar in our BigFish implementation. Checkout resources at http://bigfish.salmonllc.com
Re: proposal
Agreed. Agreed that there is a huge list of things that can be made easier in OFBiz for the end user. But I disagree that the one mentioned is one among them, or is a top ranking at least. My point is that, if I am not missing something, you're considering a very small subset of the requirements that a user can have. I believe, a consistent workflow help the end user to understand the system, and relate things around. Though I don't have much experience of sitting in the end user's chair, so I might be talking as someone form a distant planet :) Please carry on. On 5/22/2012 6:23 PM, Ruth Hoffman wrote: Hi Atul: IMO you miss the point. The point is not that these features do or do not exist. We all agree that you can accomplish this task in several different ways using the OOTB Catalog Manager and Content Manager applications. The point IS that the end-user requirement(s) as stated by Heidi and further articulated by Nick are not being met in way that facilitates easy, efficient and secure product management. Best Regards, Ruth Hoffman Adaptive Enterprise Solutions, LLC. http://www.myofbiz.com On 5/22/12 4:09 AM, Atul Vani wrote: Ruth, Nick, It might be a possible scenario that someone wants to display the newly setup products in the catalog at any particular date-time, may be at the beginning of a new season or some kinda festival. He would rather process the product data for them in advance, test it and have some trigger mechanism to publish them. This is why a date-time field is required along with the Publish button. One may also want to remove the products from the site, and may be want to do that at a specific date-time. So an un-publish button is also required, and that too along with a date-time field. A publish button should be of great help, or alternatively this can also be done by setting a future fromDate/thruDate field for the ProductCategoryMember record, for the VIEW_ALLOW category. Though a product not only needs to be controlled for catalog listing, it might also require to be added/removed from the SEARCH, PURCHASE_ALLOW, NEWLY_ARRIVED kinda categories, depending on the business requirements and it's nature. A catalog manager also requires to deal with such work flow when associating/dissociating products from categories. I believe the current workflow keeps things consistent. Moreover the consistent workflows help in building better understanding about processes and data model. If I were the catalog manager, I would have setup and added the products (which I wish to launch next month), in some category. And then would have set the fromDate for the category's association, with the VIEW_ALLOW category, to the scheduled time. Saves me the trouble of hitting a publish button for every product (assuming the number of products is large here). Should consider this kinda requirements when you add the feature :) Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/21/2012 06:55 PM, Nick Rosser wrote: Ruth, Yep, all possibilities. As always the simple original request that was posted so we need a PUBLISH button now morphs into something that gets considerably more complex! You mentioned pricing, inventory, image available and approvals (all good considerations). I would add to this the complexity of Virtual / Variant product definitions. And the introduced/discontinued date. So now we very quickly get into something more complex. What if an eCommerce client is not using OFBiz inventory (we have clients that accept orders into their existing ERP solution and manage inventory from there)? We have yet more clients that want variants with no or low inventory to be listed -- in their case if that variant is selected the customer knows it is out of stock. What if pricing expires on a certain date (so in a few days there will not be any pricing available)? And approvals (workflow, who can approve? what if they are on vacation? multiple levels of approval?) opens up a complete other aspect of managing products (and any content for that matter). Again, all possible. But it just goes to show that any simple idea has big implications in a solution as comprehensive as OFBiz. We know from experience that unless requirements are fully documented, discussed and reviewed all sorts of problems can occur. This is why everything in BigFish is fully documented, discussed and developer reviewed before any actual development takes place -- it would be impossible to build a viable solution without this discipline. BTW: glad to see that you're keeping an eye out for our BigFish enhancements! Ideas always welcome for improvements! Best Regards, Nick Rosser nros...@salmonllc.com O: 516.742.7888 x221 C: 516.901.1720 On 5/21/2012 8:50 AM, Ruth Hoffman wrote: Hi Nick: I agree with you 100
Re: proposal
The solution would be to not add the product to the VIEW_ALLOW category until you are done setting it up. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/21/2012 12:47 PM, Venkat Mangudi wrote: Hi, Why don't you use the start date/end date on the product to control visibility in the catalog? --Venkat On Mon, May 21, 2012 at 12:03 AM, Info Olagosinfo.ola...@gmail.com wrote: Hello, What should be a very nice feature in Ofbiz which doesn't exist at the moment, is the following: It should be nice if you could insert all the data for a certain new product in different days. Let's say day one, you do the product properties, day two you continue with the content part, day three you continue with the price, etc. You only publish the new product when you have completed all data. So the product doesn't appear not complete on the webpage. So one need a PUBLISH button. I don't think that is possible at the moment in Ofbiz. Regards, Heidi Eric -- Olagos bvba http://www.olagos.euhttp://www.olagos.eu/ http://www.olagos.com http://www.olagos.be http://www.olagos.nl Olagos team Heesterbos 5 2570 Duffel Belgium
Re: how to implement Cash on Delivery?
You will need a PaymentMethod for cash-on-delivery, for your ProductStore. You can then have the user checkout using it and handle the rest accordingly. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/10/2012 12:23 PM, indela wrote: hi all, i am implement online store. all items add to Cart is perfect. after it is asking the online payment. But i need to implement Cash on Delivery. Is it possible? if it is possible please tell me the process thank you, -- View this message in context: http://ofbiz.135035.n4.nabble.com/how-to-implement-Cash-on-Delivery-tp4622660.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: condition in a xml form
May be I didn't get the whole thing, but from what I understand is, either you will need to make a ton of changes or you will need to move to multi tenancy, because there are a lot more ways to access the restricted information. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/09/2012 10:48 AM, enno tech wrote: list of companies is shown all list of organizations.But i want to show only the organization that was logged in by an user. example [in the preference top right side] Mr x- Company Z means mr x logged in company z. but mr x can see [if he has permission-ed to see] the organization Gl settings he can see the other companies gl (chart of accounts etc..) But i want to show only company z in the comany list when that user logged in. On 5/8/12, Atul Vaniatul.v...@hotwaxmedia.com wrote: All that a list form does is render a list of results. What you need is, to add a condition in the find form (or wherever the logic to fetch list is present), to fetch the valid records for you. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/09/2012 09:55 AM, enno tech wrote: in the glsetupform.xml document there is a form field Listcompanies which show a list of companies(organization parties). so, i want to add a condition in that form field say condition that match the partyid with defaultorganizationpartyid(login organization id) so the list only show the default organization party(log in organizationparty in which party an user is loged in)
Re: Ofbiz url
Without '@' these will be considered as HTML tags instead of freemarker macros :) Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/09/2012 03:37 PM, Malini Sharma wrote: Hi, Can anyone please guide me, what happens to the request like this: ofbizurllogin/checkout/ofbizUrl (login and checkout are just examples..)?? login and checkout are two separate requests in controller.xml..? On Wed, May 9, 2012 at 2:06 PM, nilesh_patilnilesh_pa...@tudip.com wrote: Thank you very much On Tue, May 8, 2012 at 10:06 PM, Robert G. [via OFBiz] ml-node+s135035n4618010...@n4.nabble.com wrote: btw. not your ftl file is responsible to redirect you to the page after sending f.ex. a form...this does the controller.xml there you find things like: success, error and so on...so after a request is f.ex. successfully you can define the view mapping after it. in the controller.xml you see sth. like: *request-map uri=login security https=true auth=false/ event type=java path=org.ofbiz.securityext.login.LoginEvents invoke=storeLogin/ response name=success type=view value=main/ response name=requirePasswordChange type=view value=requirePasswordChange/ response name=error type=view value=login/ /request-map* you see, that there is an event type. This is worked through, and the login is stored in a session (I believe). If this was successfully, the java method, or service returns a success, so you will get the view with the value main in this case. On an error you will get the view of the login again...this can happen, if f.ex. the session is invalid, the user typed in wrong login data and so on... the view mapping is referring to the views, which are defined at the end of the file (controller.xml). there is then defined another xml file to get the content of the view /next page... hope that helps you to understand the processes -- If you reply to this email, your message will be added to the discussion below: http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html To unsubscribe from Ofbiz url, click here http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4616949code=bmlsZXNoX3BhdGlsQHR1ZGlwLmNvbXw0NjE2OTQ5fDM3OTM4ODgxNQ== . NAML http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4619742.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Ofbiz url
Comments inline, mistakenly sent too soon. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/09/2012 05:18 PM, Atul Vani wrote: Without '@' these will be considered as HTML tags instead of freemarker macros :) With '@', it will behave as it would have normally, the '/' has no effects. However, when this request will be hit, the 'login' request's view mapping will be overrided by 'checkout' view. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/09/2012 03:37 PM, Malini Sharma wrote: Hi, Can anyone please guide me, what happens to the request like this: ofbizurllogin/checkout/ofbizUrl (login and checkout are just examples..)?? login and checkout are two separate requests in controller.xml..? On Wed, May 9, 2012 at 2:06 PM, nilesh_patilnilesh_pa...@tudip.com wrote: Thank you very much On Tue, May 8, 2012 at 10:06 PM, Robert G. [via OFBiz] ml-node+s135035n4618010...@n4.nabble.com wrote: btw. not your ftl file is responsible to redirect you to the page after sending f.ex. a form...this does the controller.xml there you find things like: success, error and so on...so after a request is f.ex. successfully you can define the view mapping after it. in the controller.xml you see sth. like: *request-map uri=login security https=true auth=false/ event type=java path=org.ofbiz.securityext.login.LoginEvents invoke=storeLogin/ response name=success type=view value=main/ response name=requirePasswordChange type=view value=requirePasswordChange/ response name=error type=view value=login/ /request-map* you see, that there is an event type. This is worked through, and the login is stored in a session (I believe). If this was successfully, the java method, or service returns a success, so you will get the view with the value main in this case. On an error you will get the view of the login again...this can happen, if f.ex. the session is invalid, the user typed in wrong login data and so on... the view mapping is referring to the views, which are defined at the end of the file (controller.xml). there is then defined another xml file to get the content of the view /next page... hope that helps you to understand the processes -- If you reply to this email, your message will be added to the discussion below: http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4618010.html To unsubscribe from Ofbiz url, click here http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4616949code=bmlsZXNoX3BhdGlsQHR1ZGlwLmNvbXw0NjE2OTQ5fDM3OTM4ODgxNQ== . NAML http://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-url-tp4616949p4619742.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: condition in a xml form
All that a list form does is render a list of results. What you need is, to add a condition in the find form (or wherever the logic to fetch list is present), to fetch the valid records for you. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/09/2012 09:55 AM, enno tech wrote: in the glsetupform.xml document there is a form field Listcompanies which show a list of companies(organization parties). so, i want to add a condition in that form field say condition that match the partyid with defaultorganizationpartyid(login organization id) so the list only show the default organization party(log in organizationparty in which party an user is loged in)
Re: Send Request and Response to an existing event
You can add request and response abjects as IN parameters to the service. Though you should rethink to avoid such thing. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 05/09/2012 09:09 AM, deb.pa...@tcs.com wrote: Hi, Enlisted are some options below. Perhaps, I am not able to get the bigscene, but here is my take. (Could you elaborate the scenario?) Upon triggering the call, I hit the controller and there I can cascade the request based on the response. Request cascaded over from one event to another. (Events may be simple/minilang or java or ajax) Within controller.xml - Single pass request-map uri=createcustomer security https=true auth=true / event type=simple path= component://ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml invoke=createCustomer / response name=success type=view value=main / response name=error type=view value=newcustomer / /request-map Within controller.xml - Multiple pass The response statements can be cascaded to another request map. request-map uri=processCustomerSettings security https=true auth=false/ event type=simple path=component:///XYZ.xml invoke= processCustomerSettings/ response name=success type=request value= createUpdateShippingAddressCheckout/ response name=error type=view value=OnePageCheckout/ /request-map request-map uri=createUpdateShippingAddressCheckout security https=true auth=false / event type=simple path=component:///CustomerEvents.xml invoke=createUpdateCustomerAndShippingAddress / response name=success type=request value= setShippingOption / response name=error type=view value=OnePageCheckout / /request-map Passing request method from within simple method to another. call-bsh![CDATA[ java.util.ArrayList userMessagePices = new java.util.ArrayList(); String userFname = (String) personContext.get(firstName); . XYZ.SmsServicesRegistration.smsServices(request, response, userMessagePices, phoneNo.toString()); ]]/call-bsh /simple-method Thanks, Dev From: bhargav.triv...@objectedge.com To: d...@ofbiz.apache.org, user@ofbiz.apache.org Date: 05/09/2012 04:06 AM Subject: Send Request and Response to an existing event Hi, I want to pass the request and response to a simple method ( createCustomer) of an existing event (CustomerEvent.xml). I am calling this event as a part of a service which is defined in my services.xml file by using the dispatcher.runsync . Could someone please let me know if this is doable and if so then how? Bhargav Software Engineer Object Edge Inc. =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Re: Complicated Question
Glad to be helpful. -- Thanks Regards Atul Vani On 4/16/2012 10:33 PM, Skip wrote: Thaks Atul, this is exactly what I needed. I looked and looked at pages of Google returns and could not find this. Thanks again Skip -Original Message- From: Atul Vani [mailto:atul.v...@hotwaxmedia.com] Sent: Sunday, April 15, 2012 9:30 PM To: user@ofbiz.apache.org Subject: Re: Complicated Question I think you're going in the wrong direction. Read this document (below), specially the section Extending an Existing Component. https://cwiki.apache.org/OFBIZ/addressing-custom-requirements-in-ofbiz.html May be all you need is to just override the webapp, not even the component. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 04/13/2012 10:14 PM, Skip wrote: Let me restate the two problems a little more succinctly. Problem 1 I want to include a controller from a hot-deploy component into an existing ofbiz controller in applications directories. I know I can use condition / widget / fail-widget tags in screen widgets, but can you use something similiar in a controller.xml file. I could find no examples. For example, in ...applications/product/webapp/catalog/WEB-INF/controller.xml include location=component://company1/webapp/common/WEB-INF/common-controller.xml/ Only, I want the location to be a variable like include location=${externalLocation}/ If this is possible, where can I declare externalLocation. Alternately, is it possible to inject the hot-deploy controller into the first. Problem 2 I want to call a service with an indeterminate attribute list. I think I have found the solution here. Just set validate=false in the service declaration and I can pass in whatever attributes I want from the form widget. -Original Message- From: Atul Vani [mailto:atul.v...@hotwaxmedia.com] Sent: Thursday, April 12, 2012 10:43 PM To: user@ofbiz.apache.org Subject: Re: Complicated Question Didn't get the problem completely, but still, check my comments inline. ThanksRegards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 04/13/2012 05:55 AM, Skip wrote: I am implementing Ofbiz for two sister companies, each of which sells different kinds of products. I have implemented the first company and am starting on the second. I would like to maintain just a single set of source for both companies. I have two components in hot-deploy that load the seed data and code specific to each company. Only one or the other is included in component-load.xml. However, I do not want these screens from company 1 available in the second company. These company specific screens have to do with product attributes for the items sold. In the ordermgr order entry screen, I have have added a secondary screen that allows sales people to look up products by their attributes using product type specific screens. For example, for a screw, they enter the thread count, length, material, etc. Another example would be would be a tap which has fields for diameter, length, thread count, etc. Other screens allow inexperienced employees to enter new products by selecting product attributes from product specific dropdowns. Using this data, they can add or update products. There are two problems here, the add and update actions require product specific URLs which eventually end up in product specific services. I would like to do two things. The first is to include the controller.xml file for one or the other of these two companies into the the controller.xml file for facility and catalog that has these product specific URLs. For example, in a screen widget, I can do: condition notif-empty field-name=findScreenName//not /condition widgets include-screen name=${findScreenName}/ /widgets is it possible to do something like this: condition somecondition /condition include location=component://product/webapp/facility/WEB-INF/controller.xml/ or include location=${externalLocation}/ and specify externalLocation in the web.xml file maybe? Check out the use of condition / widget / fail-widget tags. Second, I could write a single service to do these add/update services if there was a way to pass an arbitrary list of attributes in the context to the service and not have the service engine complain that field is not defined for service . For example, if I have a service defined as: service name=createInventoryProduct engine=java auth=true default-entity-name= location=com.fs.inventory.InventoryServices invoke=createInventoryProduct use-transaction=false description Create a Product, SupplierProduct, and default ProductPrice /description
Re: Complicated Question
I think you're going in the wrong direction. Read this document (below), specially the section Extending an Existing Component. https://cwiki.apache.org/OFBIZ/addressing-custom-requirements-in-ofbiz.html May be all you need is to just override the webapp, not even the component. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 04/13/2012 10:14 PM, Skip wrote: Let me restate the two problems a little more succinctly. Problem 1 I want to include a controller from a hot-deploy component into an existing ofbiz controller in applications directories. I know I can use condition / widget / fail-widget tags in screen widgets, but can you use something similiar in a controller.xml file. I could find no examples. For example, in ...applications/product/webapp/catalog/WEB-INF/controller.xml include location=component://company1/webapp/common/WEB-INF/common-controller.xml/ Only, I want the location to be a variable like include location=${externalLocation}/ If this is possible, where can I declare externalLocation. Alternately, is it possible to inject the hot-deploy controller into the first. Problem 2 I want to call a service with an indeterminate attribute list. I think I have found the solution here. Just set validate=false in the service declaration and I can pass in whatever attributes I want from the form widget. -Original Message- From: Atul Vani [mailto:atul.v...@hotwaxmedia.com] Sent: Thursday, April 12, 2012 10:43 PM To: user@ofbiz.apache.org Subject: Re: Complicated Question Didn't get the problem completely, but still, check my comments inline. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 04/13/2012 05:55 AM, Skip wrote: I am implementing Ofbiz for two sister companies, each of which sells different kinds of products. I have implemented the first company and am starting on the second. I would like to maintain just a single set of source for both companies. I have two components in hot-deploy that load the seed data and code specific to each company. Only one or the other is included in component-load.xml. However, I do not want these screens from company 1 available in the second company. These company specific screens have to do with product attributes for the items sold. In the ordermgr order entry screen, I have have added a secondary screen that allows sales people to look up products by their attributes using product type specific screens. For example, for a screw, they enter the thread count, length, material, etc. Another example would be would be a tap which has fields for diameter, length, thread count, etc. Other screens allow inexperienced employees to enter new products by selecting product attributes from product specific dropdowns. Using this data, they can add or update products. There are two problems here, the add and update actions require product specific URLs which eventually end up in product specific services. I would like to do two things. The first is to include the controller.xml file for one or the other of these two companies into the the controller.xml file for facility and catalog that has these product specific URLs. For example, in a screen widget, I can do: condition notif-empty field-name=findScreenName//not /condition widgets include-screen name=${findScreenName}/ /widgets is it possible to do something like this: condition somecondition /condition include location=component://product/webapp/facility/WEB-INF/controller.xml/ or include location=${externalLocation}/and specify externalLocation in the web.xml file maybe? Check out the use of condition / widget / fail-widget tags. Second, I could write a single service to do these add/update services if there was a way to pass an arbitrary list of attributes in the context to the service and not have the service engine complain that field is not defined for service . For example, if I have a service defined as: service name=createInventoryProduct engine=java auth=true default-entity-name= location=com.fs.inventory.InventoryServices invoke=createInventoryProduct use-transaction=false description Create a Product, SupplierProduct, and default ProductPrice /description attribute name=productId type=String mode=INOUT optional=false/ attribute name=internalName type=String mode=IN optional=false/ attribute name=description type=String mode=IN optional=false/ attribute name=productType type=String mode=IN optional=false/ /service Use attribute(s) of type List in the service. Use 2 or more fields with the same name in the HTML form. and I pass
Re: Empty String in entity-condition
Check out the use of ignore-if-empty and ignore-if-null in InventoryReserveServices.xml Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 04/13/2012 09:16 AM, Foo Shyn Chung wrote: Hi all, I need to check a field for empty string value in my entity-condition. I search through the net but can't find a workable solution for me (tried using nullField or removing the value attributes but both doesn't work). What i need to do actually is to verify a field so that it is not empty: condition-expr field-name=batchNo operator=not-equals value= / Any idea on this? Thanx FooShyn
Re: Complicated Question
Didn't get the problem completely, but still, check my comments inline. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On 04/13/2012 05:55 AM, Skip wrote: I am implementing Ofbiz for two sister companies, each of which sells different kinds of products. I have implemented the first company and am starting on the second. I would like to maintain just a single set of source for both companies. I have two components in hot-deploy that load the seed data and code specific to each company. Only one or the other is included in component-load.xml. However, I do not want these screens from company 1 available in the second company. These company specific screens have to do with product attributes for the items sold. In the ordermgr order entry screen, I have have added a secondary screen that allows sales people to look up products by their attributes using product type specific screens. For example, for a screw, they enter the thread count, length, material, etc. Another example would be would be a tap which has fields for diameter, length, thread count, etc. Other screens allow inexperienced employees to enter new products by selecting product attributes from product specific dropdowns. Using this data, they can add or update products. There are two problems here, the add and update actions require product specific URLs which eventually end up in product specific services. I would like to do two things. The first is to include the controller.xml file for one or the other of these two companies into the the controller.xml file for facility and catalog that has these product specific URLs. For example, in a screen widget, I can do: condition notif-empty field-name=findScreenName//not /condition widgets include-screen name=${findScreenName}/ /widgets is it possible to do something like this: condition somecondition /condition include location=component://product/webapp/facility/WEB-INF/controller.xml/ or include location=${externalLocation}/ and specify externalLocation in the web.xml file maybe? Check out the use of condition / widget / fail-widget tags. Second, I could write a single service to do these add/update services if there was a way to pass an arbitrary list of attributes in the context to the service and not have the service engine complain that field is not defined for service . For example, if I have a service defined as: service name=createInventoryProduct engine=java auth=true default-entity-name= location=com.fs.inventory.InventoryServices invoke=createInventoryProduct use-transaction=false description Create a Product, SupplierProduct, and default ProductPrice /description attribute name=productId type=String mode=INOUT optional=false/ attribute name=internalName type=String mode=IN optional=false/ attribute name=description type=String mode=IN optional=false/ attribute name=productType type=String mode=IN optional=false/ /service Use attribute(s) of type List in the service. Use 2 or more fields with the same name in the HTML form. and I pass an attribute color, I get an error from the service validation code. Is there some way to inform the service engine that the service could have an arbitrary number of additional attributes (based on the productType in this case) and to not throw this error? Thanks in advance for your help. Skip
Re: Error in demo-stable and demo-trunk
Yea, working fine now, I was talking about demo-stable and demo-trunk servers though. On Saturday 26 November 2011 01:29 PM, Hans Bakker wrote: Trunk is working fine from here... perhaps: 1. download a new version. 2. ./ant run-install 3. ./startofbiz.sh and try again? Regards, Hans On 11/26/2011 01:04 PM, Atul Vani wrote: Hello All, I got this error when I tried catalog and facility application on stable and trunk servers:- org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: java.lang.IllegalArgumentException: Error calling service with name getLastSystemInfoNote: org.ofbiz.service.GenericServiceException: Cannot locate service by name (getLastSystemInfoNote) (Error calling service with name getLastSystemInfoNote: org.ofbiz.service.GenericServiceException: Cannot locate service by name (getLastSystemInfoNote)) -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
Error in demo-stable and demo-trunk
Hello All, I got this error when I tried catalog and facility application on stable and trunk servers:- org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://commonext/widget/CommonScreens.xml#ApplicationDecorator]: java.lang.IllegalArgumentException: Error calling service with name getLastSystemInfoNote: org.ofbiz.service.GenericServiceException: Cannot locate service by name (getLastSystemInfoNote) (Error calling service with name getLastSystemInfoNote: org.ofbiz.service.GenericServiceException: Cannot locate service by name (getLastSystemInfoNote)) -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
Re: Demo Data of Real World
I was always interested in realistic product data, dunno if OFBiz will accept it. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On Tuesday 06 September 2011 07:47 AM, Sam Hamilton wrote: I think more realistic demo data would be a great idea. Sam On 6 Sep 2011, at 08:39, BJ Freeman wrote: if that is the case then I will support it on my businessesnetwork demo site. Adrian Crum sent the following on 9/5/2011 2:56 PM: I suggested the same thing years ago. Have a company like Acme Market, or Acme Sales, or Acme Manufacturing, and then have realistic names, divisions, products, etc for the company. That was shot down though, because the developers at the time thought if the demo data looked too much like real data then the OFBiz users would get confused. -Adrian On 9/5/2011 6:18 PM, BJ Freeman wrote: Had this idea that Demo data for Party can be real people Like the Company is Ofbiz then each Person/company that works with Ofbiz can enter their Info You can enter your data into Ofbiz localhost then save the data and add it through a jira to the Party Demo data.
Re: Issue with ajax and json response
Jacques, Got it, will do it soon, Thanks :) Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On Monday 29 August 2011 01:05 PM, Jacques Le Roux wrote: Atul, These interesting comments should be better in the Jira Thanks Jacques From: Atul Vani atul.v...@hotwaxmedia.com Ok, hadn't checked the code yet, did it now, my bad :) What I oberved is that when I enter promo code, it fires an ajax request and don't display me the error message when I entered the wrong code, need to fix that. Well, the interesting part is, it then fires another ajax request to check if the cart is empty, how possibly can a cart get empty by applying a promo code :-/ And then it fires another one to update the cart with the discounted price. Why don't we return the updated cart along with the error message, if any, and replace the existing html with the new one, so that user is displayed with the error message and the updated cart both, will also save us two extra ajax requests. Another thing I noticed is that lot's of elements are being identified using their ids, not so good. - Original Message - From: Atul Vani atul.v...@hotwaxmedia.com To: user@ofbiz.apache.org Sent: Sunday, August 28, 2011 10:47:07 PM Subject: Re: Issue with ajax and json response Jonatan, IMO, the event you invoked in your request mapping should be fixed to return error response, when they get errors. It will cause the error response to be rendered instead of the success. Then you can use type=request value=json for the error response. The responseText recieved by the ajax will be a JSON String. You can then pass this JSON string to the getServerError() function to extract and return error message(s). I don't know if this information will be useful to you or not, as I haven't seen the code, but this is pretty much all one needs to check :) - Original Message - From: Jonatan Soto seniledemen...@gmail.com To: user@ofbiz.apache.org Sent: Saturday, August 27, 2011 3:51:58 PM Subject: Re: Issue with ajax and json response Hi Atul, I've didn't got server error messages using what you said. Probably is something wrong in my code, but what I have noticed is that no matters what kind of response I set, the 'success' callback method is called. Anyway, how is handled the server response in this case? I mean, where can I find the code where the getServerError() JS function is called once we return the error response? Many thanks Atul. On Fri, Aug 26, 2011 at 7:32 PM, Atul Vani atul.v...@hotwaxmedia.comwrote: Jonatan, I think if you use response name=error type=request value=json/ (it is used in several places in ecommerce and other components' controller.xml) and then use the getServerError() function (used in specialpurpose/ecommerce/webapp/ecommerce/images/profile.js) to parse the JSON response, then you should be able to retrieve the error message to display it to the user. I'm not sure if it will be helpful, I didn't got the problem completely either ;-) - Original Message - From: Jonatan Soto seniledemen...@gmail.com To: user@ofbiz.apache.org Sent: Sunday, July 17, 2011 5:56:10 PM Subject: Re: Issue with ajax and json response Done. Patch provided, not fully tested. https://issues.apache.org/jira/browse/OFBIZ-4342 https://issues.apache.org/jira/browse/OFBIZ-4342Regards, On Sun, Jul 17, 2011 at 1:34 PM, Scott Gray scott.g...@hotwaxmedia.com wrote: Yeah, checking for the _ERROR_MESSAGE* keys is the right way to go, would be great if you could create a jira issue so this doesn't get lost. Regards Scott HotWax Media http://www.hotwaxmedia.com On 17/07/2011, at 7:56 AM, Jonatan Soto wrote: Well, I did a little read on the jquery ajax documentation ( http://api.jquery.com/jQuery.ajax/) and some of my assertions were wrong. It is definitively not related to the CommonEvents#jsonResponseFromRequestAttributes. I felt stupid when I realized that the result the controller returns has nothing to do with the ajax callbacks :) According to this doc the error callback is: A function to be called if the request fails In the case I'm exposing, obviously the request is not failing so the error I'm getting should be handled in the success callback. Please, tell me if there is another way to do it. I found a js function in the CheckoutProcess.js called getServerError(...) which is never invoked. I think it should be included in the success callback like the following code: (chekoutProcess.js) // Check server side error function getServerError(data) { var serverErrorHash = []; var serverError = ; if (data._ERROR_MESSAGE_LIST_ != undefined) { serverErrorHash = data._ERROR_MESSAGE_LIST_; jQuery.each(serverErrorHash, function(i, error) { serverError
Re: Issue with ajax and json response
Jonatan, IMO, the event you invoked in your request mapping should be fixed to return error response, when they get errors. It will cause the error response to be rendered instead of the success. Then you can use type=request value=json for the error response. The responseText recieved by the ajax will be a JSON String. You can then pass this JSON string to the getServerError() function to extract and return error message(s). I don't know if this information will be useful to you or not, as I haven't seen the code, but this is pretty much all one needs to check :) - Original Message - From: Jonatan Soto seniledemen...@gmail.com To: user@ofbiz.apache.org Sent: Saturday, August 27, 2011 3:51:58 PM Subject: Re: Issue with ajax and json response Hi Atul, I've didn't got server error messages using what you said. Probably is something wrong in my code, but what I have noticed is that no matters what kind of response I set, the 'success' callback method is called. Anyway, how is handled the server response in this case? I mean, where can I find the code where the getServerError() JS function is called once we return the error response? Many thanks Atul. On Fri, Aug 26, 2011 at 7:32 PM, Atul Vani atul.v...@hotwaxmedia.comwrote: Jonatan, I think if you use response name=error type=request value=json/ (it is used in several places in ecommerce and other components' controller.xml) and then use the getServerError() function (used in specialpurpose/ecommerce/webapp/ecommerce/images/profile.js) to parse the JSON response, then you should be able to retrieve the error message to display it to the user. I'm not sure if it will be helpful, I didn't got the problem completely either ;-) - Original Message - From: Jonatan Soto seniledemen...@gmail.com To: user@ofbiz.apache.org Sent: Sunday, July 17, 2011 5:56:10 PM Subject: Re: Issue with ajax and json response Done. Patch provided, not fully tested. https://issues.apache.org/jira/browse/OFBIZ-4342 https://issues.apache.org/jira/browse/OFBIZ-4342Regards, On Sun, Jul 17, 2011 at 1:34 PM, Scott Gray scott.g...@hotwaxmedia.com wrote: Yeah, checking for the _ERROR_MESSAGE* keys is the right way to go, would be great if you could create a jira issue so this doesn't get lost. Regards Scott HotWax Media http://www.hotwaxmedia.com On 17/07/2011, at 7:56 AM, Jonatan Soto wrote: Well, I did a little read on the jquery ajax documentation ( http://api.jquery.com/jQuery.ajax/) and some of my assertions were wrong. It is definitively not related to the CommonEvents#jsonResponseFromRequestAttributes. I felt stupid when I realized that the result the controller returns has nothing to do with the ajax callbacks :) According to this doc the error callback is: A function to be called if the request fails In the case I'm exposing, obviously the request is not failing so the error I'm getting should be handled in the success callback. Please, tell me if there is another way to do it. I found a js function in the CheckoutProcess.js called getServerError(...) which is never invoked. I think it should be included in the success callback like the following code: (chekoutProcess.js) // Check server side error function getServerError(data) { var serverErrorHash = []; var serverError = ; if (data._ERROR_MESSAGE_LIST_ != undefined) { serverErrorHash = data._ERROR_MESSAGE_LIST_; jQuery.each(serverErrorHash, function(i, error) { serverError += error.message + 'br/'; }); } if (data._ERROR_MESSAGE_ != undefined) { serverError = data._ERROR_MESSAGE_; } return serverError; } function createUpdateCustomerAndShippingAddress() { var result = false; jQuery.ajax({ url: 'createUpdateShippingAddress', type: 'POST', dataType: 'json', async: false, data: jQuery('#shippingForm').serialize(), success: function(json) { var serverError = getServerError(json); if (!serverError) { jQuery('#shippingFormServerError').fadeOut('fast'); // Process Shipping data response. jQuery('#shipToPartyId').val(json.partyId); jQuery('#billToPartyId').val(json.partyId); jQuery('#shipToContactMechId').val(json.contactMechId); jQuery('#shipToPhoneContactMechId').val(json.phoneContactMechId); jQuery('#emailContactMechId').val(json.emailContactMechId); //jQuery('#completedShippingMethod').html(json.shippingDescription); updateShippingSummary(); getShipOptions(); result = true; } else { jQuery('#shippingFormServerError').html(serverError); jQuery('#shippingFormServerError').css(display,block); result = false
Re: Trunk demo restarted
Just out of curiosity, why aren't the changes revert on every restart? - Original Message - From: Jacques Le Roux jacques.le.r...@les7arts.com To: user@ofbiz.apache.org Sent: Thursday, August 25, 2011 5:40:15 PM Subject: Re: Trunk demo restarted Sam, BJ, all, We have currently a problem with stable demo. We are investigating... Thanks, but we don't care about console.log or any logs at all. Boht demos are restarted each day with ALL cleaned, including DB. Actually not ALL because sources are only updated. We don't revert them, we have some VM specific changes there and we took it easy. That why I asked for uilabels changes there. They must have been done by a committer. BTW I found a lot more labels changes on stable, fortunately w/out conflicts. I did not revert them, but please, if there are relevant they should really be committed... For Tomcat yes it's certainly a good idea... Just needs some cycles... Jacques - Original Message - From: Sam Hamilton To: user@ofbiz.apache.org Sent: Thursday, August 25, 2011 11:36 AM Subject: Re: Trunk demo restarted Tomcat did some work to reduce load from google crawls and is in v7 - http://www.theserverside.com/discussions/thread.tss?thread_id=62375 perhaps upgrading would help ease the problem??? The other thing that springs to mind is rotating the console log out at a certain size? Perhaps the VM runs low on drive space? Sam On 25 Aug 2011, at 16:49, BJ Freeman wrote: I have noted the the console.log gets up to about 15gigs. the access file is about 254mb of Google accessing ofbiz very fast. the re-occurring error is Derby. Note I have google accessing my production site with more than that but no console.log. I am also running postresql on the production site. Jacques Le Roux sent the following on 8/20/2011 1:12 AM: Hi, I have restarted trunk demo. I got a conflict with OrderUiLabels.xml so had to revert. I reverted also some other uilabels files. Was someone playing with them? Jacques
Re: Issue with ajax and json response
Ok, hadn't checked the code yet, did it now, my bad :) What I oberved is that when I enter promo code, it fires an ajax request and don't display me the error message when I entered the wrong code, need to fix that. Well, the interesting part is, it then fires another ajax request to check if the cart is empty, how possibly can a cart get empty by applying a promo code :-/ And then it fires another one to update the cart with the discounted price. Why don't we return the updated cart along with the error message, if any, and replace the existing html with the new one, so that user is displayed with the error message and the updated cart both, will also save us two extra ajax requests. Another thing I noticed is that lot's of elements are being identified using their ids, not so good. - Original Message - From: Atul Vani atul.v...@hotwaxmedia.com To: user@ofbiz.apache.org Sent: Sunday, August 28, 2011 10:47:07 PM Subject: Re: Issue with ajax and json response Jonatan, IMO, the event you invoked in your request mapping should be fixed to return error response, when they get errors. It will cause the error response to be rendered instead of the success. Then you can use type=request value=json for the error response. The responseText recieved by the ajax will be a JSON String. You can then pass this JSON string to the getServerError() function to extract and return error message(s). I don't know if this information will be useful to you or not, as I haven't seen the code, but this is pretty much all one needs to check :) - Original Message - From: Jonatan Soto seniledemen...@gmail.com To: user@ofbiz.apache.org Sent: Saturday, August 27, 2011 3:51:58 PM Subject: Re: Issue with ajax and json response Hi Atul, I've didn't got server error messages using what you said. Probably is something wrong in my code, but what I have noticed is that no matters what kind of response I set, the 'success' callback method is called. Anyway, how is handled the server response in this case? I mean, where can I find the code where the getServerError() JS function is called once we return the error response? Many thanks Atul. On Fri, Aug 26, 2011 at 7:32 PM, Atul Vani atul.v...@hotwaxmedia.comwrote: Jonatan, I think if you use response name=error type=request value=json/ (it is used in several places in ecommerce and other components' controller.xml) and then use the getServerError() function (used in specialpurpose/ecommerce/webapp/ecommerce/images/profile.js) to parse the JSON response, then you should be able to retrieve the error message to display it to the user. I'm not sure if it will be helpful, I didn't got the problem completely either ;-) - Original Message - From: Jonatan Soto seniledemen...@gmail.com To: user@ofbiz.apache.org Sent: Sunday, July 17, 2011 5:56:10 PM Subject: Re: Issue with ajax and json response Done. Patch provided, not fully tested. https://issues.apache.org/jira/browse/OFBIZ-4342 https://issues.apache.org/jira/browse/OFBIZ-4342Regards, On Sun, Jul 17, 2011 at 1:34 PM, Scott Gray scott.g...@hotwaxmedia.com wrote: Yeah, checking for the _ERROR_MESSAGE* keys is the right way to go, would be great if you could create a jira issue so this doesn't get lost. Regards Scott HotWax Media http://www.hotwaxmedia.com On 17/07/2011, at 7:56 AM, Jonatan Soto wrote: Well, I did a little read on the jquery ajax documentation ( http://api.jquery.com/jQuery.ajax/) and some of my assertions were wrong. It is definitively not related to the CommonEvents#jsonResponseFromRequestAttributes. I felt stupid when I realized that the result the controller returns has nothing to do with the ajax callbacks :) According to this doc the error callback is: A function to be called if the request fails In the case I'm exposing, obviously the request is not failing so the error I'm getting should be handled in the success callback. Please, tell me if there is another way to do it. I found a js function in the CheckoutProcess.js called getServerError(...) which is never invoked. I think it should be included in the success callback like the following code: (chekoutProcess.js) // Check server side error function getServerError(data) { var serverErrorHash = []; var serverError = ; if (data._ERROR_MESSAGE_LIST_ != undefined) { serverErrorHash = data._ERROR_MESSAGE_LIST_; jQuery.each(serverErrorHash, function(i, error) { serverError += error.message + 'br/'; }); } if (data._ERROR_MESSAGE_ != undefined) { serverError = data._ERROR_MESSAGE_; } return serverError; } function createUpdateCustomerAndShippingAddress() { var result = false; jQuery.ajax({ url: 'createUpdateShippingAddress', type: 'POST', dataType: 'json
Re: Trunk demo restarted
Jacques, Thanks for the info :) Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On Monday 29 August 2011 02:30 AM, Jacques Le Roux wrote: Forwarded From: Jacques Le Roux jacques.le.r...@les7arts.com Atul, Because it would need to handle some specific changes, ie apply some patches, and, so far, nobody thought it would be worth Jacques From: Atul Vani atul.v...@hotwaxmedia.com Just out of curiosity, why aren't the changes revert on every restart? - Original Message - From: Jacques Le Roux jacques.le.r...@les7arts.com To: user@ofbiz.apache.org Sent: Thursday, August 25, 2011 5:40:15 PM Subject: Re: Trunk demo restarted Sam, BJ, all, We have currently a problem with stable demo. We are investigating... Thanks, but we don't care about console.log or any logs at all. Boht demos are restarted each day with ALL cleaned, including DB. Actually not ALL because sources are only updated. We don't revert them, we have some VM specific changes there and we took it easy. That why I asked for uilabels changes there. They must have been done by a committer. BTW I found a lot more labels changes on stable, fortunately w/out conflicts. I did not revert them, but please, if there are relevant they should really be committed... For Tomcat yes it's certainly a good idea... Just needs some cycles... Jacques - Original Message - From: Sam Hamilton To: user@ofbiz.apache.org Sent: Thursday, August 25, 2011 11:36 AM Subject: Re: Trunk demo restarted Tomcat did some work to reduce load from google crawls and is in v7 - http://www.theserverside.com/discussions/thread.tss?thread_id=62375 perhaps upgrading would help ease the problem??? The other thing that springs to mind is rotating the console log out at a certain size? Perhaps the VM runs low on drive space? Sam On 25 Aug 2011, at 16:49, BJ Freeman wrote: I have noted the the console.log gets up to about 15gigs. the access file is about 254mb of Google accessing ofbiz very fast. the re-occurring error is Derby. Note I have google accessing my production site with more than that but no console.log. I am also running postresql on the production site. Jacques Le Roux sent the following on 8/20/2011 1:12 AM: Hi, I have restarted trunk demo. I got a conflict with OrderUiLabels.xml so had to revert. I reverted also some other uilabels files. Was someone playing with them? Jacques
Re: Issue with ajax and json response
Jonatan, I think if you use response name=error type=request value=json/ (it is used in several places in ecommerce and other components' controller.xml) and then use the getServerError() function (used in specialpurpose/ecommerce/webapp/ecommerce/images/profile.js) to parse the JSON response, then you should be able to retrieve the error message to display it to the user. I'm not sure if it will be helpful, I didn't got the problem completely either ;-) - Original Message - From: Jonatan Soto seniledemen...@gmail.com To: user@ofbiz.apache.org Sent: Sunday, July 17, 2011 5:56:10 PM Subject: Re: Issue with ajax and json response Done. Patch provided, not fully tested. https://issues.apache.org/jira/browse/OFBIZ-4342 https://issues.apache.org/jira/browse/OFBIZ-4342Regards, On Sun, Jul 17, 2011 at 1:34 PM, Scott Gray scott.g...@hotwaxmedia.comwrote: Yeah, checking for the _ERROR_MESSAGE* keys is the right way to go, would be great if you could create a jira issue so this doesn't get lost. Regards Scott HotWax Media http://www.hotwaxmedia.com On 17/07/2011, at 7:56 AM, Jonatan Soto wrote: Well, I did a little read on the jquery ajax documentation ( http://api.jquery.com/jQuery.ajax/) and some of my assertions were wrong. It is definitively not related to the CommonEvents#jsonResponseFromRequestAttributes. I felt stupid when I realized that the result the controller returns has nothing to do with the ajax callbacks :) According to this doc the error callback is: A function to be called if the request fails In the case I'm exposing, obviously the request is not failing so the error I'm getting should be handled in the success callback. Please, tell me if there is another way to do it. I found a js function in the CheckoutProcess.js called getServerError(...) which is never invoked. I think it should be included in the success callback like the following code: (chekoutProcess.js) // Check server side error function getServerError(data) { var serverErrorHash = []; var serverError = ; if (data._ERROR_MESSAGE_LIST_ != undefined) { serverErrorHash = data._ERROR_MESSAGE_LIST_; jQuery.each(serverErrorHash, function(i, error) { serverError += error.message + 'br/'; }); } if (data._ERROR_MESSAGE_ != undefined) { serverError = data._ERROR_MESSAGE_; } return serverError; } function createUpdateCustomerAndShippingAddress() { var result = false; jQuery.ajax({ url: 'createUpdateShippingAddress', type: 'POST', dataType: 'json', async: false, data: jQuery('#shippingForm').serialize(), success: function(json) { var serverError = getServerError(json); if (!serverError) { jQuery('#shippingFormServerError').fadeOut('fast'); // Process Shipping data response. jQuery('#shipToPartyId').val(json.partyId); jQuery('#billToPartyId').val(json.partyId); jQuery('#shipToContactMechId').val(json.contactMechId); jQuery('#shipToPhoneContactMechId').val(json.phoneContactMechId); jQuery('#emailContactMechId').val(json.emailContactMechId); //jQuery('#completedShippingMethod').html(json.shippingDescription); updateShippingSummary(); getShipOptions(); result = true; } else { jQuery('#shippingFormServerError').html(serverError); jQuery('#shippingFormServerError').css(display,block); result = false; } }, error: function(error) { if (error != ) { jQuery('#shippingFormServerError').html(error); } result = false; } }); return result; } Now with this modifications I am showing the server side error messages correctly. HTH On Sat, Jul 16, 2011 at 8:28 PM, Jonatan Soto seniledemen...@gmail.com wrote: Hi BJ, The setAnonuserLogin is an ECA triggered before. The problem is after it if I'm not wrong. Look at: 2011-07-16 19:44:35,399 (http-0.0.0.0-8443-2) [ ServiceDispatcher.java:599:INFO ] Sync service [traditional#JF/createUpdateCustomerAndShippingAddress] finished in [112] milliseconds with response [{errorMessageList={Area code is missing, Falta Teléfono de Contacto}, responseMessage=error}] ... 2011-07-16 19:44:35,504 (http-0.0.0.0-8443-2) [ RequestHandler.java:639:INFO ] Ran Event [java:org.ofbiz.common.CommonEvents#jsonResponseFromRequestAttributes] from [request], result is [success] The service that is called from ajax is returning 'error' but the chained json request is returning 'success'. I guess this is the problem. Thanks anyway! On Sat, Jul 16, 2011 at 8:18 PM, BJ Freeman bjf...@free-man.net wrote: [traditional#JF/setAnonUserLogin] finished in [105]
Re: Brainstorming about the Framework: General
+1 Can get something like Managed Reloading added in the webtools, will be handy. - Original Message - From: Jacques Le Roux jacques.le.r...@les7arts.com To: user@ofbiz.apache.org Sent: Saturday, July 16, 2011 2:56:30 PM Subject: Re: Brainstorming about the Framework: General I stumbled upon this discussion while looking at http://commons.apache.org/configuration/userguide/howto_filebased.html#Automatic_Reloading I have no plans at the moment, but I'd like to use something like that indeed Jacques From: Erwan de FERRIERES erwan.de-ferrie...@nereide.fr Le 14/03/2010 17:57, Joe Eckard a écrit : Something I've thought about from time to time but never followed through all the way to make sure there are no glaring problems: switch UtilProperties to use something like Commons Configuration. This would essentially put all configuration variables into one namespace, where they would be accessed via XPath expressions. You could pull and merge from various sources like properties files or XML files, get (optional) automatic saving / reloading, and (optional) property overriding. The main reason for this would be to have a single file you could use for deployment (dev.xml, staging.xml, production.xml, etc) - drop this in your hot-deploy component and have it override the values in framework / applications. Very good thought ! Have you already got a POC ? -- Erwan de FERRIERES www.nereide.biz
Re: Category Level Price
Not sure how good of a solution it is, but you can do it by setting price rules too (condition:category, action:flatAmountOverride). Though you will need to create some price data for that to work. But things will be easily manageable after that. Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On Thursday 17 March 2011 10:20 PM, Bilgin Ibryam wrote: On Wed, Mar 16, 2011 at 8:33 AM, Jacques Le Roux jacques.le.r...@les7arts.com wrote: Why not use a seed data file, with possible proper import process? It's easy to edit and, I believe, certainly faster than any specific UI, more error prone tough (C/P, etc.)... If you don't want to maintain price information for each product separately, you could override calculateProductPrice service and introduce your custom price calculating logic based on categories. Bilgin Jacques From: araya...@kenfuse.com Hi Community, I have a requirement where there are lots of products (upto 50 or more in cases) under each category. Each of them are different but are priced the same with same rules etc. Right now the way seems to be setting up pricing details for each of these products (i.e. default and list price). However, this is painful for 100s of product if done through the user interface which is the preference. To simplify wondering if there is a way to apply some inheritence based on product's primary category. For example if there are no direct price associated can we look for prices associated with the primary category . If that too is not available then recurse further to its primary parent all the way to the top potentially. An example scenario is music download by style / genre all of which are priced the same and there are potentially hundreds or thousands of them. Of course would love to override the price with a direct product price for cases but generally apply a site wide pricing. Is this possible? Do advice if there are simpler ways to model this or perhaps a support already exists. Thanks in advance ar -- View this message in context: http://ofbiz.135035.n4.nabble.com/Category-Level-Price-tp3380888p3380888.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Simplifying OFBiz screens
IMO you should not directly go and edit the files you want to modify This link will help you understand the right way of doing things https://cwiki.apache.org/OFBIZ/addressing-custom-requirements-in-ofbiz.html Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. On Wednesday 09 March 2011 10:18 PM, James McGill wrote: On Wed, Mar 9, 2011 at 8:40 AM, wdOnOFBizwdacca...@hotmail.com wrote: Thank you for the much appreciated response. I tried to use the hidden tag and was able to hide specific fields on the form. Could you tell me how I could hide a complete form? (Say Payments in Invoices) If you want to hide an entire form, you can usually do this by locating the *Screens.xml from which it is referenced, and removing a section (or 'decorator-section') from there. When you do this, it's fairly common that you want to keep functionality available to one set of users and hide it from others. One common way to do that is to use conditional widgets in a section, example applications/humanres/widget/RecruitmentScreens.xml#FindJobRequisitions
Re: HTML page with add to cart
I assume you'r familiar with how a html form works, how we can use it to submit data to any url. You will need to add the same form in your email template, for which you will need to follow the same path as suggested by Pranay. On Monday 28 February 2011 02:22 PM, Hardik Handa wrote: I am not asking for email options, all i ask is to add to cart using html. -Original Message- From: Pranay Pandey [mailto:pranay.pan...@hotwaxmedia.com] Sent: 28 February 2011 PM 02:18 To: user@ofbiz.apache.org Cc: Pranay Pandey Subject: Re: HTML page with add to cart Have you explored ProductStoreEmaiSetting and checked how it works? You need to check the process first and the general templates which are sent to customers from OFBiz like order confirm, order change etc. notifications. Different email notifications are associated with product store from where you can get the idea of setting up email templates in OFBiz. Thanks Regards -- Pranay Pandey On Feb 28, 2011, at 12:57 PM, Hardik Handa wrote: I have to create a HTML page which has to be mailed to the customers, which has the add to cart button and when it is clicked item automatically gets added to the cart in my ofbiz website, and then it gets re-directed to the homepage. Regards, Hardik Handa Software Engineer - CMHP-RETAIL-COE-eCommerce HCL Technologies Ltd. C-22A, Sector 57, NOIDA. 201301, UP. (India) Tel: +91-120-2586417-19 Mob: +91-9811671898 www.hcltech.comhttp://www.hcltech.com www.hcl.comhttp://www.hcl.in/ ::DISCLAIMER:: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. --- -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
Re: practice/hello1 app issues
Check your web.xml, it's structure doesn't seem to be a valid xml structure. Use web.xml from other components for reference. On Tuesday 15 February 2011 09:43 AM, Santosh Malviya wrote: Make sure whether your end tag ofweb-app is closed in web.xml or not. Thanks and Regards Santosh Malviya -Original Message- From: Kenneth G. Bice [mailto:awsnap.kenn...@gmail.com] Sent: Tuesday, February 15, 2011 9:35 AM To: user@ofbiz.apache.org Subject: practice/hello1 app issues Tutorial source: https://cwiki.apache.org/OFBIZ/ofbiz-tutorial-a-beginners-development-guide.html Console output: 2011-02-14 19:46:23,549 (main) [ ContextConfig.java:374:ERROR] Parse error in application web.xml file at jndi:/0.0.0.0/practice/WEB-INF/web.xml org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. This is the only output in the console log I could see that was relevant to my issue *ofbiz-component.xml output: ?xml version=1.0 encoding=UTF-8? ofbiz-component name=practice xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=http://ofbiz.apache.org/dtds/ofbiz-component.xsd; resource-loader name=main type=component/ webapp name=practice title=Practice server=default-server base-permission=OFBTOOLS location=webapp/practice mount-point=/practice app-bar-display=false/ /ofbiz-component *web.xml output: context-param param-namewebSiteId/param-name param-valuePRACTICE/param-value descriptionA unique ID used to look up the WebSite entity to get information about catalogs, etc./descr$ /context-param context-param param-namelocalDispatcherName/param-name param-valuepractice/param-value descriptionA unique name used to identify/recognize the local dispatcher for the Service Engine/descri$ /context-param context-param param-namemainDecoratorLocation/param-name param-valuecomponent://practice/widget/CommonScreens.xml/param-value descriptionThe location of the main-decorator screen to use for this webapp; referred to as a context v$ /context-param *Controller.xml output: ?xml version=1.0 encoding=UTF-8? site-conf xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=http://ofbiz.apache.org/dtds/site-conf.xsd; include location=component://common/webcommon/WEB-INF/common-controller.xml/ descriptionPractice Component Site Configuration File/description ownerCopyright 2001-2009 The Apache Software Foundation/owner handler name=screen type=view class=org.ofbiz.widget.screen.ScreenWidgetViewHandler/ !-- Request Mappings -- request-map uri=main security https=false auth=false/ response name=success type=view value=main/ /request-map !-- end of request mappings -- !-- View Mappings -- view-map name=main type=screen page=component://practice/widget/PracticeScreens.xml#main/ !-- end of view mappings -- /site-conf I have followed the tutorial to the best of my abilities several times and can not get past a 404 error which now is not even reporting a resource which is unavailable. If I have missed anything please let me know, I will post reply with the info. Apologies in advance, I am still new to OFBiz and its complexities, Thanks in advance also. KGB http://www.mindtree.com/email/disclaimer.html -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
Re: How to add couple of dependent drop downs in one form.
Check these links out, we use this and it works perfectly for any number of dependent dropdowns. http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-use-dependent-selects-for-managing-country-state-select-box-pair/ http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-dependent-selects-for-prototype/ On Thursday 03 February 2011 12:34 PM, Ravindra Mandre wrote: Hi all, I am facing a problem for adding more than one dependent drop down in one form. For example , I have to add one more dependent dropdown in create new customer form. while in this form a country-state drop down is already there. I found a comment in PartyScreens.xml of Party Manager component which says : (!-- fields for setDependentDropdownValuesJs.ftl, it's a try on generalization but there are still issues. For instance: what if we have 2 couple of dependent dropdowns in the same form? --) , so Is there any way to add more than one drop down. or above issue is Resolved or any other suggestion. Regards Ravindra Mandr -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
Re: calling screen from javascript
I am not sure why you want to do that, but for the code below to work that will need to be placed in an ftl (inside script tags). On Monday 07 February 2011 07:41 AM, BJ Freeman wrote: unless things changed lately all calls go through the controller. = BJ Freeman Strategic Power Office with Supplier Automation http://www.businessesnetwork.com/automation/viewforum.php?f=52 Specialtymarket.com http://www.specialtymarket.com/ Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man S.Hage sent the following on 2/6/2011 5:58 PM: Hi all, How I can call a screen from javascript like this: function xyz(){ ... ${screens.render(component://common/widget/CommonScreens.xml#states)}; . . . } thanks in advance. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
Re: calling screen from javascript
Not sure. Try something from here http://freemarker.sourceforge.net/docs/ref_builtins_string.html Better to find some other way to address it. On Monday 07 February 2011 08:27 AM, S.Hage wrote: when I us this ${screens.render(component://common/widget/CommonScreens.xml#states)}; in javascript function I got this error: Error: missing ; before statement Source File: https://localhost:8443//control/MyNewCustomer Line: 1771, Column: 5 Source Code: option value='IT-AG'Agrigento/option Any idea? thanks -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
Re: Product Status?
Hi Shereen, Those links don't answer your question directly. I gave them to you thinking that you will understand how Catalog Manager works and then will figure out the answer yourself. About your question, goto EditProduct page, there you will find 'Categories' tab, from here you can associate the porduct to multiple categories and catalog. Categories can have child categories too. I hope that solves your problem :) Shereen wrote: Thanks Freeman Thanks Atul I saw the links of the tutorials you sent me. unfortunately they didnt include my answers About Ruth Hoffman I've the other book called Apache_Ofbiz_Development_for_Beginners from packet publisher too it's a technical book when I viewed the table of contents of Ruth's book I found it from a technical point of view too right? I think my questions are more of a user just how at product to catalog when it will be active and such staff is those issues discussed in the book or I can find it somewhere else? Thanks in advance -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
Re: Product Status?
These links might be of help http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-how-to-setup-the-ofbiz-catalog-manager/ http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-managing-cross-sell-products-in-ofbiz/ Shereen wrote: Hi All I have really a simple question but there's something simple I cant do. How to add a product to a catalog I've problems understanding the catalogue I've read the wiki but there's something I don't understand about the addition of the product. That's what I've tried to do: went to the catalog manager main page Clicked on shortcut new product Entered all the needed information and the product successfully created when I click on certain catalog there's no tab for products that exists in that catalog should I add this product to a store then add the store to the catalog if so how? Thanks in advance -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.
Re: ftl permission question
Try searching security.hasEntityPermission and security.hasPermission in ftl files. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Shereen wrote: Hi all I'm asking about the possibilty of checking certain role in ftl file is it possible? for example I've done some custom changes regarding the order and I've created a stage called Manager approve this manager approve has a button just like hold order and cancel order in the order.ftl but I dont want this button or link to be available unless the logged user is a manager would anyone give me any ideas or suggestion on how to implement that I've already done some permission checking but using minilang in simple methods although I've put some permission checking on some screnlits but I think the case is different here I want the security to be done on certain link or button not screenlit not service Thanks in advance
Re: web path address problem, Is it a bug?
We generally use URLs of this type http://localhost:8080/practice/control/* So, the correct URL for main page would be http://localhost:8080/practice/control/main And for person page it would be http://localhost:8080/practice/control/person -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Santosh Singh wrote: *Hi all, we are novice for ofbiz.* yesterday when we are trying to create the Practice Application, noticed that on hitting the address in address bar of browser *http://localhost:8080/practice/control/person/main *or* http://localhost:8080/practice/control/main*, we got the same output of main page *http://localhost:8080/practice/control/main/person * or* http://localhost:8080/practice/main/person*, we got the same output of Person page. After a hrs of struggling found that it is also happens on the following links of demo site. *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/main/contactus http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus* out put are same. again it repeated with this also. *http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main http://demo-trunk.ofbiz.apache.org:8080/ecommerce/control/contactus/main* * *Are we doing something wrong or silly mistakes? or it is a kind of bug some redirection problem or something else. Please guide us, your great help will be appreciated whole heartedly. Kashi, Himanshu Santosh Singh.
Re: Modifying Form Data
Hi Jeremy, well, I said something similar, so if it's a text/ you can use text default-value=.../ -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Jeremy Olmstead wrote: But I want it to be editable. Isn't display just informational? On Mon, Jul 12, 2010 at 11:33 PM, Atul Vani atul.v...@hotwaxmedia.comwrote: Hi Jeremy, how about using it like fielddisplay description=${groovy: return(estimatedSetupMillis/6);}//field or something similar. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Jeremy Olmstead wrote: Thanks for the response. When I change from actions to row-actions I get nothing. Not even the 1 when entering a new routing. Am I missing something? And yes, I realize this will not update to the database. I plan to intercept UpdateRoutingTask and convert the data back to milliseconds before updating. Jeremy On Mon, Jul 12, 2010 at 1:35 PM, Adrian Crum adri...@hlmksw.com wrote: You will need a row action for that. Keep in mind if you change the field's value on the fly like that and the user clicks Save, the wrong value will get saved. -Adrian On 7/12/2010 11:04 AM, Jeremy Olmstead wrote: I would like to be able to take data to be displayed in a forms text field and manipulate it before it is displayed. How can I do this? See below for relevant example code. Here I want to display estimatedSetupMillis as minutes instead of milliseconds. file: RoutingTaskForms.xml form name=EditRoutingTask target=UpdateRoutingTask extends=EditRoutingTask extends-resource=component://manufacturing/widget/manufacturing/RoutingTaskForms.xml actions set field=estimatedSetupMillis value=${groovy: return(estimatedSetupMillis/6);}/ /actions This doesn't do anything. If I change the actions section to below, I get a 1 when creating a new task, but when editing a task I still just get the milliseconds. Obviously when in edit mode it just replaces estimatedSetupMillis with whatever is in the database. I also have a feeling that estimatedSetupMillis may not be defined yet in the actions section. How can I make it so I can modify the data before it gets displayed? actions set field=estimatedSetupMillis value=1/ /actions Regards, Jeremy Olmstead
Re: Modifying Form Data
Hi Jeremy, how about using it like fielddisplay description=${groovy: return(estimatedSetupMillis/6);}//field or something similar. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Jeremy Olmstead wrote: Thanks for the response. When I change from actions to row-actions I get nothing. Not even the 1 when entering a new routing. Am I missing something? And yes, I realize this will not update to the database. I plan to intercept UpdateRoutingTask and convert the data back to milliseconds before updating. Jeremy On Mon, Jul 12, 2010 at 1:35 PM, Adrian Crum adri...@hlmksw.com wrote: You will need a row action for that. Keep in mind if you change the field's value on the fly like that and the user clicks Save, the wrong value will get saved. -Adrian On 7/12/2010 11:04 AM, Jeremy Olmstead wrote: I would like to be able to take data to be displayed in a forms text field and manipulate it before it is displayed. How can I do this? See below for relevant example code. Here I want to display estimatedSetupMillis as minutes instead of milliseconds. file: RoutingTaskForms.xml form name=EditRoutingTask target=UpdateRoutingTask extends=EditRoutingTask extends-resource=component://manufacturing/widget/manufacturing/RoutingTaskForms.xml actions set field=estimatedSetupMillis value=${groovy: return(estimatedSetupMillis/6);}/ /actions This doesn't do anything. If I change the actions section to below, I get a 1 when creating a new task, but when editing a task I still just get the milliseconds. Obviously when in edit mode it just replaces estimatedSetupMillis with whatever is in the database. I also have a feeling that estimatedSetupMillis may not be defined yet in the actions section. How can I make it so I can modify the data before it gets displayed? actions set field=estimatedSetupMillis value=1/ /actions Regards, Jeremy Olmstead
Re: Date-time input method - time drop down broken!
Hi Kranti, The patch attached solves your problem. But I am trying to find a better solution at the framework level. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Kranti Agrawal wrote: Hi all, Please follow the following steps to understand the problem - 1. Go to WorkEffort - Calander. 2. Add new Event. The date-time field uses a time-dropdown input method. This lists the current time both the start and end time. This behavior is correct. 3. Change the start and end time of the event. Save it. 4. Edit the newly created event. Here, on the start and end time of the event, the current time is indicated, whereas I think it should display the time which was set for the event. How can this be fixed? Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com Index: applications/workeffort/widget/CalendarForms.xml === --- applications/workeffort/widget/CalendarForms.xml (revision 956539) +++ applications/workeffort/widget/CalendarForms.xml (working copy) @@ -103,8 +103,8 @@ /entity-options /drop-down /field -field name=estimatedStartDatedate-time input-method=time-dropdown //field -field name=estimatedCompletionDatedate-time input-method=time-dropdown//field +field name=estimatedStartDatedate-time input-method=time-dropdown default-value=${workEffort.estimatedStartDate}//field +field name=estimatedCompletionDatedate-time input-method=time-dropdown default-value=${workEffort.estimatedCompletionDate}//field field name=actualStartDate use-when=parentWorkEffortId!=nulldisplay type=date-time//field field name=actualCompletionDate use-when=parentWorkEffortId!=nulldisplay type=date-time//field field name=addButton use-when=workEffort==nullsubmit//field
Re: Nested fields in form-widgets
Hi Levenimeux, If you are so stuck with form-widget, then you might wanna use fielddisplay description=${groovy: org.ofbiz.foo(arg1, arg2, ...)} also-hidden=false//field and use some groovy to get your data in whatever format you need, you can have look at ProductDetail.groovy which creates js code in a variable and then returns it. or a better way is to not use form-widget for this. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Levenimeux wrote: Hi all, I'm trying (with my team) to build a new eCommerce webapp using OFBiz, and we're stuck with form-widgets, so here's the problem : - Need : I have two related tables (many to many), Items and their categories, I need to display Items for each category a part using form-widgets. So definitely I need a nested loop to do so. Here's my question : -- How can we Iterate in a single field (in this case category) ? Illustration : field //for each row we display all result rows of the inner field field /field field /field /field ThanX in advance :)
Re: groovy screen widget
hi Varun, try using 'type' attribute set field=foo value=${groovy: ...} type=.../ -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. varun bhansaly wrote: Hi, I am using ofbiz 09.04, facing an issue with groovy screen widget. my screen widget action contains - set field=*andCondition* value=*${groovy: return org.ofbiz.entity.condition.EntityCondition.makeCondition(isVirtual, Y)}* / In my groovy script *andCondition *is an instanceof *String* (isVirtual = Y) instead of *EntityCondition*. *What could be possibly wrong, am i missing something ? *
Re: how to execute my own sql by OFBiz delegator
hi Sheng, one way could be executing the raw SQL query, like stmt = connection.createStatement(); sql = SELECT ...; rs = stmt.executeQuery(sql); but i would rether prefer use of ComplexAlias, you can find an example in CountFacilityInventoryByProduct.groovy qohDiffComplexAlias = new ComplexAlias(-); qohDiffComplexAlias.addComplexAliasMember(new ComplexAliasField(IITE, quantityOnHandTotal, null, sum)); qohDiffComplexAlias.addComplexAliasMember(new ComplexAliasField(PRFA, minimumStock, null, null)); prodView.addAlias(null, offsetQOHQtyAvailable, null, null, null, null, null, qohDiffComplexAlias); atpDiffComplexAlias = new ComplexAlias(-); atpDiffComplexAlias.addComplexAliasMember(new ComplexAliasField(IITE, availableToPromiseTotal, null, sum)); atpDiffComplexAlias.addComplexAliasMember(new ComplexAliasField(PRFA, minimumStock, null, null)); prodView.addAlias(null, offsetATPQtyAvailable, null, null, null, null, null, atpDiffComplexAlias); -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. sheng wrote: Hello everyone, I have an entity defined as: entity entity-name=Commodity field name=quantity type=long/ field name=price type=long/ /entity How can l get the following sql execution result by OFBiz delegator? SELECT (quantity*price)/SUM(quantity) average FROM commodity WHERE price100; Thanks a lot
Re: How to customise a product category ?
hi Gaurav, you can do all that from catalog manager http://localhost:8080/catalog ecommerce application has demo products too with features associated with them. that would be a good reference. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. kaliagaurav wrote: Hi All I have created a catalog and added few products in a category which is perfectly working fine. Now I would like to know if I can customise that product from admin section so that user will be able to see that options and can select from displayed options. For example: I have created a product tshirts and I would like to show color and size drop down on product details page. Price will vary according to the size. How can I achieve this if possible? Please suggest Regards Gaurav
Re: Adding Products to Cloned Ecommerce Application
Hi Gaurav, check your main-decorator and if not there then screen for this set field=layoutSettings.companyName from-field=.../ you might wanna use a uiLabel for the from-field value. property key=CompanyName value xml:lang=enMy Company/value /property I always wondered why don't we have ${layoutSettings.companyName} replaced by ${layoutSettings.companyName?if_exists} in all themes. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. kaliagaurav wrote: Hi Scott Thanks for the explanation. As you have suggested I have added the store in that form and I have restated the application again but I am still getting error and this time I am getting two exceptions. First one is: Expression layoutSettings.companyName is undefined on line 29, column 14 in component://bluelight/includes/header.ftl. The problematic instruction: -- == ${layoutSettings.companyName} [on line 29, column 12 in component://bluelight/includes/header.ftl] -- And a part of second one is below: Caused by: org.ofbiz.base.util.GeneralException: Error running Groovy script at location [component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductSummary.groovy] (The following required parameter is missing: [getInventoryAvailableByFacility.facilityId]) at org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:410) at org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118) at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220) at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393) ... 92 more Caused by: org.ofbiz.service.ServiceValidationException: The following required parameter is missing: [getInventoryAvailableByFacility.facilityId] at org.ofbiz.service.ModelService.validate(ModelService.java:522) at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:372) at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:219) at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:159) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756) at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170) at ProductSummary.run(ProductSummary.groovy:60) at org.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:117) at org.ofbiz.widget.sc getInventoryAvailableByFacility.facilityId This is missing so i tried creating a facility and linked it with the party ID but no luck. How can I configure facility if its really necessary. Please suggest Regards Gaurav
Re: Adding Products to Cloned Ecommerce Application
hi Gaurav, you need to restart the server after adding it, if you have used uiLabel for it, if it works correctly, then first error should disappear. to correct myself, it needs to be added in main-decorator only, I mis-typed 'screen' too in previous reply. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. kaliagaurav wrote: Hi Atul It wasnt there so i have added it in maindecorator screen present in CommonScreens but sorry it did worked. I am still getting both the exception previously i was not getting this exception (first one). Just after I added store name in website form I started getting this error and error is coming without any template previously it were coming with the template that I am using. I am not sure what I am missing. Please suggest. Regards Gaurav
Re: Adding Products to Cloned Ecommerce Application
Hi Gaurav, please check if both the websites share same productStoreId. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. kaliagaurav wrote: Hi Atul After configuring InventoryfacilityID in store form all worked fine for me. I can see the products with in the template I have created for cloned application without any exceptions. But now I dont want the products to appear in any other application right now I can see them in main application (original). Please suggest Regards Gaurav
Re: ant create-component
Hi BJ, can you tell me how to reproduce the error, i got the same error a few days ago, but today when i tried it, it worked fine, and then i tried it severally but no luck... -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Shubham Dubey wrote: After Ant create component, we tend to remove some unused directory's entries from of-biz-component.xml and sometimes we remove entry classpath type=dir location=config/ Thanks and Regards Shubham Dubey Enterprise S/W Developer HotwaxMedia Pvt.Ltd BJ Freeman wrote: created a component and click on tab error message org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://createdcompentname/widget/CommonScreens.xml#main-decorator]: java.lang.IllegalArgumentException: Could not find resource bundle [createdcompentnameUiLabels] in the locale [en_US] (Could not find resource bundle [createdcompentnameUiLabels] in the locale [en_US]) I know it is something simple but for the life of me can't see it. = BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation http://www.businessesnetwork.com/automation/viewforum.php?f=52 Specialtymarket.com http://www.specialtymarket.com/ Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man Linkedin http://www.linkedin.com/profile?viewProfile=key=1237480locale=en_UStrk=tab_pro
Re: entity value between two days
Hi Anurag, you may wanna use getMonthStart() and getMonthEnd() from UtilDateTime.java if it's xml you want to you those functions in, then try set field=... value=${groovy: ... }/ -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Anurag Walia wrote: Hi all, Thanks to all for given your consideration. i want to fetch month wise data from entity but i am not getting any function through which i can do it. entity entity-name=attendance field name=partyId type=id-ne/field field name=date type=date/field field name=day type=id/field /entity date is the field on the basis of which i want to find the month specific data. Regards Anurag Walia
Re: StateList
Hi R.S., Glad to know your work's done. Just wanted to let you know that ant run-install doesn't remove old data, it just updates the data from data files. So if you have any new data in the database, like say you created a few customers, then it will not be affected. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. R. S. wrote: I have already entered a lot of data and so I wanted not to run run install. The use of the import function, was the best solution for me. Thank you. Best Regards Rudolf Atul Vani schrieb: Hi R.S., those steps were just another method of adding data to the database, of course you don't need to that explicitly, it's done automatically by ant run-install (or any other command which loads seed data) if you have added the data to GeoData_DE.xml (or may be you want to add it any other data file of your project, just for the sake of not editing OOTB files)
Re: StateList
Hello Jacques, R.S., I have created the issue, here's the link https://issues.apache.org/jira/browse/OFBIZ-3799 -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Jacques Le Roux wrote: R.S. Would you consider to add the data you created in a patch attached to a Jira? http://cwiki.apache.org/confluence/x/JIB2 TIA Jacques PS : 2d try, that's why I use a tiny link here. It seems plain links (even from https://cwiki.apache.org/confluence/display) have trouble to get through these last times... From: R. S. r...@meinkino.com Great, Thanks. All the time I thought that ant run-install would remove my old data. You leave and Learn :-) Atul Vani schrieb: Hi R.S., Glad to know your work's done. Just wanted to let you know that ant run-install doesn't remove old data, it just updates the data from data files. So if you have any new data in the database, like say you created a few customers, then it will not be affected.
Re: StateList
Hi All, I wonder if the problem R.S. faced was actually a bug or done so intentionally. If it's a mistake I would like to provide a patch and get it fixed. Please share you opinions. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. R. S. wrote: Thank you Atul, sorry I don't have your mail read correctly. Now I know what you meant :-) Best Regards, Rudolf Atul Vani schrieb: Hi R.S., When you will add the data mentioned and re-install the data (or you can also use webtools' import facility), the view entity will get populated automatically :)
Re: Form widget validation
Hi Jacques, Please modify the FAQ and replace 'formName' with 'formId'. It would be clearer that way. Thanks :) -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Jacques Le Roux wrote: Finally I put back your code Atul: safer indeed! Jacques From: Atul Vani atul.v...@hotwaxmedia.com Hello Varun, no wonder this code is simple and correct, just wanted to tell you that we do take some safety measures before writing such code, for example, before using $('foo') we should make sure if it even exists or else the whole script won't load, we do that by if($('foo')){...} also, we need to make sure that if our script uses any element on the page then it should execute after the element has been loaded and we use Event.observe('window', 'load', function(){...}) i hope this info be helpful to you. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Varun Bhansaly wrote: Hi, Step 1 could be simplified as script type=text/javascript new Validation('form-id'); /script Step 2 remains the same, Some tweaks are required while showing validation msgs for lookup widgets. Thanks,
Re: StateList
Hi R.S., The deprecated warning is coz of EntityExpr you can use EntityCondition instead. About GeoAssocAndGeoTo, rel-optional is not something that would be of help here. and with just the data loaded properly it should show up. I tried it on demo-stable server and it works for me. you can verify it from https://demo-stable.ofbiz.apache.org:8443/webtools/control/FindGeneric?entityName=GeoAssocAndGeoTo just in case, if you need steps, 1. goto https://localhost:8443/webtools/control/EntityImport 2. paste the data below and hit 'Import Text button. GeoAssoc geoId=DE geoIdTo=DE-BW geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-BY geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-BE geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-BR geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-HB geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-HH geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-HE geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-MV geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-NI geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-NW geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-RP geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-SL geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-SH geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-SN geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-SA geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-TH geoAssocTypeId=REGIONS/ 3. verify the data from https://localhost:8443/webtools/control/FindGeneric?entityName=GeoAssocAndGeoTo -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. R. S. wrote: IMHO the Entity View uses an inner join and that is one of the reasons why all the 16 German states doesn't appear in this view. After I added GeoAssoc geoId=DE geoIdTo=DE-BW geoAssocTypeId=REGIONS/ (and other 15 states) to the /framework/common/dataGeoData_DE.xml, rebuild and restart the server, nothing happend in the GeoAssocAndGeoTo Entity View. To do an outer join with rel-optional=true brought also nothing. I don't know if it is a bug or my disability :-) Maybe I make something wrong. The other question is, why I get a deprecated warning after I add this EntityCondition.makeCondition(geoTypeId, STATE), new EntityExpr(geoId, EntityOperator.LIKE, DE-%)); to CommonWorkers.java Best Regards, Rudolf Atul Vani schrieb: Hi All, I wonder if the problem R.S. faced was actually a bug or done so intentionally. If it's a mistake I would like to provide a patch and get it fixed. Please share you opinions.
Re: Form widget validation
Thanks Jacques :) -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Jacques Le Roux wrote: Thanks Atul, Varun, Atul, I put you tip in FAQ with a link to Varun's Jacques From: Atul Vani atul.v...@hotwaxmedia.com hi Varun, glad to know your problem's solved. and it sure is a nice document, thanks for sharing :) -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ varun bhansaly wrote: Thanks Atul, this is good starting point http://tetlaw.id.au/view/javascript/really-easy-field-validation http://tetlaw.id.au/view/javascript/really-easy-field-validationand yes attribute 'widget-style' holds the key.. On Sat, May 29, 2010 at 12:00 PM, Atul Vani atul.v...@hotwaxmedia.comwrote: hi Varun, never came across use of validation.js in xml forms but this is the sort of thing you need to do 1. include a js code like below:- Event.observe(window, 'load', function() { if ($('formName')) validateNewUser = new Validation('formName', {immediate: true}); } 2. and in the respective form use the suitable class for form fields field ... widget-style=required ... /field field ... widget-style=validate-email ... /field field ... widget-style=validate-url ... /field etc go through the validation.js and you will know about other possible options available. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ varun bhansaly wrote: Hi Atul, Thanks for the response ! is it already being used somewhere in d app ? On Sat, May 29, 2010 at 10:11 AM, Atul Vani atul.v...@hotwaxmedia.com wrote: hi Varun, you can make use of validation.js from ofbiz-trunk/framework/images/webapp/images/prototypejs/validation.js for it to work you will need to apply class to form-fields which can be done using field ... widget-style=/ you will also need to make a validator's object in javascript. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ varun bhansaly wrote: Hi, What would be the simplest optimal way to validate xml forms ? Also is there a way to make use of existing validation frameworks as http://js-validator.sourceforge.net/ to validate form fields of xml forms ? If some1 has done sumthing like this or has sum other ideas, it wud b great to them.
Re: StateList
Hi R.S., using this method getAssociatedStateList() should be appropriate from the CommonWorkers.java but seem like there's no supporting data of German States is present either. So, you will need to Edit ofbiz_trunk/framework/common/dataGeoData_DE.xml and add entries like below for each State GeoAssoc geoId=DE geoIdTo=DE-BW geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-BY geoAssocTypeId=REGIONS/ -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. R. S. wrote: Hi, I changed the method getStateList in the file CommonWorkers.java from: EntityCondition condition = EntityCondition.makeCondition(EntityOperator.OR, EntityCondition.makeCondition(geoTypeId, STATE), EntityCondition.makeCondition(geoTypeId, PROVINCE), EntityCondition.makeCondition(geoTypeId, TERRITORY)); to: EntityCondition condition = EntityCondition.makeCondition(EntityOperator.AND, EntityCondition.makeCondition(geoTypeId, STATE), new EntityExpr(geoId, EntityOperator.LIKE, DE-%)); It works fine and shows me all the 16 German states. But during the build process I get a following warning: classes: [javac15] Compiling 1 source file to /home/.../ofbiz-9.04/framework/common/build/classes [javac15] /home/.../ofbiz-9.04/framework/common/src/org/ofbiz/common/CommonWorkers.java:72: warning: [deprecation] EntityExpr(java.lang.String,org.ofbiz.entity.condition.EntityComparisonOperator,java.lang.Object) in org.ofbiz.entity.condition.EntityExpr has been deprecated [javac15] EntityCondition.makeCondition(geoTypeId, STATE), new EntityExpr(geoId, EntityOperator.LIKE, DE-%)); [javac15] ^ [javac15] 1 warning My question is, what is the best Method to search and present things like the 16 states to user. Like I did or to search for all states (there are approximately 170) and then to filter the things I need in the ftl? Regards, Rudolf
Re: StateList
Hi R.S., When you will add the data mentioned and re-install the data (or you can also use webtools' import facility), the view entity will get populated automatically :) -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. R. S. wrote: Thank You Atul, I saw that the method getAssociatedStateList() doesn`t support German states and that is the reason I asked. The entries are already in the dataGeoData_DE.xml file. It seems that getAssociatedStateList() use the GeoAssocAndGeoTo View Entity and I don't know why the German States are not in this View Entity. Is it possible to change this to show the German States in this View Entity too? Temporally I did this in framework/common/webcommon/includes/states.ftl : #assign states = Static[org.ofbiz.common.CommonWorkers].getStateList(delegator) #list states as state #if '${state.geoId}'?starts_with(DE-) option value='${state.geoId}'${state.geoName?default(state.geoId)}/option /#if /#list Regards Rudolf Atul Vani schrieb: Hi R.S., using this method getAssociatedStateList() should be appropriate from the CommonWorkers.java but seem like there's no supporting data of German States is present either. So, you will need to Edit ofbiz_trunk/framework/common/dataGeoData_DE.xml and add entries like below for each State GeoAssoc geoId=DE geoIdTo=DE-BW geoAssocTypeId=REGIONS/ GeoAssoc geoId=DE geoIdTo=DE-BY geoAssocTypeId=REGIONS/
Re: Form widget validation
Hello Varun, no wonder this code is simple and correct, just wanted to tell you that we do take some safety measures before writing such code, for example, before using $('foo') we should make sure if it even exists or else the whole script won't load, we do that by if($('foo')){...} also, we need to make sure that if our script uses any element on the page then it should execute after the element has been loaded and we use Event.observe('window', 'load', function(){...}) i hope this info be helpful to you. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself. Varun Bhansaly wrote: Hi, Step 1 could be simplified as script type=text/javascript new Validation('form-id'); /script Step 2 remains the same, Some tweaks are required while showing validation msgs for lookup widgets. Thanks,
Re: Form widget validation
hi Varun, never came across use of validation.js in xml forms but this is the sort of thing you need to do 1. include a js code like below:- Event.observe(window, 'load', function() { if ($('formName')) validateNewUser = new Validation('formName', {immediate: true}); } 2. and in the respective form use the suitable class for form fields field ... widget-style=required ... /field field ... widget-style=validate-email ... /field field ... widget-style=validate-url ... /field etc go through the validation.js and you will know about other possible options available. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ varun bhansaly wrote: Hi Atul, Thanks for the response ! is it already being used somewhere in d app ? On Sat, May 29, 2010 at 10:11 AM, Atul Vani atul.v...@hotwaxmedia.comwrote: hi Varun, you can make use of validation.js from ofbiz-trunk/framework/images/webapp/images/prototypejs/validation.js for it to work you will need to apply class to form-fields which can be done using field ... widget-style=/ you will also need to make a validator's object in javascript. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ varun bhansaly wrote: Hi, What would be the simplest optimal way to validate xml forms ? Also is there a way to make use of existing validation frameworks as http://js-validator.sourceforge.net/ to validate form fields of xml forms ? If some1 has done sumthing like this or has sum other ideas, it wud b great to them.
Re: Form widget validation
hi Varun, glad to know your problem's solved. and it sure is a nice document, thanks for sharing :) -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ varun bhansaly wrote: Thanks Atul, this is good starting point http://tetlaw.id.au/view/javascript/really-easy-field-validation http://tetlaw.id.au/view/javascript/really-easy-field-validationand yes attribute 'widget-style' holds the key.. On Sat, May 29, 2010 at 12:00 PM, Atul Vani atul.v...@hotwaxmedia.comwrote: hi Varun, never came across use of validation.js in xml forms but this is the sort of thing you need to do 1. include a js code like below:- Event.observe(window, 'load', function() { if ($('formName')) validateNewUser = new Validation('formName', {immediate: true}); } 2. and in the respective form use the suitable class for form fields field ... widget-style=required ... /field field ... widget-style=validate-email ... /field field ... widget-style=validate-url ... /field etc go through the validation.js and you will know about other possible options available. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ varun bhansaly wrote: Hi Atul, Thanks for the response ! is it already being used somewhere in d app ? On Sat, May 29, 2010 at 10:11 AM, Atul Vani atul.v...@hotwaxmedia.com wrote: hi Varun, you can make use of validation.js from ofbiz-trunk/framework/images/webapp/images/prototypejs/validation.js for it to work you will need to apply class to form-fields which can be done using field ... widget-style=/ you will also need to make a validator's object in javascript. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ varun bhansaly wrote: Hi, What would be the simplest optimal way to validate xml forms ? Also is there a way to make use of existing validation frameworks as http://js-validator.sourceforge.net/ to validate form fields of xml forms ? If some1 has done sumthing like this or has sum other ideas, it wud b great to them.
Re: Form widget validation
hi Varun, you can make use of validation.js from ofbiz-trunk/framework/images/webapp/images/prototypejs/validation.js for it to work you will need to apply class to form-fields which can be done using field ... widget-style=/ you will also need to make a validator's object in javascript. -- Thanks Regards Atul Vani Enterprise Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ varun bhansaly wrote: Hi, What would be the simplest optimal way to validate xml forms ? Also is there a way to make use of existing validation frameworks as http://js-validator.sourceforge.net/ to validate form fields of xml forms ? If some1 has done sumthing like this or has sum other ideas, it wud b great to them.
Re: Not able to navigate to a screen
hi Prasanthi, the EditAcctgTrans screen has a condition notif-empty field=acctgTransId//not which is not getting fulfilled, and there's nothing in the fail-widget/ hence a blank screen is displayed -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ prasanthi_ofbiz wrote: Hi , In Accounting module I need to navigate a screen from Edit Financial Account Transaction to Edit Accounting Transaction For this I mentioned request-map success view as EditAcctgTrans instead of EditFinAccountTrans in the controller . But its navigating a screen with only appbar menu and AccountingAppBar menu. Please help me in this issue... http://n4.nabble.com/file/n2221044/navigationScreen.png navigationScreen.png Regards, Prasanthi
Re: Not able to navigate to a screen
the decorator screen calls another decorator ('CommonPartyDecorator') which got its own conditions which needs be fulfilled, i didn't got much time to look into the problem but this should solve it... -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ prasanthi_ofbiz wrote: Hi vani, Its true.Thatsy i have created a new section with out that condition and with out decorator-screen and decorator-section then its navigating If you add the decorator-screen and decorator-section then again same problem.. http://n4.nabble.com/file/n2221121/withoutDecorationScreens.png withoutDecorationScreens.png Regards, Prasanthi
Re: calling multiple services in ofbiz
hi Prasanthi, you can include a menu in a screen using include-menu ... / tag if you have multiple screens that needs same menu then you can also create a decorator and use it in all those screens looking at your screenshots i think you might have missed to include the menu or for some reason it's not getting included, may be the conditions aren't fulfilled to include it. i hope this helps... -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ prasanthi_ofbiz wrote: Hi vani, I tried to render the page from the Financial Account Transaction screen to other screens in the third level menu like Menus.xml#AccountingAppBar, but its not able to navigate. I think the problem is like its not able to include the submenu which will contain the Accounting transaction screen. Financial Account is in the CommonScreens.xml where as Accounting transaction screen is in Menu.xml Attached the screens shots of all menu description screen, and the navigation screen from Financial Account Transaction to Accounting transaction Posting screen (10:39:57 AM) Shanthi(5375): Hi vani, I tried to render the page from the Financial Account Transaction screen to other screens in the third level menu like Menus.xml#AccountingAppBar, but its not able to navigate. I think the problem is like its not able to include the submenu which will contain the Accounting transaction screen. Financial Account is in the CommonScreens.xml where as Accounting transaction screen is in Menu.xml Attached the screens shots of all menu description screen, and the navigation screen from Financial Account Transaction to Accounting transaction Posting screen http://n4.nabble.com/file/n2219096/menuDescription.png menuDescription.png http://n4.nabble.com/file/n2219096/navigationScreen.png navigationScreen.png
Re: calling multiple services in ofbiz
prasanthi_ofbiz wrote: Hi Vani, I tried to include the form there it self earlier only but its giving rendering problem like, org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#FindScreenDecorator]: java.lang.RuntimeException: Error rendering included form named [AccountingAppBar] at location [component://accounting/widget/Menus.xml]: java.lang.NullPointerException (Error rendering included form named [AccountingAppBar] at location [component://accounting/widget/Menus.xml]: java.lang.NullPointerException) Please let me know what is the problem hi Prasanthi, there are three different tags include-menu/ include-form/ and include-screen/ for including menu, form and screen Error rendering included form named [AccountingAppBar] at location [component://accounting/widget/Menus.xml] [AccountingAppBar] is a menu i guess and you are supposed to use include-menu/ with it, i hope that helps. -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/
Re: Group By Query
hi Kranthi, to think of it again, when we use aggregate functions (like sum, average, count etc) on any column it's sort of rule to include all other columns in the groupBy clause, as these aggregate functions can be used using (and other) functions of GenericDelegator class, i think the groupBy is taken care of too. -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ Kranti Agrawal wrote: Thanks Atul, I'll have a look at it. Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com On Fri, May 14, 2010 at 4:01 PM, Atul Vani atul.v...@hotwaxmedia.comwrote: hi Kranti, you might wanna use setGroupBy function from DynamicViewEntity.java -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ Kranti Agrawal wrote: Hi, I need to do a query which will group by a particular element, like i need a count of all the male and female customers for my store. How do i do that? Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com
Re: calling multiple services in ofbiz
hi Prasanthi, I suggest you trace the control's flow and look for examples OOTB, it's really hard to find a problem this way. -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ prasanthi_ofbiz wrote: Hi vani, There is no error,but its navigating to that screen without the forms. Regards , Prasanthi
Re: Group By Query
hi Kranti, you might wanna use setGroupBy function from DynamicViewEntity.java -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ Kranti Agrawal wrote: Hi, I need to do a query which will group by a particular element, like i need a count of all the male and female customers for my store. How do i do that? Regards, Kranti Agrawal Student, IIIT Bangalore krantiagrawal.blogspot.com
Re: calling multiple services in ofbiz
hi Prasanthi, i didn't get whats the problem, but if you want to use out parameters of the service being called then you will have to do it like this call-service ... result-to-field ... / result-to-result ... / /call-service -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ prasanthi_ofbiz wrote: hi vani, If I call createAcctgTrans service from the normal flow its generating one acctgTransId and this id is to carrying forward where as if I call it from createFinAccountTrans service its not carrying the generated id so its giving a info message in the logger like 2010-05-14 15:19:41,972 (http-0.0.0.0-7443-2) [ PrimaryKeyFinder.java:141:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:AcctgTransEntry][acctgTransEntrySeqId,null()][acctgTransId,null()] If createAcctgTrans service called from the normal flow its giving info message in the log like PrimaryKeyFinder.java:141:INFO ] Returning null because found incomplete primary key in find: [GenericEntity:AcctgTransEntry][acctgTransEntrySeqId,null()][acctgTransId,10630(java.lang.String)] Is this a problem Please tell me how to pass it at that level
Re: calling multiple services in ofbiz
hi Prasanthi, use any of the below methods or a combination of them:- set-service-fields to-map=myServiceCtx service-name=myService map=parameters/ call-service service-name=myService in-map-name=myServiceCtx or set field=myServiceCtx.field1 from-field=.../ set field=myServiceCtx.field2 value=.../ call-service service-name=myService in-map-name=myServiceCtx/ -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ prasanthi_ofbiz wrote: Hi Vani, I called another service inside a service call, but how can i pass parameters to the second service. Like without passing parameters its giving below error The Following Errors Occurred: ERROR: Could not complete the Create a Financial Account Transaction [file:/home/openuser/newAccountingworkspace/ofbiz/applications/accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml#createFinAccountTrans] process [problem invoking the [createAcctgTransEntry] service with the map named [] containing [[userLogin=[GenericEntity:UserLogin][createdStamp,2009-11-03 19:18:54.302(java.sql.Timestamp)][createdTxStamp,2009-11-03 19:18:54.298(java.sql.Timestamp)][currentPassword,{SHA}1a62f67c13e6febb2eb9475d480b2b87f4593a5b(java.lang.String)][disabledDateTime,null()][enabled,Y(java.lang.String)][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2010-05-13 14:18:56.722(java.sql.Timestamp)][lastUpdatedTxStamp,2010-05-13 14:18:56.721(java.sql.Timestamp)][partyId,10020(java.lang.String)][passwordHint,p_mallik(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,p_mallik(java.lang.String)], locale=en_US]]: Required parameter is missing: [IN] [createAcctgTransEntry.acctgTransId]Required parameter is missing: [IN] [createAcctgTransEntry.debitCreditFlag]Required parameter is missing: [IN] [createAcctgTransEntry.organizationPartyId]] Attached the document which is detailed requirement. http://n4.nabble.com/file/n2197459/FinAcctg.doc FinAcctg.doc
Re: calling multiple services in ofbiz
hi Prasanthi, please do check the view-map name=EditAcctgTrans ... / present down in the controller.xml will need more info if that's not the problem. Thanks Regards Atul Vani - Original Message - From: prasanthi_ofbiz prasanthi.sreeramjammise...@tcs.com To: user@ofbiz.apache.org Sent: Thursday, May 13, 2010 8:23:21 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi Subject: Re: calling multiple services in ofbiz Hi Vani, Yeah I implemented the same its creating accounting translation but its now redirecting to the EditTrasaction Screen. In the controller i have given the response map to Edit Accoutning Transaction screen. Original Code: request-map uri=createFinAccountTrans security https=true auth=true/ event type=service path= invoke=createFinAccountTrans/ response name=success type=view value=EditFinAccountTrans/ response name=error type=view value=EditFinAccountTrans/ /request-map My Code: request-map uri=createFinAccountTrans security https=true auth=true/ event type=service path= invoke=createFinAccountTrans/ response name=success type=view value=EditAcctgTrans/ response name=error type=view value=EditAcctgTrans/ /request-map Instead of representing EditFinAccountTrans screen I have given the EditAcctgTrans Screen Please help me Thanks Regards, Prasanthi -- View this message in context: http://ofbiz.135035.n4.nabble.com/calling-multiple-services-in-ofbiz-tp2196098p2197643.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: calling multiple services in ofbiz
Hi Prasanthi, If its an error in the service then you can verify it in server logs. -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/ prasanthi_ofbiz wrote: Hi Vani, Inside the EditAcctgTrans there was some conditions for displaying the forms like 1.notif-empty field=acctgTransId//not 2. if-compare field=acctgTrans.isPosted operator=equals value=Y/ I have one double like while calling 2nd service from the 1st service i have written code like make-value entity-name=AcctgTrans value-field=newEntity1/ sequenced-id sequence-name=AcctgTrans field=newEntity1.acctgTransId/ set from-field=newEntity1.acctgTransId field=createAcctgTransParams.acctgTransId/ now-timestamp field=createAcctgTransParams.transactionDate/ set value=N field=createAcctgTransParams.isPosted/ set value=D field=createAcctgTransParams.debitCreditFlag/ set value=RECEIPT field=createAcctgTransParams.acctgTransTypeId/ set value=ACTUAL field=createAcctgTransParams.glFiscalTypeId/ call-service service-name=createAcctgTrans in-map-name=createAcctgTransParams include-user-login=true/ I think its not able to carry out the acctgTransId and isPosted to the screen thatsy empty screen is coming
Re: conditional form addition in the screen
hi Prasanthi, how about you use it like this:- screen name=... section condition.../condition actions.../actions widget/widget fail-widget section... ... .../section /failwidget /section /screen prasanthi_ofbiz wrote: Hi, I want to include a form into one ofbiz screen based on some condition. Please me help me out.. Ex: My Screen screen name=EditFinAccountTrans section actions set field=titleProperty value=PageTitleEditFinAccountTrans/ set field=tabButtonItem value=EditFinAccountTrans/ set field=finAccountId from-field=parameters.finAccountId/ entity-one entity-name=FinAccount value-field=finAccount/ set field=finAccountTransId from-field=parameters.finAccountTransId/ /actions widgets decorator-screen name=CommonFinAccountDecorator location=${parameters.finAccountDecoratorLocation} decorator-section name=body screenlet id=FinAccountTransPanel title=${uiLabelMap.PageTitleEditFinAccountTrans} ${uiLabelMap.CommonFor} ${finAccount.finAccountName} [${finAccountId}] collapsible=true include-form name=AddFinAccountTrans location=component://accounting/widget/FinAccountForms.xml/ /screenlet include-form name=ListFinAccountTransactions location=component://accounting/widget/FinAccountForms.xml/ include-form name=CreateAcctgTrans1 location=component://accounting/widget/GlForms.xml/ /decorator-section /decorator-screen /widgets /section /screen Requirement: if parameters.finAccountTransId has some value i.e: 0 then i need to include the form which is in bold, other wise i don't want to include/show that form in the screen... -- Thanks Regards Atul Vani Jr. Software Developer HotWax Media Pvt. Ltd. http://www.hotwaxmedia.com/