Ecommerce Error

2010-02-22 Thread Koon Sang
Hi, I got error on https://localhost:8443/ecommerce/control/ViewRequest?custRequestId=10032: Error rendering included template at location [component://order/webapp/ordermgr/request/requestInfo.ftl]: java.lang.IllegalArgumentException: FreeMarker file not found at location:

Error while creating purchase order

2010-02-22 Thread james_sg
Hi, I have encountered the following bug while adding a product when creating a purchase order. org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://order/widget/ordermgr/OrderEntryCatalogScreens.xml#productdetail]: groovy.lang.MissingPropertyException: No

Re: Error while creating purchase order

2010-02-22 Thread james_sg
The error occurs when the quantity is not specfied while adding the product to the purchase order. james_sg wrote: Hi, I have encountered the following bug while adding a product when creating a purchase order. org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen

groovy service code instead of minilang

2010-02-22 Thread Christopher Snow
I was wondering why groovy is not used for service code instead on minilang? Any thoughts? Many thanks, Chris

getting problem to fetch idValue field on ftl

2010-02-22 Thread Ravindra Mandre
Hi list, i am working on customising the find party screen and trying to list idValues present in PartyIdentification table just like how party area code, party types etc are listed. In partservices.java to list areacode, they have used *dynamicView.addMemberEntity(TM, TelecomNumber);* and to show

Re: getting problem to fetch idValue field on ftl

2010-02-22 Thread Awdesh Parihar
Ravindra, If you see findParty service in detail then you will find that there is no relation created with entity PartyIdentification in dynamic view entity , if you want to list IdValue then you have to first create relation b/w entities and then retrieve data accordingly -- Thanks Regards

Re: getting problem to fetch idValue field on ftl

2010-02-22 Thread Ravindra Mandre
Thanks Awdesh for your help . Regards Ravindra Mandre On Mon, Feb 22, 2010 at 6:33 PM, Awdesh Parihar awdesh.hot...@gmail.comwrote: Ravindra, If you see findParty service in detail then you will find that there is no relation created with entity PartyIdentification in dynamic view entity ,

Subversion is now part of apache

2010-02-22 Thread Amit Sharma
JFYI Subversion is now part of apache :-) http://subversion.apache.org/ -- Regards, Amit Sharma

Re: groovy service code instead of minilang

2010-02-22 Thread Jacques Le Roux
For the same reason Java is not used. Once you get a grasp on it you understand why it's there: productivity. http://cwiki.apache.org/confluence/display/OFBIZ/Mini-Language+Guide#Mini-LanguageGuide-introduction Jacques From: Christopher Snow sno...@snowconsulting.co.uk I was wondering why

Re: Subversion is now part of apache

2010-02-22 Thread Divesh Dutta
Thanks for sharing this Amit. Regards -- Divesh Dutta. Amit Sharma wrote: JFYI Subversion is now part of apache :-) http://subversion.apache.org/ -- Regards, Amit Sharma

Re: Subversion is now part of apache

2010-02-22 Thread Ashish Vijaywargiya
Wow, cool. Glad to know this. Welcome Subversion to ASF umbrella! -- Ashish On Mon, Feb 22, 2010 at 7:47 PM, Amit Sharma amit.sha...@hotwaxmedia.com wrote: JFYI Subversion is now part of apache  :-) http://subversion.apache.org/ -- Regards, Amit Sharma

Re: Javascript error in Catalog Manager: Edit Product

2010-02-22 Thread Jacques Le Roux
Thanks to both, Fixed at r912587 in trunk, r912601 in R9.04 Jacques From: Koon Sang koon-sang_kh...@igine.com Thanks! It works now, with Opera 10.10 too. Will anyone update the release? -- View this message in context:

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
Hi Jacques: IMHO, there is nothing productive about trying to write procedures using XML. I'd really like to see the Mini-Language facility augmented with support for something like Groovy, Bean Shell or PHP. Do you think that is possible? Those who like using XML can continue to do so. Those

Re: groovy service code instead of minilang

2010-02-22 Thread Jacopo Cappellato
On Feb 22, 2010, at 4:12 PM, Ruth Hoffman wrote: Hi Jacques: IMHO, there is nothing productive about trying to write procedures using XML. IMO Minilang is very productive. I'd really like to see the Mini-Language facility augmented with support for something like Groovy, Bean Shell or PHP.

Re: groovy service code instead of minilang

2010-02-22 Thread Jacques Le Roux
You just have to choose the right tool for the task at hand. For the moment, I prefer minilang when it comes to deal with simple CRUD services and a bit more elaborated. I agree that a groovy DSL could be a good thing though, I have just not enough time to even think about it... Jacques

Re: Ecommerce Error

2010-02-22 Thread james_sg
Hi, The requestInfo.ftl file didn't exist. I would suggest the following fix: Change from platform-specific htmlhtml-template location=component://order/webapp/ordermgr/request/requestInfo.ftl//html /platform-specific to screenlet title=${uiLabelMap.OrderRequest}

Re: Error in Update Inventory Item

2010-02-22 Thread james_sg
Hi, May I know how did you arrived at the https://localhost:8443/facility/control/UpdateInventoryItem page? Regards, James Koon Sang wrote: Hi, In https://localhost:8443/facility/control/UpdateInventoryItem, when I selected My Retail Store for the Facility Id and clicked on Create, I

Re: Scrap Factor

2010-02-22 Thread james_sg
It would be good if someone can commited the following bug fix Change from if (percScrapFactor.compareTo(bdHundred.negate()) 0 percScrapFactor.compareTo(bdHundred.negate()) 0) { to if (percScrapFactor.compareTo(bdHundred.negate()) 0 percScrapFactor.compareTo(bdHundred) 0) {

Re: Scrap Factor

2010-02-22 Thread Jacopo Cappellato
Thanks for the report and proposed fix James, I am going to review this and fix it. Regards, Jacopo On Feb 22, 2010, at 5:27 PM, james_sg wrote: It would be good if someone can commited the following bug fix Change from if (percScrapFactor.compareTo(bdHundred.negate()) 0

Re: Ecommerce Error

2010-02-22 Thread Adrian Crum
James, It would be helpful if you would follow the contributors best practices: http://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices -Adrian james_sg wrote: Hi, The requestInfo.ftl file didn't exist. I would suggest the following fix: Change from

Re: groovy service code instead of minilang

2010-02-22 Thread BJ Freeman
ofbiz is able to support anything if someone once to put the time into doing it. That said, minilang, is geared to the entities so is really a shortcut language to manipulate data. I see no difference in XML and C##, for Basic, or php. if someone had no proficiency in one of them, the one they are

Re: Scrap Factor

2010-02-22 Thread james_sg
Thanks Jacopo. Much Appreciated. Jacopo Cappellato-4 wrote: Thanks for the report and proposed fix James, I am going to review this and fix it. Regards, Jacopo -- View this message in context: http://n4.nabble.com/Scrap-Factor-tp1562477p1564757.html Sent from the OFBiz - User

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
Simple methods are intended to be good for a few things for data mapping operations (which is the bulk of what needs to be done in business applications), including: 1. fewer lines than Java/groovy 2. each line less complex than equivalent Java or groovy 3. scripts from different developers

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
David: IMO, what you say is true. When used as originally intended Simple Methods can't be beat. It is when Simple Methods are put together into complex services, that do more than data mapping, that this theory of operation starts to fall apart. Of course, that is just my opinion.

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
Are there any examples in OFBiz right now where you think that using Java or groovy would be easier to write and maintain than the simple-method it is implemented in? -David On Feb 22, 2010, at 10:20 AM, Ruth Hoffman wrote: David: IMO, what you say is true. When used as originally

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
Hi David: Off the top of my head, the send mail seca would be much easier to follow if it were coded in Java or groovy. I had a heck of a time figuring out why I was getting HTML formatting errors (on perfectly valid HTML) and trying to follow the sequence of events. In fact, I just ended up

Re: Scrap Factor

2010-02-22 Thread Jacopo Cappellato
Thanks James, this has been fixed in rev. 914991 Jacopo On Feb 22, 2010, at 5:48 PM, james_sg wrote: Thanks Jacopo. Much Appreciated. Jacopo Cappellato-4 wrote: Thanks for the report and proposed fix James, I am going to review this and fix it. Regards, Jacopo --

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
When you say send mail seca do you mean the sendMailFromTemplateSetting simple-method in the EmailServices.xml file? That one looks pretty straightforward to me... so I'm guessing you mean a different simple-method... -David On Feb 22, 2010, at 10:42 AM, Ruth Hoffman wrote: Hi David:

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
I think it was just a plain old fashion sendMail service call. It was a few months ago, so I don't remember exactly. David E Jones wrote: When you say send mail seca do you mean the sendMailFromTemplateSetting simple-method in the EmailServices.xml file? That one looks pretty straightforward

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
The sendMail service itself is written in Java, and is a bit of a doosie. I'm not sure if that's because it's written in Java per-se, it's maybe just a bit service that does a bunch of stuff (ie doesn't really mean it's bad just because it's in Java). -David On Feb 22, 2010, at 11:28 AM,

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
David: There are one or more Mini-language based services that are strung together before processing ever gets to the Java sendMail method call. I had to disable those services to get the sendMail service to work correctly for my situation. I'm not saying the Mini-language is bad. I'm saying

Ordering Products in specific quantity multiples per product

2010-02-22 Thread Stephen Rufle
I would like to setup product data such that certain products can only be bought is quantities of 5. How would I setup that data?

Re: Ordering Products in specific quantity multiples per product

2010-02-22 Thread Ruth Hoffman
Hi Stephen: Do you want to display one price for each product or a single price for all 5 products? Regards, Ruth Stephen Rufle wrote: I would like to setup product data such that certain products can only be bought is quantities of 5. How would I setup that data?

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
On Feb 22, 2010, at 12:23 PM, Ruth Hoffman wrote: David: There are one or more Mini-language based services that are strung together before processing ever gets to the Java sendMail method call. I had to disable those services to get the sendMail service to work correctly for my

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
David E Jones wrote: On Feb 22, 2010, at 12:23 PM, Ruth Hoffman wrote: David: There are one or more Mini-language based services that are strung together before processing ever gets to the Java sendMail method call. I had to disable those services to get the sendMail service to work

Re: Ordering Products in specific quantity multiples per product

2010-02-22 Thread Stephen Rufle
I want a product ABC-001 to only be able to be bought when a quantity of 5, 10, or 15 ... is specified . Otherwise I want to show an error. Ruth Hoffman wrote: Hi Stephen: Do you want to display one price for each product or a single price for all 5 products? Regards, Ruth Stephen Rufle

Re: Ordering Products in specific quantity multiples per product

2010-02-22 Thread Ruth Hoffman
Hi Stephen: Not sure you can do that out-of-the-box unless you attached some kind of Agreement with the product. An agreement could stipulate the minimum quantity required. As for the error processing that goes along with product agreements, I'm not sure how that would work. Maybe someone else

Re: groovy service code instead of minilang

2010-02-22 Thread David E Jones
Compelling argument. It's a beautiful style: restate the assertion as a lead in to argumentum ad hominem. Don't worry, I feel it too... it's hard to watch anything about news or politics these days without having this pattern drilled into one's head. Anyway, as for the sendMail and related

Re: Ordering Products in specific quantity multiples per product

2010-02-22 Thread David E Jones
The easiest way is to create a product that represents five of the items (Product.quantityIncluded=5), and then each unit they order will mean 5 actual items fulfilled. That packaging can be done implicitly, or you could even use one of the Marketing Package product types and then associated

Re: Ordering Products in specific quantity multiples per product

2010-02-22 Thread Ruth Hoffman
Maybe I misunderstood, but it looks like Stephen didn't necessarily want to offer it in bundles of 5, but rather as a single item requiring that the user enters quantities in multiples of 5. If I misunderstood, sorry. Bundling, I agree, is the way to go in that case. Regards, Ruth David E

how to pass a list from the .groovy level to screen.xml level?

2010-02-22 Thread Patrick
How can I pass my variables (I need to pass a list) from the .groovy level to the screen.xml level? I'm going to create X forms where X is the size of my list. Then I am going to populate the forms with the list elements. Thanks in advance Patrick

Re: groovy service code instead of minilang

2010-02-22 Thread Adrian Crum
Ruth Hoffman wrote: I tried using the Mini Language to create some Simple Services and I found that in each situation, CRUD operations were only the tip of the ice-berg as far as developing applications was concerned. My applications do much more than update database records. To go beyond

Re: how to pass a list from the .groovy level to screen.xml level?

2010-02-22 Thread Scott Gray
Hi Patrick, Just assign them to the context map in groovy like this: context.myListOfStuff = myGroovyList; Anything assigned to the context map will be available to the screen once the script has run. Regards Scott HotWax Media http://www.hotwaxmedia.com On 22/02/2010, at 4:08 PM, Patrick

Re: No Message for Successful Change of Password

2010-02-22 Thread Scott Gray
Hi Koon, Please create a jira issue for this. Thanks Scott HotWax Media http://www.hotwaxmedia.com On 21/02/2010, at 6:33 PM, Koon Sang wrote: I change login password from MyPortal My Profile. After clicking Save button, the page just refreshes and there is no way for me to know whether

Re: groovy service code instead of minilang

2010-02-22 Thread Hans Bakker
Ruth, you suffer from the problem which you share with most programmers with some experience: they like to use what they know and do not want to invest some time learning something new, even if it has proven to be better. Typically the learning time for ofbiz minilanguage is about 2-3 days if

Re: groovy service code instead of minilang

2010-02-22 Thread Ruth Hoffman
Hi Hans: You are so right when you say I like to use what they know. And here is my corollary to your diagnosis: I don't program that often (maybe once a month when I have some spare time), but when I do it is so much easier for me to look at a Java program and remember how to solve a

Error in Rejecting Request

2010-02-22 Thread Koon Sang
Hi, In Order Manager Requests, when I clicked on any request in Customer Request List, I got the following error: org.ofbiz.webapp.control.RequestHandlerException: No definition found for view with name [] Kindly advise. Version: 9.04 (2010-2-17) -- View this message in context:

Re: New OFBiz stable release

2010-02-22 Thread Anil Patel
So, are we set for next Ofbiz Branch named 10.04 ? If we decide on _date_, I can have a team of developers scheduled to start testing branch code. This will allow to quickly stabilize ofbiz release for common ecommerce use. How about EOD March 31st 10 GMT? Thanks and Regards Anil Patel HotWax

Re: Error in Update Inventory Item

2010-02-22 Thread Atul Vani
a GenericValue object means a map (where key value pairs exist), it seems like the GenericValue object being used by update service doesn't match with that of the Facility entity, i will check for more details and get back to you... Koon Sang wrote: Hi, In

Re: Ecommerce Error

2010-02-22 Thread Atul Vani
you are getting this error coz by default there is no such file at this location (/ofbiz/applications/order/webapp/ordermgr/request) in ofbiz trunk the file included in your screen doesn't exist... Koon Sang wrote: Hi, I got error on

Re: New OFBiz stable release

2010-02-22 Thread Erwan de FERRIERES
On 23/02/2010 05:11, Anil Patel wrote: So, are we set for next Ofbiz Branch named 10.04 ? If we decide on _date_, I can have a team of developers scheduled to start testing branch code. This will allow to quickly stabilize ofbiz release for common ecommerce use. How about EOD March 31st 10

Re: groovy service code instead of minilang

2010-02-22 Thread Jacopo Cappellato
On Feb 23, 2010, at 3:53 AM, Ruth Hoffman wrote: If it takes 2-3 days to learn the mini-language, then I have to do that it each and every time I need to use it. Java (PHP, Bean Shell, Groovy...) takes me 5-10 minutes no matter how long I've been away from it. This is an interesting