Re: Problem with StatusItem table
Hi Anurag, Have a look in the *EntityLabels.xml files, they are used for internationalization of seed data descriptions. Just to a search for the keys you've mentioned below and you should see the files pop up in the results. Change the descriptions in those files and you'll see the changes reflected in the UI. Regards Scott HotWax Media http://www.hotwaxmedia.com On 15/07/2010, at 5:56 PM, Anurag Walia wrote: Hi all, Thanks in advance for time to comment on it. I have a problem with StatusItem table while i had changed the description for CRQ_ACCEPTED,CRQ_REVIEWED and CRQ_ .. but the are not reflecting on find request status drop down and other place also. please if any know what is the reason please provide. Anurag Walia -- View this message in context: http://ofbiz.135035.n4.nabble.com/Problem-with-StatusItem-table-tp2289708p2289708.html Sent from the OFBiz - User mailing list archive at Nabble.com. smime.p7s Description: S/MIME cryptographic signature
Re: Multiple internal organizations on top
Hi Jonatan, You can load your own data (ext data) into a tenant database executing the next command in $OFBIZ_HOME: java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -readers=ext -delegator=default#${tenantId} Where ${tenantId} is the ID of the tenant where you want to load your data. Is this that you need? - David Cervera - dcervera at disid dot com DiSiD Technologies, S.L. - http://www.disid.com www.disid.com -- View this message in context: http://ofbiz.135035.n4.nabble.com/Multiple-internal-organizations-on-top-tp2275366p2289756.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Problem with StatusItem table
Thanks dear for your valuable reply, this problem in opentaps in which .property file used for I18N so i have checked and searched . but i haven't find the key in any .property file yet.. while syntax in the form for drop down is like: field name=statusId title=${uiLabelMap.CommonStatus} position=1 display-entity entity-name=StatusItem/ /field -- View this message in context: http://ofbiz.135035.n4.nabble.com/Problem-with-StatusItem-table-tp2289708p2289764.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Multiple internal organizations on top
Actually that's what I have done for now. What I need is to load different ext data to each tenant. So I am thinking if it is possible to create a different reader (eg: ext_Company1, ext_Company2). I also have another doubt related to the databases needed. As I followed the multitenancy support specified on the wiki I've created a normal database (default), and the tetants databases (DEMO1, DEMO2). I understand that the default database is only necessary to store the tenants information, so I think it's mandatory to create it. Is that right? In that case, may I only create the default database specifying only the group-name=org.ofbiz.tenant in the delegator? Thanks a lot for your support! On Thu, Jul 15, 2010 at 9:13 AM, David-DiSiD Technologies dcerv...@disid.com wrote: Hi Jonatan, You can load your own data (ext data) into a tenant database executing the next command in $OFBIZ_HOME: java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -readers=ext -delegator=default#${tenantId} Where ${tenantId} is the ID of the tenant where you want to load your data. Is this that you need? - David Cervera - dcervera at disid dot com DiSiD Technologies, S.L. - http://www.disid.com www.disid.com -- View this message in context: http://ofbiz.135035.n4.nabble.com/Multiple-internal-organizations-on-top-tp2275366p2289756.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- - Jonatan Soto
Re: Problem with StatusItem table
Who knows with opentaps but I'm guessing the same thing applies. OFBiz did previously use property files for internationalization and my response still applies. Assuming your version of opentaps is based on ofbiz 4.0 then you'll find the relevant properties in framework/common/config/CommonEntityLabels.properties As can be seen here at line 102: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/common/config/CommonEntityLabels.properties?view=markup Regards Scott HotWax Media http://www.hotwaxmedia.com On 15/07/2010, at 7:18 PM, Anurag Walia wrote: Thanks dear for your valuable reply, this problem in opentaps in which .property file used for I18N so i have checked and searched . but i haven't find the key in any .property file yet.. while syntax in the form for drop down is like: field name=statusId title=${uiLabelMap.CommonStatus} position=1 display-entity entity-name=StatusItem/ /field -- View this message in context: http://ofbiz.135035.n4.nabble.com/Problem-with-StatusItem-table-tp2289708p2289764.html Sent from the OFBiz - User mailing list archive at Nabble.com. smime.p7s Description: S/MIME cryptographic signature
Re: Problem with StatusItem table
thanks dear i got the solution in commonEntityUilabel.properties file -- View this message in context: http://ofbiz.135035.n4.nabble.com/Problem-with-StatusItem-table-tp2289708p2289832.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Contributor branches, was: Attaching files to a product
On Sat, Jul 10, 2010 at 3:54 AM, Hans Bakker mailingl...@antwebsystems.comwrote: I have the same opinion as you BJ, even as a committer it is too much problem contributing because of the number of technical people in the PMC which often only judge on technical qualities and making the system technically as difficult as possible. I'm thankful to these technical people. Their code reviews guarantee the quality of the code going into the project. Otherwise Ofbiz would become a beast such as opentaps - big, slow and hard to maintain. Nothing against new features, they are very welcome but stability at first place in my opinion. my 2 cents Bilgin
Re: Contributor branch Proposal, was: Contributor branches was: Attaching files to a product
Shouldn't we do a proof of concept? I will volunteer to create and update a new branch for BJ to start and everyone who would like to contribute. When the people on this branch say they are ready we can judge what is there and/or provide suggestions for enhancement. After general consensus the branch will be merged into the trunk. Any comments? Regards, Hans On Sat, 2010-07-10 at 18:21 -0700, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal BJ Freeman sent the following on 7/9/2010 11:07 PM: I am writing a proposal for Contributors branch. some of the points are: 1)components not continued to be supported in the specialpurpose get move to the contributors branch till interest is renewed. this would simplify maintaining the trunk but allow people to pull it down if they want to work on it. 2)there is no guarantee of the ofbiz community support of the contributions. 3)people can test the contribution and may vote to include it in the trunk. 4)it gives one place to make sure all contributions are integrated with the latest trunk and each other without effecting the trunk. it puzzles me that it is ok open a branch to collorate, but when opportunity to have a lot of contributions avalible that would spread Ofbiz acceptance you bulk. under you logic that it can be done elsewhere why not do the same for Hippo. I would be interested in your reasons why besides it can be elsewhere. Scott Gray sent the following on 7/9/2010 10:27 PM: What need would contributor branches meet that can't already be met using the likes of sourceforge, google code or github? Regarding your other statements, at some point Hans you are going to need to ask yourself why it is mostly only your commits that cause so much negative discussion. Everyone else seems to work together just fine for the most part. I'm not saying it's all your fault but you can't just blame everyone else for these problems and ignore your own contribution to them. Regards Scott On 10/07/2010, at 2:54 PM, Hans Bakker wrote: I have the same opinion as you BJ, even as a committer it is too much problem contributing because of the number of technical people in the PMC which often only judge on technical qualities and making the system technically as difficult as possible. The current discussion (not really sure if it is one) between Adrian and me is a good example. I think it would be a good idea to have contributor branches. Other PMC members who would support this? To be honest i think that you should try to become a committer, i know why you did not accept in the past, but please reconsider. Regards, Hans On Fri, 2010-07-09 at 18:33 -0700, BJ Freeman wrote: my goal has always been to have this ofbiz do this. it has never been my intent to have a seperate ofbiz. Nor am I promoting mine. my problem up to now has been acceptance and resources. I see the winds changing on acceptance and I have gotten the resources. if you note I suggest years ago to have contributor branches. Had that happened I would have contributed to it instead of create mine. I see the equivalent of contributor branch happening more like the Current Hippo branch. so if someone wants to open a branch I can just submit to, it would be faster, however i am happy to provide Jiras. so if the Jiras I put patches in are accepted then the ofbiz will work the same as the one I have. Note my first major move to accomplish this https://issues.apache.org/jira/browse/OFBIZ-3852 Scott Gray sent the following on 7/9/2010 5:18 PM: On 10/07/2010, at 1:06 AM, BJ Freeman wrote: a product is more of a marketing item a part is a description of a function they vary for engineering and manufacturing. Engineering does not assign a commercial product to the part where manufacture may list many actual purchase parts that will never be sold individually. I see in the model book the one I implemented is the alternative and more extensive model. Congratulations, where can I download a copy of this BJBiz? Please try and keep in mind that we are discussing OFBiz in this mailing list, not your derivative of it. Scott Gray sent the following on 7/5/2010 5:53 PM: In OFBiz a Part is a Product, so what is your point? Regards Scott HotWax Media http://www.hotwaxmedia.com On 6/07/2010, at 12:16 PM, BJ Freeman wrote: I wish to be able to have our engineers link plans to parts = BJ Freemanhttp://bjfreeman.elance.com [snip] BTW your quoting is terrible, I never made the statement below Scott Gray sent the following on 7/5/2010 5:02 PM: I wish to be able to have our engineers link plans to parts -- Ofbiz on twitter: http://twitter.com/apache_ofbiz Myself on twitter: http://twitter.com/hansbak Antwebsystems.com: Quality
Re: Contributor branch Proposal, was: Contributor branches was: Attaching files to a product
one point I never intended the branch be merged into the trunk it would remain a branch of contributions that users could integrate back into their own copy. Hans Bakker sent the following on 7/15/2010 1:59 AM: Shouldn't we do a proof of concept? I will volunteer to create and update a new branch for BJ to start and everyone who would like to contribute. When the people on this branch say they are ready we can judge what is there and/or provide suggestions for enhancement. After general consensus the branch will be merged into the trunk. Any comments? Regards, Hans On Sat, 2010-07-10 at 18:21 -0700, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal BJ Freeman sent the following on 7/9/2010 11:07 PM: I am writing a proposal for Contributors branch. some of the points are: 1)components not continued to be supported in the specialpurpose get move to the contributors branch till interest is renewed. this would simplify maintaining the trunk but allow people to pull it down if they want to work on it. 2)there is no guarantee of the ofbiz community support of the contributions. 3)people can test the contribution and may vote to include it in the trunk. 4)it gives one place to make sure all contributions are integrated with the latest trunk and each other without effecting the trunk. it puzzles me that it is ok open a branch to collorate, but when opportunity to have a lot of contributions avalible that would spread Ofbiz acceptance you bulk. under you logic that it can be done elsewhere why not do the same for Hippo. I would be interested in your reasons why besides it can be elsewhere. Scott Gray sent the following on 7/9/2010 10:27 PM: What need would contributor branches meet that can't already be met using the likes of sourceforge, google code or github? Regarding your other statements, at some point Hans you are going to need to ask yourself why it is mostly only your commits that cause so much negative discussion. Everyone else seems to work together just fine for the most part. I'm not saying it's all your fault but you can't just blame everyone else for these problems and ignore your own contribution to them. Regards Scott On 10/07/2010, at 2:54 PM, Hans Bakker wrote: I have the same opinion as you BJ, even as a committer it is too much problem contributing because of the number of technical people in the PMC which often only judge on technical qualities and making the system technically as difficult as possible. The current discussion (not really sure if it is one) between Adrian and me is a good example. I think it would be a good idea to have contributor branches. Other PMC members who would support this? To be honest i think that you should try to become a committer, i know why you did not accept in the past, but please reconsider. Regards, Hans On Fri, 2010-07-09 at 18:33 -0700, BJ Freeman wrote: my goal has always been to have this ofbiz do this. it has never been my intent to have a seperate ofbiz. Nor am I promoting mine. my problem up to now has been acceptance and resources. I see the winds changing on acceptance and I have gotten the resources. if you note I suggest years ago to have contributor branches. Had that happened I would have contributed to it instead of create mine. I see the equivalent of contributor branch happening more like the Current Hippo branch. so if someone wants to open a branch I can just submit to, it would be faster, however i am happy to provide Jiras. so if the Jiras I put patches in are accepted then the ofbiz will work the same as the one I have. Note my first major move to accomplish this https://issues.apache.org/jira/browse/OFBIZ-3852 Scott Gray sent the following on 7/9/2010 5:18 PM: On 10/07/2010, at 1:06 AM, BJ Freeman wrote: a product is more of a marketing item a part is a description of a function they vary for engineering and manufacturing. Engineering does not assign a commercial product to the part where manufacture may list many actual purchase parts that will never be sold individually. I see in the model book the one I implemented is the alternative and more extensive model. Congratulations, where can I download a copy of this BJBiz? Please try and keep in mind that we are discussing OFBiz in this mailing list, not your derivative of it. Scott Gray sent the following on 7/5/2010 5:53 PM: In OFBiz a Part is a Product, so what is your point? Regards Scott HotWax Media http://www.hotwaxmedia.com On 6/07/2010, at 12:16 PM, BJ Freeman wrote: I wish to be able to have our engineers link plans to parts = BJ Freemanhttp://bjfreeman.elance.com [snip] BTW your quoting is terrible, I never made the statement below Scott Gray sent the following on 7/5/2010 5:02 PM: I wish to be able to have our engineers link plans to parts -- Ofbiz on twitter: http://twitter.com/apache_ofbiz Myself on twitter: http://twitter.com/hansbak
Re: Ecommerce @ofbizUrl Problem
using the website entity was the direction I was going. since it is defined in the web.xml of the ecommerce webapp, I would like to see the websited first Identified by the incomming URL http://mydomain.com, then the mountpoint appended. the problems I see is going to the the backend for say customer orders. the myportal has its own webstite entity and is only good for defining one incomming URL. it is clunky but maybe defining in the eccommerce context the website enity for myportal would solve this. any way if that could be accomplished they apache httpd would not be needed. just thinking outloud. Scott Gray sent the following on 7/14/2010 10:53 PM: It's an interesting problem for sure. Currently the URL writing method RequestHandler.makeLink(...) (which the ofbizUrl transform delegates to) uses the _CONTROL_PATH_ request attribute to add the control path portion of the URL. As a short term test you could try overwriting that attribute from within a groovy script in the actions of your global decorator. That would solve the problem for URL generation but I'm not sure what else uses that attribute and could be affected by such as change. As a longer term solution, we could possibly look at adding another field for this purpose to the WebSite entity which if defined, would override the control path used in the makeLink method. Regards Scott HotWax Media http://www.hotwaxmedia.com On 15/07/2010, at 4:27 PM, Raj Saini wrote: Hi Sam, It is complicated and short answer is ProxyPass directive of mod_proxy does not rewrite the absolute links embedded in the pages whereas OFBiz links are absolute links. The solution is to use mod_proxy_html module to rewrite the links embedded links http://www.apachetutor.org/admin/reverseproxies Regards, Raj On 15/07/10 08:19, Sam Hamilton wrote: Hey Guys, I am wondering how other people get over this problem? If you have multiple websites running in OFBiz at the same time then they will all be mounted at different urls e.g. /ecommerce /ecommerce2 /ecommerce3 for three different websites. Now its easy to setup ajp/httpd to point www.ecommerce.com to /ecommerce and then www.ecommerce2.com to /ecommerce2 etc. But when you do this then go to www.ecommerce.com and try and click any of the links it has automatically added the mount point back into the url e.g. www.ecommerce.com/ecommerce/control/view/showcart but these 404 because we have done the trickery with ajp to try and hide the mount point. I have found that it is something to do with@ofbizUrl tags in the FTL but I am not sure how to alter them to drop the /ecommerce/ Thanks Sam
problem while returning list object
Hi I have created my own service which is created for returning a list. So I have added below code in the services_ledger.xml service name=getFinAccountType engine=java export=true location=org.ofbiz.accounting.finaccount.FinAccountServices invoke=getFinAccountType auth=true descriptionparameterizing Financial Account Type/description log level=info message=Entered into getFinAccountType service of services_ledger./ attribute type=String mode=IN name=finAccountTypeId optional=true / attribute type=String mode=IN name=parentTypeId optional=true / attribute type=String mode=IN name=isRefundable optional=true / attribute type=String mode=IN name=replenishEnumId optional=true / attribute type=String mode=IN name=hasTable optional=true / attribute type=String mode=IN name=description optional=true / attribute name=FinAccountTypeList type=List mode=OUT optional=true/ /service and getFinAccountType functionis written in FinAccountServices.java file public static List getFinAccountType(DispatchContext dctx, Map context) { LocalDispatcher dispatcher = dctx.getDispatcher(); GenericDelegator delegator = dctx.getDelegator(); GenericValue userLogin = (GenericValue) context.get(userLogin); String finAccountTypeId = (String) context.get(finAccountTypeId); String parentTypeId = (String) context.get(parentTypeId); String replenishEnumId = (String) context.get(replenishEnumId); String isRefundable = (String) context.get(isRefundable); String hasTable = (String) context.get(hasTable); String description = (String) context.get(description); GenericValue finAccount=null; Map finAcctg = UtilMisc.toMap(finAccountTypeId, finAccountTypeId,description, description,hasTable, hasTable,isRefundable, isRefundable,replenishEnumId, replenishEnumId,parentTypeId, parentTypeId); List exprs = FastList.newInstance(); if(finAccountTypeId!=null) { Debug.log(finAccountTypeId Added as a serach parameter); exprs.add(EntityCondition.makeCondition(finAccountTypeId, EntityOperator.EQUALS, finAccountTypeId)); } if(parentTypeId!=null) { Debug.log(parentTypeId Added as a serach parameter); exprs.add(EntityCondition.makeCondition(parentTypeId, EntityOperator.EQUALS, parentTypeId)); } if(replenishEnumId!=null) { Debug.log(replenishEnumId Added as a serach parameter); exprs.add(EntityCondition.makeCondition(replenishEnumId, EntityOperator.EQUALS, replenishEnumId)); } if(isRefundable!=null) { Debug.log(isRefundable Added as a serach parameter); exprs.add(EntityCondition.makeCondition(isRefundable, EntityOperator.EQUALS, isRefundable)); } if(hasTable!=null) { Debug.log(hasTable Added as a serach parameter); exprs.add(EntityCondition.makeCondition(hasTable, EntityOperator.EQUALS, hasTable)); } if(description!=null) { Debug.log(description Added as a serach parameter); exprs.add(EntityCondition.makeCondition(description, EntityOperator.EQUALS, description)); } List orderBy = UtilMisc.toList(-finAccountTypeId); List FinAccountTypeList = null; try { FinAccountTypeList = delegator.findList(FinAccountType, EntityCondition.makeCondition(exprs, EntityOperator.AND), null, orderBy, null, false); Debug.log(FinAccountTypeList SIZEE +FinAccountTypeList.size()); Debug.log(FinAccountTypeList++FinAccountTypeList); } catch (GenericEntityException e) { Debug.logError(e, module); } return FinAccountTypeList; } But its giving error as The Following Errors Occurred: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Service [getFinAccountType] did not return a Map object) Please let me know the am I missed anything. -- View this message in context: http://ofbiz.135035.n4.nabble.com/problem-while-returning-list-object-tp2289908p2289908.html Sent from the OFBiz - User mailing list archive at Nabble.com.
demo-trunk site dieing lead
I been running the trunk as a demo-site and it finally crashed. I have not plowed through the logs to see the orgin of the error but it lost its connection to derby. getting a lot of can not connect errors. = 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
Re: Ecommerce @ofbizUrl Problem
Could you put it in ofbiz-component.xml? Something like this? webapp name=ecommerce_uk title=eCommerce UK server=default-server location=webapp/ecommerce_uk mount-point=/ecommerce_uk app-bar-display=false/ webapp name=ecommerce_uk title=eCommerce UK server=default-server location=webapp/ecommerce_uk mount-point=/ app-bar-display=false virtual-host host-name=www.ecommerce.co.uk/ /webapp Sam On 15/07/2010 17:16, BJ Freeman wrote: using the website entity was the direction I was going. since it is defined in the web.xml of the ecommerce webapp, I would like to see the websited first Identified by the incomming URL http://mydomain.com, then the mountpoint appended. the problems I see is going to the the backend for say customer orders. the myportal has its own webstite entity and is only good for defining one incomming URL. it is clunky but maybe defining in the eccommerce context the website enity for myportal would solve this. any way if that could be accomplished they apache httpd would not be needed. just thinking outloud. Scott Gray sent the following on 7/14/2010 10:53 PM: It's an interesting problem for sure. Currently the URL writing method RequestHandler.makeLink(...) (which the ofbizUrl transform delegates to) uses the _CONTROL_PATH_ request attribute to add the control path portion of the URL. As a short term test you could try overwriting that attribute from within a groovy script in the actions of your global decorator. That would solve the problem for URL generation but I'm not sure what else uses that attribute and could be affected by such as change. As a longer term solution, we could possibly look at adding another field for this purpose to the WebSite entity which if defined, would override the control path used in the makeLink method. Regards Scott HotWax Media http://www.hotwaxmedia.com On 15/07/2010, at 4:27 PM, Raj Saini wrote: Hi Sam, It is complicated and short answer is ProxyPass directive of mod_proxy does not rewrite the absolute links embedded in the pages whereas OFBiz links are absolute links. The solution is to use mod_proxy_html module to rewrite the links embedded links http://www.apachetutor.org/admin/reverseproxies Regards, Raj On 15/07/10 08:19, Sam Hamilton wrote: Hey Guys, I am wondering how other people get over this problem? If you have multiple websites running in OFBiz at the same time then they will all be mounted at different urls e.g. /ecommerce /ecommerce2 /ecommerce3 for three different websites. Now its easy to setup ajp/httpd to point www.ecommerce.com to /ecommerce and then www.ecommerce2.com to /ecommerce2 etc. But when you do this then go to www.ecommerce.com and try and click any of the links it has automatically added the mount point back into the url e.g. www.ecommerce.com/ecommerce/control/view/showcart but these 404 because we have done the trickery with ajp to try and hide the mount point. I have found that it is something to do with@ofbizUrl tags in the FTL but I am not sure how to alter them to drop the /ecommerce/ Thanks Sam
Re: Multiple internal organizations on top
Answering to myself On Thu, Jul 15, 2010 at 10:02 AM, Jonatan Soto seniledemen...@gmail.comwrote: Actually that's what I have done for now. What I need is to load different ext data to each tenant. So I am thinking if it is possible to create a different reader (eg: ext_Company1, ext_Company2). It's done. Is was really easy, I had only to create a new entity-data-reader in entityengine.xml and then split/adapt my existing ext data changing the reader-name of every ofbiz-component.xml file that I've previously defined. I guess I misunderstood the post I mentioned before where BJ was discussing a similar situation. I also have another doubt related to the databases needed. As I followed the multitenancy support specified on the wiki I've created a normal database (default), and the tetants databases (DEMO1, DEMO2). I understand that the default database is only necessary to store the tenants information, so I think it's mandatory to create it. Is that right? In that case, may I only create the default database specifying only the group-name=org.ofbiz.tenant in the delegator? I think I was absolutely wrong about this. As I can see, I believe the default database might be used as normal. So I am thinking to use the default database for Company1 and only one tenant for Company2. It would be correct? And again a new doubt raised, how can I synchronize data between databases? I mean, there are several tables that I would like to synchronize (eg: Product) so perhaps a good approach would be, firstly identify which entities should be sync and then implement something (SECA's?) for each. Is this a good solution or I am complicating myself? Thanks a lot for your support! On Thu, Jul 15, 2010 at 9:13 AM, David-DiSiD Technologies dcerv...@disid.com wrote: Hi Jonatan, You can load your own data (ext data) into a tenant database executing the next command in $OFBIZ_HOME: java -Xmx512m -XX:MaxPermSize=128m -jar ofbiz.jar -install -readers=ext -delegator=default#${tenantId} Where ${tenantId} is the ID of the tenant where you want to load your data. Is this that you need? - David Cervera - dcervera at disid dot com DiSiD Technologies, S.L. - http://www.disid.com www.disid.com -- View this message in context: http://ofbiz.135035.n4.nabble.com/Multiple-internal-organizations-on-top-tp2275366p2289756.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- - Jonatan Soto -- - Jonatan Soto
Re: problem while returning list object
Hi Prasanthi, Service returns a map, so your return type should be Map and in this map you have to put the list which will be also your OUT parameter and then you can use the map wherever by accessing its key/value field. Have a look on performFindList service. Thanks and Regards Santosh Malviya On Thu, Jul 15, 2010 at 3:24 PM, prasanthi_ofbiz prasanthi.sreeramjammise...@tcs.com wrote: Hi I have created my own service which is created for returning a list. So I have added below code in the services_ledger.xml service name=getFinAccountType engine=java export=true location=org.ofbiz.accounting.finaccount.FinAccountServices invoke=getFinAccountType auth=true descriptionparameterizing Financial Account Type/description log level=info message=Entered into getFinAccountType service of services_ledger./ attribute type=String mode=IN name=finAccountTypeId optional=true / attribute type=String mode=IN name=parentTypeId optional=true / attribute type=String mode=IN name=isRefundable optional=true / attribute type=String mode=IN name=replenishEnumId optional=true / attribute type=String mode=IN name=hasTable optional=true / attribute type=String mode=IN name=description optional=true / attribute name=FinAccountTypeList type=List mode=OUT optional=true/ /service and getFinAccountType functionis written in FinAccountServices.java file public static List getFinAccountType(DispatchContext dctx, Map context) { LocalDispatcher dispatcher = dctx.getDispatcher(); GenericDelegator delegator = dctx.getDelegator(); GenericValue userLogin = (GenericValue) context.get(userLogin); String finAccountTypeId = (String) context.get(finAccountTypeId); String parentTypeId = (String) context.get(parentTypeId); String replenishEnumId = (String) context.get(replenishEnumId); String isRefundable = (String) context.get(isRefundable); String hasTable = (String) context.get(hasTable); String description = (String) context.get(description); GenericValue finAccount=null; Map finAcctg = UtilMisc.toMap(finAccountTypeId, finAccountTypeId,description, description,hasTable, hasTable,isRefundable, isRefundable,replenishEnumId, replenishEnumId,parentTypeId, parentTypeId); List exprs = FastList.newInstance(); if(finAccountTypeId!=null) { Debug.log(finAccountTypeId Added as a serach parameter); exprs.add(EntityCondition.makeCondition(finAccountTypeId, EntityOperator.EQUALS, finAccountTypeId)); } if(parentTypeId!=null) { Debug.log(parentTypeId Added as a serach parameter); exprs.add(EntityCondition.makeCondition(parentTypeId, EntityOperator.EQUALS, parentTypeId)); } if(replenishEnumId!=null) { Debug.log(replenishEnumId Added as a serach parameter); exprs.add(EntityCondition.makeCondition(replenishEnumId, EntityOperator.EQUALS, replenishEnumId)); } if(isRefundable!=null) { Debug.log(isRefundable Added as a serach parameter); exprs.add(EntityCondition.makeCondition(isRefundable, EntityOperator.EQUALS, isRefundable)); } if(hasTable!=null) { Debug.log(hasTable Added as a serach parameter); exprs.add(EntityCondition.makeCondition(hasTable, EntityOperator.EQUALS, hasTable)); } if(description!=null) { Debug.log(description Added as a serach parameter); exprs.add(EntityCondition.makeCondition(description, EntityOperator.EQUALS, description)); } List orderBy = UtilMisc.toList(-finAccountTypeId); List FinAccountTypeList = null; try { FinAccountTypeList = delegator.findList(FinAccountType, EntityCondition.makeCondition(exprs, EntityOperator.AND), null, orderBy, null, false); Debug.log(FinAccountTypeList SIZEE +FinAccountTypeList.size()); Debug.log(FinAccountTypeList++FinAccountTypeList); } catch (GenericEntityException e) { Debug.logError(e, module); } return FinAccountTypeList; } But its giving error as The Following Errors Occurred: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Service [getFinAccountType] did not return a Map object) Please let me know the am I missed anything. -- View this message in context: http://ofbiz.135035.n4.nabble.com/problem-while-returning-list-object-tp2289908p2289908.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: problem while returning list object
Hi, Need to return map from java service that you have implemented like MapString, Object result = ServiceUtil.returnSuccess(); result.put(FinAccountTypeList, FinAccountTypeList); return result; refer ShoppingCartServices.java or any other *Service*.java. -- Brajesh Patel prasanthi_ofbiz wrote: Hi I have created my own service which is created for returning a list. So I have added below code in the services_ledger.xml service name=getFinAccountType engine=java export=true location=org.ofbiz.accounting.finaccount.FinAccountServices invoke=getFinAccountType auth=true descriptionparameterizing Financial Account Type/description log level=info message=Entered into getFinAccountType service of services_ledger./ attribute type=String mode=IN name=finAccountTypeId optional=true / attribute type=String mode=IN name=parentTypeId optional=true / attribute type=String mode=IN name=isRefundable optional=true / attribute type=String mode=IN name=replenishEnumId optional=true / attribute type=String mode=IN name=hasTable optional=true / attribute type=String mode=IN name=description optional=true / attribute name=FinAccountTypeList type=List mode=OUT optional=true/ /service and getFinAccountType functionis written in FinAccountServices.java file public static List getFinAccountType(DispatchContext dctx, Map context) { LocalDispatcher dispatcher = dctx.getDispatcher(); GenericDelegator delegator = dctx.getDelegator(); GenericValue userLogin = (GenericValue) context.get(userLogin); String finAccountTypeId = (String) context.get(finAccountTypeId); String parentTypeId = (String) context.get(parentTypeId); String replenishEnumId = (String) context.get(replenishEnumId); String isRefundable = (String) context.get(isRefundable); String hasTable = (String) context.get(hasTable); String description = (String) context.get(description); GenericValue finAccount=null; Map finAcctg = UtilMisc.toMap(finAccountTypeId, finAccountTypeId,description, description,hasTable, hasTable,isRefundable, isRefundable,replenishEnumId, replenishEnumId,parentTypeId, parentTypeId); List exprs = FastList.newInstance(); if(finAccountTypeId!=null) { Debug.log(finAccountTypeId Added as a serach parameter); exprs.add(EntityCondition.makeCondition(finAccountTypeId, EntityOperator.EQUALS, finAccountTypeId)); } if(parentTypeId!=null) { Debug.log(parentTypeId Added as a serach parameter); exprs.add(EntityCondition.makeCondition(parentTypeId, EntityOperator.EQUALS, parentTypeId)); } if(replenishEnumId!=null) { Debug.log(replenishEnumId Added as a serach parameter); exprs.add(EntityCondition.makeCondition(replenishEnumId, EntityOperator.EQUALS, replenishEnumId)); } if(isRefundable!=null) { Debug.log(isRefundable Added as a serach parameter); exprs.add(EntityCondition.makeCondition(isRefundable, EntityOperator.EQUALS, isRefundable)); } if(hasTable!=null) { Debug.log(hasTable Added as a serach parameter); exprs.add(EntityCondition.makeCondition(hasTable, EntityOperator.EQUALS, hasTable)); } if(description!=null) { Debug.log(description Added as a serach parameter); exprs.add(EntityCondition.makeCondition(description, EntityOperator.EQUALS, description)); } List orderBy = UtilMisc.toList(-finAccountTypeId); List FinAccountTypeList = null; try { FinAccountTypeList = delegator.findList(FinAccountType, EntityCondition.makeCondition(exprs, EntityOperator.AND), null, orderBy, null, false); Debug.log(FinAccountTypeList SIZEE +FinAccountTypeList.size()); Debug.log(FinAccountTypeList++FinAccountTypeList); } catch (GenericEntityException e) { Debug.logError(e, module); } return FinAccountTypeList; } But its giving error as The Following Errors Occurred: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Service [getFinAccountType] did not return a Map object) Please let me know the am I missed anything.
Re: PayPal Currency Issue
Hi All I have cross checked my paypal website setting, everything seems to be fine. I was not able to find any place stating Dollar. If any body haev any idea about setting currency type for paypal either in paypal account or in ofbiz settings. please let me know Regards Gaurav -- View this message in context: http://ofbiz.135035.n4.nabble.com/PayPal-Currency-Issue-tp2287192p2289998.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Multiple internal organizations on top
Answered inline. jonatan soto wrote: I think I was absolutely wrong about this. As I can see, I believe the default database might be used as normal. So I am thinking to use the default database for Company1 and only one tenant for Company2. It would be correct? Yes, it's right in your scenario. Just note that the database for Company1 will contain the tenant data. jonatan soto wrote: And again a new doubt raised, how can I synchronize data between databases? I mean, there are several tables that I would like to synchronize (eg: Product) so perhaps a good approach would be, firstly identify which entities should be sync and then implement something (SECA's?) for each. Is this a good solution or I am complicating myself? Yes, I think for this purpose a good approach is to use SECA's, just recall the same event changing the delegator. - David Cervera - dcervera at disid dot com DiSiD Technologies, S.L. - http://www.disid.com -- View this message in context: http://ofbiz.135035.n4.nabble.com/Multiple-internal-organizations-on-top-tp2275366p2290013.html Sent from the OFBiz - User mailing list archive at Nabble.com.
any sample update service
hi Provide me one sample service for updating existing record using java source Regards Prasanthi -- View this message in context: http://ofbiz.135035.n4.nabble.com/any-sample-update-service-tp2290155p2290155.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: PayPal Currency Issue
Hi Raj If I am not wrong currencyuom get configured in general.properties. I have changed currency.uom.id.default=USD to currency.uom.id.default=GBP Is there any other place where I need to configure this. Please suggest Regards Gaurav -- View this message in context: http://ofbiz.135035.n4.nabble.com/PayPal-Currency-Issue-tp2287192p2290201.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Hard space in catalog name
Hi, I'm trying to add a hardspace in the catalog name, the name that is visible on the front end. However, when I type the $nbsp; in the name it gets changed to #36;nbsp#59; which shows it as the literal string $nbsp; in the browser. I'm trying to make the name not wrap, as I rather have it breaking out of the box then breaking the entire layout (which is what happens now). TL;DR How to add a hard space in catalog name? Regards, David
Re: Ecommerce @ofbizUrl Problem
No need to duplicate data. https://demo-trunk.ofbiz.apache.org/content/control/EditWebSite?webSiteId=WebStore Sam Hamilton sent the following on 7/15/2010 3:12 AM: Could you put it in ofbiz-component.xml? Something like this? webapp name=ecommerce_uk title=eCommerce UK server=default-server location=webapp/ecommerce_uk mount-point=/ecommerce_uk app-bar-display=false/ webapp name=ecommerce_uk title=eCommerce UK server=default-server location=webapp/ecommerce_uk mount-point=/ app-bar-display=false virtual-host host-name=www.ecommerce.co.uk/ /webapp Sam On 15/07/2010 17:16, BJ Freeman wrote: using the website entity was the direction I was going. since it is defined in the web.xml of the ecommerce webapp, I would like to see the websited first Identified by the incomming URL http://mydomain.com, then the mountpoint appended. the problems I see is going to the the backend for say customer orders. the myportal has its own webstite entity and is only good for defining one incomming URL. it is clunky but maybe defining in the eccommerce context the website enity for myportal would solve this. any way if that could be accomplished they apache httpd would not be needed. just thinking outloud. Scott Gray sent the following on 7/14/2010 10:53 PM: It's an interesting problem for sure. Currently the URL writing method RequestHandler.makeLink(...) (which the ofbizUrl transform delegates to) uses the _CONTROL_PATH_ request attribute to add the control path portion of the URL. As a short term test you could try overwriting that attribute from within a groovy script in the actions of your global decorator. That would solve the problem for URL generation but I'm not sure what else uses that attribute and could be affected by such as change. As a longer term solution, we could possibly look at adding another field for this purpose to the WebSite entity which if defined, would override the control path used in the makeLink method. Regards Scott HotWax Media http://www.hotwaxmedia.com On 15/07/2010, at 4:27 PM, Raj Saini wrote: Hi Sam, It is complicated and short answer is ProxyPass directive of mod_proxy does not rewrite the absolute links embedded in the pages whereas OFBiz links are absolute links. The solution is to use mod_proxy_html module to rewrite the links embedded links http://www.apachetutor.org/admin/reverseproxies Regards, Raj On 15/07/10 08:19, Sam Hamilton wrote: Hey Guys, I am wondering how other people get over this problem? If you have multiple websites running in OFBiz at the same time then they will all be mounted at different urls e.g. /ecommerce /ecommerce2 /ecommerce3 for three different websites. Now its easy to setup ajp/httpd to point www.ecommerce.com to /ecommerce and then www.ecommerce2.com to /ecommerce2 etc. But when you do this then go to www.ecommerce.com and try and click any of the links it has automatically added the mount point back into the url e.g. www.ecommerce.com/ecommerce/control/view/showcart but these 404 because we have done the trickery with ajp to try and hide the mount point. I have found that it is something to do with@ofbizUrltags in the FTL but I am not sure how to alter them to drop the /ecommerce/ Thanks Sam
Re: any sample update service
most CRUD services are created in minilang. there is an auto services that does this for all entities. prasanthi_ofbiz sent the following on 7/15/2010 6:31 AM: hi Provide me one sample service for updating existing record using java source Regards Prasanthi
Re: Hard space in catalog name
as we move to internationalize content that may not be the best way. have you looked at CSS as way to accomplish this. create a style. David van der Staak sent the following on 7/15/2010 7:38 AM: Hi, I'm trying to add a hardspace in the catalog name, the name that is visible on the front end. However, when I type the $nbsp; in the name it gets changed to#36;nbsp#59; which shows it as the literal string $nbsp; in the browser. I'm trying to make the name not wrap, as I rather have it breaking out of the box then breaking the entire layout (which is what happens now). TL;DR How to add a hard space in catalog name? Regards, David
Re: Contributor branch Proposal, was: Contributor branches was: Attaching files to a product
Hans, How would you create such a branch, or what would that look like? Who would be able to commit to it? -David On Jul 15, 2010, at 2:59 AM, Hans Bakker wrote: Shouldn't we do a proof of concept? I will volunteer to create and update a new branch for BJ to start and everyone who would like to contribute. When the people on this branch say they are ready we can judge what is there and/or provide suggestions for enhancement. After general consensus the branch will be merged into the trunk. Any comments? Regards, Hans On Sat, 2010-07-10 at 18:21 -0700, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal BJ Freeman sent the following on 7/9/2010 11:07 PM: I am writing a proposal for Contributors branch. some of the points are: 1)components not continued to be supported in the specialpurpose get move to the contributors branch till interest is renewed. this would simplify maintaining the trunk but allow people to pull it down if they want to work on it. 2)there is no guarantee of the ofbiz community support of the contributions. 3)people can test the contribution and may vote to include it in the trunk. 4)it gives one place to make sure all contributions are integrated with the latest trunk and each other without effecting the trunk. it puzzles me that it is ok open a branch to collorate, but when opportunity to have a lot of contributions avalible that would spread Ofbiz acceptance you bulk. under you logic that it can be done elsewhere why not do the same for Hippo. I would be interested in your reasons why besides it can be elsewhere. Scott Gray sent the following on 7/9/2010 10:27 PM: What need would contributor branches meet that can't already be met using the likes of sourceforge, google code or github? Regarding your other statements, at some point Hans you are going to need to ask yourself why it is mostly only your commits that cause so much negative discussion. Everyone else seems to work together just fine for the most part. I'm not saying it's all your fault but you can't just blame everyone else for these problems and ignore your own contribution to them. Regards Scott On 10/07/2010, at 2:54 PM, Hans Bakker wrote: I have the same opinion as you BJ, even as a committer it is too much problem contributing because of the number of technical people in the PMC which often only judge on technical qualities and making the system technically as difficult as possible. The current discussion (not really sure if it is one) between Adrian and me is a good example. I think it would be a good idea to have contributor branches. Other PMC members who would support this? To be honest i think that you should try to become a committer, i know why you did not accept in the past, but please reconsider. Regards, Hans On Fri, 2010-07-09 at 18:33 -0700, BJ Freeman wrote: my goal has always been to have this ofbiz do this. it has never been my intent to have a seperate ofbiz. Nor am I promoting mine. my problem up to now has been acceptance and resources. I see the winds changing on acceptance and I have gotten the resources. if you note I suggest years ago to have contributor branches. Had that happened I would have contributed to it instead of create mine. I see the equivalent of contributor branch happening more like the Current Hippo branch. so if someone wants to open a branch I can just submit to, it would be faster, however i am happy to provide Jiras. so if the Jiras I put patches in are accepted then the ofbiz will work the same as the one I have. Note my first major move to accomplish this https://issues.apache.org/jira/browse/OFBIZ-3852 Scott Gray sent the following on 7/9/2010 5:18 PM: On 10/07/2010, at 1:06 AM, BJ Freeman wrote: a product is more of a marketing item a part is a description of a function they vary for engineering and manufacturing. Engineering does not assign a commercial product to the part where manufacture may list many actual purchase parts that will never be sold individually. I see in the model book the one I implemented is the alternative and more extensive model. Congratulations, where can I download a copy of this BJBiz? Please try and keep in mind that we are discussing OFBiz in this mailing list, not your derivative of it. Scott Gray sent the following on 7/5/2010 5:53 PM: In OFBiz a Part is a Product, so what is your point? Regards Scott HotWax Media http://www.hotwaxmedia.com On 6/07/2010, at 12:16 PM, BJ Freeman wrote: I wish to be able to have our engineers link plans to parts = BJ Freemanhttp://bjfreeman.elance.com [snip] BTW your quoting is terrible, I never made the statement below Scott Gray sent the following on 7/5/2010 5:02 PM: I wish to be able to have our engineers link plans to parts -- Ofbiz on twitter:
Re: Contributor branch Proposal, was: Contributor branches https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal was: Attaching files to a product
https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal David E Jones sent the following on 7/15/2010 9:03 AM: Hans, How would you create such a branch, or what would that look like? Who would be able to commit to it? -David On Jul 15, 2010, at 2:59 AM, Hans Bakker wrote: Shouldn't we do a proof of concept? I will volunteer to create and update a new branch for BJ to start and everyone who would like to contribute. When the people on this branch say they are ready we can judge what is there and/or provide suggestions for enhancement. After general consensus the branch will be merged into the trunk. Any comments? Regards, Hans On Sat, 2010-07-10 at 18:21 -0700, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal BJ Freeman sent the following on 7/9/2010 11:07 PM: I am writing a proposal for Contributors branch. some of the points are: 1)components not continued to be supported in the specialpurpose get move to the contributors branch till interest is renewed. this would simplify maintaining the trunk but allow people to pull it down if they want to work on it. 2)there is no guarantee of the ofbiz community support of the contributions. 3)people can test the contribution and may vote to include it in the trunk. 4)it gives one place to make sure all contributions are integrated with the latest trunk and each other without effecting the trunk. it puzzles me that it is ok open a branch to collorate, but when opportunity to have a lot of contributions avalible that would spread Ofbiz acceptance you bulk. under you logic that it can be done elsewhere why not do the same for Hippo. I would be interested in your reasons why besides it can be elsewhere. Scott Gray sent the following on 7/9/2010 10:27 PM: What need would contributor branches meet that can't already be met using the likes of sourceforge, google code or github? Regarding your other statements, at some point Hans you are going to need to ask yourself why it is mostly only your commits that cause so much negative discussion. Everyone else seems to work together just fine for the most part. I'm not saying it's all your fault but you can't just blame everyone else for these problems and ignore your own contribution to them. Regards Scott On 10/07/2010, at 2:54 PM, Hans Bakker wrote: I have the same opinion as you BJ, even as a committer it is too much problem contributing because of the number of technical people in the PMC which often only judge on technical qualities and making the system technically as difficult as possible. The current discussion (not really sure if it is one) between Adrian and me is a good example. I think it would be a good idea to have contributor branches. Other PMC members who would support this? To be honest i think that you should try to become a committer, i know why you did not accept in the past, but please reconsider. Regards, Hans On Fri, 2010-07-09 at 18:33 -0700, BJ Freeman wrote: my goal has always been to have this ofbiz do this. it has never been my intent to have a seperate ofbiz. Nor am I promoting mine. my problem up to now has been acceptance and resources. I see the winds changing on acceptance and I have gotten the resources. if you note I suggest years ago to have contributor branches. Had that happened I would have contributed to it instead of create mine. I see the equivalent of contributor branch happening more like the Current Hippo branch. so if someone wants to open a branch I can just submit to, it would be faster, however i am happy to provide Jiras. so if the Jiras I put patches in are accepted then the ofbiz will work the same as the one I have. Note my first major move to accomplish this https://issues.apache.org/jira/browse/OFBIZ-3852 Scott Gray sent the following on 7/9/2010 5:18 PM: On 10/07/2010, at 1:06 AM, BJ Freeman wrote: a product is more of a marketing item a part is a description of a function they vary for engineering and manufacturing. Engineering does not assign a commercial product to the part where manufacture may list many actual purchase parts that will never be sold individually. I see in the model book the one I implemented is the alternative and more extensive model. Congratulations, where can I download a copy of this BJBiz? Please try and keep in mind that we are discussing OFBiz in this mailing list, not your derivative of it. Scott Gray sent the following on 7/5/2010 5:53 PM: In OFBiz a Part is a Product, so what is your point? Regards Scott HotWax Media http://www.hotwaxmedia.com On 6/07/2010, at 12:16 PM, BJ Freeman wrote: I wish to be able to have our engineers link plans to parts = BJ Freemanhttp://bjfreeman.elance.com [snip] BTW your quoting is terrible, I never made the statement below Scott Gray sent the following on 7/5/2010 5:02 PM: I wish to be able to have our engineers link plans to parts -- Ofbiz on
Re: any sample update service
The service named changeOrderStatus updates an existing record using Java. Regards, - David Cervera - dcervera at disid dot com DiSiD Technologies, S.L. - http://www.disid.com -- View this message in context: http://ofbiz.135035.n4.nabble.com/any-sample-update-service-tp2290155p2290454.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Contributor branch Proposal, was: Contributor branches https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal was: Attaching files to a product
This looks like more of a separate repository than a branch of OFBiz. First off, the term branch just doesn't apply. A branch of a source repository is effectively a copy of the repo that can be changed separately and is meant to eventually be merged back into the trunk. If a branch is not meant to be merged back into the trunk, it is a fork. What you're describing isn't even a fork as it doesn't sound like it would be a copy of OFBiz that is changed separately, but rather a repository for add-on modules. Also, it sounds like it would best be done outside of the ASF, especially if you don't want a vote where PMC votes are binding... that's all there is at the ASF. For those interested, why not just create a sourceforge or google code project and share commit access with others who are interested? There is nothing that says OFBiz add-on modules have to be part of the project, or that people can't create separate projects to do such things. If various people want to work together to do so, from the community spirit perspective... all the better! -David On Jul 15, 2010, at 10:11 AM, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal David E Jones sent the following on 7/15/2010 9:03 AM: Hans, How would you create such a branch, or what would that look like? Who would be able to commit to it? -David On Jul 15, 2010, at 2:59 AM, Hans Bakker wrote: Shouldn't we do a proof of concept? I will volunteer to create and update a new branch for BJ to start and everyone who would like to contribute. When the people on this branch say they are ready we can judge what is there and/or provide suggestions for enhancement. After general consensus the branch will be merged into the trunk. Any comments? Regards, Hans On Sat, 2010-07-10 at 18:21 -0700, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal BJ Freeman sent the following on 7/9/2010 11:07 PM: I am writing a proposal for Contributors branch. some of the points are: 1)components not continued to be supported in the specialpurpose get move to the contributors branch till interest is renewed. this would simplify maintaining the trunk but allow people to pull it down if they want to work on it. 2)there is no guarantee of the ofbiz community support of the contributions. 3)people can test the contribution and may vote to include it in the trunk. 4)it gives one place to make sure all contributions are integrated with the latest trunk and each other without effecting the trunk. it puzzles me that it is ok open a branch to collorate, but when opportunity to have a lot of contributions avalible that would spread Ofbiz acceptance you bulk. under you logic that it can be done elsewhere why not do the same for Hippo. I would be interested in your reasons why besides it can be elsewhere. Scott Gray sent the following on 7/9/2010 10:27 PM: What need would contributor branches meet that can't already be met using the likes of sourceforge, google code or github? Regarding your other statements, at some point Hans you are going to need to ask yourself why it is mostly only your commits that cause so much negative discussion. Everyone else seems to work together just fine for the most part. I'm not saying it's all your fault but you can't just blame everyone else for these problems and ignore your own contribution to them. Regards Scott On 10/07/2010, at 2:54 PM, Hans Bakker wrote: I have the same opinion as you BJ, even as a committer it is too much problem contributing because of the number of technical people in the PMC which often only judge on technical qualities and making the system technically as difficult as possible. The current discussion (not really sure if it is one) between Adrian and me is a good example. I think it would be a good idea to have contributor branches. Other PMC members who would support this? To be honest i think that you should try to become a committer, i know why you did not accept in the past, but please reconsider. Regards, Hans On Fri, 2010-07-09 at 18:33 -0700, BJ Freeman wrote: my goal has always been to have this ofbiz do this. it has never been my intent to have a seperate ofbiz. Nor am I promoting mine. my problem up to now has been acceptance and resources. I see the winds changing on acceptance and I have gotten the resources. if you note I suggest years ago to have contributor branches. Had that happened I would have contributed to it instead of create mine. I see the equivalent of contributor branch happening more like the Current Hippo branch. so if someone wants to open a branch I can just submit to, it would be faster, however i am happy to provide Jiras. so if the Jiras I put patches in are accepted then the ofbiz will work the same as the one I have. Note my first major move to accomplish
Want to hear a story of how automatic services gets fired :)
hiii folks I am just new to ofbiz, i have read through the post Password Expiry there i read about Running a nightly job. I want to know how nightly jobs are triggered, which caused it to run, on which basis its gets triggered, which process is parent of this nightly jobs and automatic async services and what ECA will do for us. If anyone kindly explains it and an example service name (to find out code) it'll be very helpful for me to get overall imagination of the system functioning. regards sakthi
Re: Contributor branches, was: Attaching files to a product
Nothing against new features, they are very welcome but stability at first place in my opinion. +1 -- Ashish On Thu, Jul 15, 2010 at 2:18 PM, Bilgin Ibryam bibr...@gmail.com wrote: On Sat, Jul 10, 2010 at 3:54 AM, Hans Bakker mailingl...@antwebsystems.comwrote: I have the same opinion as you BJ, even as a committer it is too much problem contributing because of the number of technical people in the PMC which often only judge on technical qualities and making the system technically as difficult as possible. I'm thankful to these technical people. Their code reviews guarantee the quality of the code going into the project. Otherwise Ofbiz would become a beast such as opentaps - big, slow and hard to maintain. Nothing against new features, they are very welcome but stability at first place in my opinion. my 2 cents Bilgin
Re: Cancelling an order in Ecommerce
This response is a big step in the right direction. There is an old French proverb that you catch more flies with honey than with vinegar. As David said (his own highly ascerbic wit aside) there is a better way. I think that everyone on this list needs to remember: 1) that learning OFBiz is painful and frustrating, which can come out (even without intending it) in new-user posts, and 2) that responding to perceived offenses with more flames serves no useful purpose. Postel's law applies to mailing lists, as well as programming: Be liberal in what input you accept, and conservative in your output. Just my thoughts. -- Matt Warnock mwarn...@ridgecrestherbals.com RidgeCrest Herbals, Inc. On Wed, 2010-07-14 at 17:43 -0700, Mike Z wrote: My apologies to all. I didn't mean to offend. I think ofbiz is a fantastic project, and I'm very grateful for the community involvement, developers, and contributors. I'll try to behave better. On Wed, Jul 14, 2010 at 5:16 PM, David E Jones d...@me.com wrote: Please understand that when you are speaking of the OFBiz community (or any Apache community) there is no us and them. OFBiz is a community-driven project, meaning everyone involved in the community is a volunteer contributor, even those with commits privileges. None of the committers have any responsibility to you, so you'll need to try a different approach than blame, complaints, and pushing false divisions. I don't know how you normally deal with people you want something from, but there are better approaches to get people to do things. If verbal abuse and attacks don't work, maybe you should step it up a small notch and try force, or at least threat of force? BTW, this is best done through lawyers and government as they prefer to be the only ones to do such things. If you're successful in a lawsuit perhaps you can get the police to come and arrest any community member with commit privileges who won't commit the patches you want. Oh wait, maybe that won't work either... that would just cause everyone in any jurisdiction you manage to manipulate to run away from the project and not be a committer any more, preferably before any personal legal action or arrest comes their way. H. Maybe that won't work so well. There must be some sort of better way... -David On Jul 14, 2010, at 6:01 PM, Mike Z wrote: The community (Abdullah Shaikh) took the time, researched, identified, coded, and submitted a patch. I don't know what more could have been asked of the community. I'm a new guy here true, but I'd like to know that if I took the time to submit a fix to ofbiz, for the benefit of the community, that it would be taken seriously, especially patches. Since the feature doesn't even work, and creates a big ugly red message to the user, I would also guess that most implementations would choose not to enable this feature. I guess I'll need to create my own local svn repository and patch it myself. On Wed, Jul 14, 2010 at 12:50 PM, Scott Gray scott.g...@hotwaxmedia.com wrote: Each release is only as good as the community makes it. Community is the key word here, nobody gets paid to make sure Mike Z is downloading a bug free release. My guess is that most implementations have chosen not to allow customer's to cancel their orders and hence the bug doesn't concern them. If it concerns you then download the patch, test it, report the results and eventually a committer will find some spare time to look at it and possibly commit it. What else? Possibly plenty else. You can view the reported unresolved bugs by release in jira and you'll also need to be open to the possibility that there are other unreported bugs. It is up to users of the release like yourself to test the features that you need working and if they aren't then report them. Like I said, the release is only as good as the community makes it. Regards Scott HotWax Media http://www.hotwaxmedia.com On 15/07/2010, at 4:55 AM, Mike Z wrote: I'm testing my new store, when I decide to login as a user and cancel an order (which is suppose to work). The user sees this: The Following Errors Occurred: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Could not commit transaction for service [cancelOrderItem] call: Roll back error, could not commit transaction, was rolled back instead because of: Error in simple-method [Auto create OrderAdjustments [file:/opt/ofbiz-9.04/applications/order/script/org/ofbiz/order/order/OrderServices.xml#recreateOrderAdjustments]]: ; [Security Error To Run Auto Create Order Adjustments]) Odd. Looking further, I discover that a bug was submitted back in OCT09, priority MAJOR, with a patch, and verified: https://issues.apache.org/jira/browse/OFBIZ-3075 Why wasn't it fixed in 9.04 SVN? I'm sorry,
Re: Want to hear a story of how automatic services gets fired :)
https://demo-trunk.ofbiz.apache.org/webtools/control/FindJob click on find pick any of the services you see. sakthi vadivel sent the following on 7/15/2010 11:24 AM: hiii folks I am just new to ofbiz, i have read through the post Password Expiry there i read about Running a nightly job. I want to know how nightly jobs are triggered, which caused it to run, on which basis its gets triggered, which process is parent of this nightly jobs and automatic async services and what ECA will do for us. If anyone kindly explains it and an example service name (to find out code) it'll be very helpful for me to get overall imagination of the system functioning. regards sakthi
Re: Want to hear a story of how automatic services gets fired :)
forgot this one https://demo-trunk.ofbiz.apache.org/webtools/control/scheduleJob sakthi vadivel sent the following on 7/15/2010 11:24 AM: hiii folks I am just new to ofbiz, i have read through the post Password Expiry there i read about Running a nightly job. I want to know how nightly jobs are triggered, which caused it to run, on which basis its gets triggered, which process is parent of this nightly jobs and automatic async services and what ECA will do for us. If anyone kindly explains it and an example service name (to find out code) it'll be very helpful for me to get overall imagination of the system functioning. regards sakthi
Re: Contributor branch Proposal, was: Contributor branches https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal was: Attaching files to a product
Inlne: David E Jones sent the following on 7/15/2010 10:39 AM: This looks like more of a separate repository than a branch of OFBiz. yes and no. since it would usually not be merged back to ofbiz, yes, being able to sync trunk to branch that all in the branch work with no. First off, the term branch just doesn't apply. A branch of a source repository is effectively a copy of the repo that can be changed separately that was the intention. and is meant to eventually be merged back into the trunk. If a branch is not meant to be merged back into the trunk, it is a fork. So version 4.0 9.04, 10.4 will be merged back to the trunk? or are they now Forks? What you're describing isn't even a fork as it doesn't sound like it would be a copy of OFBiz that is changed separately, matter of perspective but rather a repository for add-on modules. of course they are addons. for instance the manufacturing, travel and Eccommerce would be defined as addon, Just as the finacial Services, telecommunication, Proffiessional services, Insurance and HealthCare are in the vol II of data model book. so why limit it to just those vertical markets. there are many. By having the trunk brought into the Contributors section they would could access it and pull down everything at once to work with or use. Also, it sounds like it would best be done outside of the ASF, especially the reason to keep it was the ability to move the truck into it. if you don't want a vote where PMC votes are binding... that's all there is at the ASF. clarification it was meant to communicate the popular vote is meant as an indicatore, but the PMC would be the deciding vote. For those interested, why not just create a sourceforge or google code project and share commit access with others who are interested? There is nothing that says OFBiz add-on modules have to be part of the project, or that people can't create separate projects to do such things. If various people want to work together to do so, from the community spirit perspective... all the better! it also gives ofbiz a greater appeal to the users that may use ofbiz in a vertical market. and it does not stop any current developer from learning and offering these. -David On Jul 15, 2010, at 10:11 AM, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal David E Jones sent the following on 7/15/2010 9:03 AM: Hans, How would you create such a branch, or what would that look like? Who would be able to commit to it? -David On Jul 15, 2010, at 2:59 AM, Hans Bakker wrote: Shouldn't we do a proof of concept? I will volunteer to create and update a new branch for BJ to start and everyone who would like to contribute. When the people on this branch say they are ready we can judge what is there and/or provide suggestions for enhancement. After general consensus the branch will be merged into the trunk. Any comments? Regards, Hans On Sat, 2010-07-10 at 18:21 -0700, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal BJ Freeman sent the following on 7/9/2010 11:07 PM: I am writing a proposal for Contributors branch. some of the points are: 1)components not continued to be supported in the specialpurpose get move to the contributors branch till interest is renewed. this would simplify maintaining the trunk but allow people to pull it down if they want to work on it. 2)there is no guarantee of the ofbiz community support of the contributions. 3)people can test the contribution and may vote to include it in the trunk. 4)it gives one place to make sure all contributions are integrated with the latest trunk and each other without effecting the trunk. it puzzles me that it is ok open a branch to collorate, but when opportunity to have a lot of contributions avalible that would spread Ofbiz acceptance you bulk. under you logic that it can be done elsewhere why not do the same for Hippo. I would be interested in your reasons why besides it can be elsewhere. Scott Gray sent the following on 7/9/2010 10:27 PM: What need would contributor branches meet that can't already be met using the likes of sourceforge, google code or github? Regarding your other statements, at some point Hans you are going to need to ask yourself why it is mostly only your commits that cause so much negative discussion. Everyone else seems to work together just fine for the most part. I'm not saying it's all your fault but you can't just blame everyone else for these problems and ignore your own contribution to them. Regards Scott On 10/07/2010, at 2:54 PM, Hans Bakker wrote: I have the same opinion as you BJ, even as a committer it is too much problem contributing because of the number of technical people in the PMC which often only judge on technical qualities and making the system technically as difficult as possible. The current discussion (not really sure if it is one) between Adrian and
Re: demo-trunk site dieing lead
-- View this message in context: http://ofbiz.135035.n4.nabble.com/demo-trunk-site-dieing-lead-tp2289921p2290848.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: demo-trunk site dieing lead
It may be helpful to show some error log... BJ Freeman wrote: I been running the trunk as a demo-site and it finally crashed. I have not plowed through the logs to see the orgin of the error but it lost its connection to derby. getting a lot of can not connect errors. = 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 -- View this message in context: http://ofbiz.135035.n4.nabble.com/demo-trunk-site-dieing-lead-tp2289921p2290852.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Want to hear a story of how automatic services gets fired :)
Hi Sakthi, this will help understand https://cwiki.apache.org/confluence/display/OFBTECH/Service+Engine+Guide On Fri, Jul 16, 2010 at 2:34 AM, BJ Freeman bjf...@free-man.net wrote: forgot this one https://demo-trunk.ofbiz.apache.org/webtools/control/scheduleJob sakthi vadivel sent the following on 7/15/2010 11:24 AM: hiii folks I am just new to ofbiz, i have read through the post Password Expiry there i read about Running a nightly job. I want to know how nightly jobs are triggered, which caused it to run, on which basis its gets triggered, which process is parent of this nightly jobs and automatic async services and what ECA will do for us. If anyone kindly explains it and an example service name (to find out code) it'll be very helpful for me to get overall imagination of the system functioning. regards sakthi -- Regards, Varun Bhansaly
Re: demo-trunk site dieing lead
as I get time will go through about a month worth of console logs looking for when ofbiz lost connection to derby. james_sg sent the following on 7/15/2010 6:08 PM: It may be helpful to show some error log... BJ Freeman wrote: I been running the trunk as a demo-site and it finally crashed. I have not plowed through the logs to see the orgin of the error but it lost its connection to derby. getting a lot of can not connect errors. = BJ Freemanhttp://bjfreeman.elance.com Strategic Power Office with Supplier Automation http://www.businessesnetwork.com/automation/viewforum.php?f=52 Specialtymarket.comhttp://www.specialtymarket.com/ Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man
Proper use of thruDate
Hello, What is the best practice in using the thruDate of an item. I know that when deleting or expiring an item, it is best to just fill in the thruDate. The reason behind this is to have a record of deleted/expired items. What if an item needs to be reused again. Is it a matter of emptying out the thruDate or setting it to a future expiry date? If this is the best practice, how would ofbiz keep track of whether an item has ever been expired? Thanks in advance -- View this message in context: http://ofbiz.135035.n4.nabble.com/Proper-use-of-thruDate-tp2290914p2290914.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Hard space in catalog name
Hi David, shouldn't you use nbsp; instead of $nbsp; ? -Bruno 2010/7/15 David van der Staak da...@ict2mkb.nl Hi, I'm trying to add a hardspace in the catalog name, the name that is visible on the front end. However, when I type the $nbsp; in the name it gets changed to #36;nbsp#59; which shows it as the literal string $nbsp; in the browser. I'm trying to make the name not wrap, as I rather have it breaking out of the box then breaking the entire layout (which is what happens now). TL;DR How to add a hard space in catalog name? Regards, David
Re: Contributor branch Proposal, was: Contributor branches https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal was: Attaching files to a product
Having these extensions managed as add-on modules in a separate repository will be beneficial to the OFBiz trunk. I mean that this way of managing extensions will probabily require improvements in the trunk itself to better manage extensions. (i.e. https://issues.apache.org/jira/browse/OFBIZ-3373) Having the extensions in the trunk could generate new dependency problems (like we have now with many of OFBiz components) and will not help setting in place a powerfull, community-wide method of managing extensions. My two cents, -Bruno 2010/7/15 BJ Freeman bjf...@free-man.net Inlne: David E Jones sent the following on 7/15/2010 10:39 AM: This looks like more of a separate repository than a branch of OFBiz. yes and no. since it would usually not be merged back to ofbiz, yes, being able to sync trunk to branch that all in the branch work with no. First off, the term branch just doesn't apply. A branch of a source repository is effectively a copy of the repo that can be changed separately that was the intention. and is meant to eventually be merged back into the trunk. If a branch is not meant to be merged back into the trunk, it is a fork. So version 4.0 9.04, 10.4 will be merged back to the trunk? or are they now Forks? What you're describing isn't even a fork as it doesn't sound like it would be a copy of OFBiz that is changed separately, matter of perspective but rather a repository for add-on modules. of course they are addons. for instance the manufacturing, travel and Eccommerce would be defined as addon, Just as the finacial Services, telecommunication, Proffiessional services, Insurance and HealthCare are in the vol II of data model book. so why limit it to just those vertical markets. there are many. By having the trunk brought into the Contributors section they would could access it and pull down everything at once to work with or use. Also, it sounds like it would best be done outside of the ASF, especially the reason to keep it was the ability to move the truck into it. if you don't want a vote where PMC votes are binding... that's all there is at the ASF. clarification it was meant to communicate the popular vote is meant as an indicatore, but the PMC would be the deciding vote. For those interested, why not just create a sourceforge or google code project and share commit access with others who are interested? There is nothing that says OFBiz add-on modules have to be part of the project, or that people can't create separate projects to do such things. If various people want to work together to do so, from the community spirit perspective... all the better! it also gives ofbiz a greater appeal to the users that may use ofbiz in a vertical market. and it does not stop any current developer from learning and offering these. -David On Jul 15, 2010, at 10:11 AM, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal David E Jones sent the following on 7/15/2010 9:03 AM: Hans, How would you create such a branch, or what would that look like? Who would be able to commit to it? -David On Jul 15, 2010, at 2:59 AM, Hans Bakker wrote: Shouldn't we do a proof of concept? I will volunteer to create and update a new branch for BJ to start and everyone who would like to contribute. When the people on this branch say they are ready we can judge what is there and/or provide suggestions for enhancement. After general consensus the branch will be merged into the trunk. Any comments? Regards, Hans On Sat, 2010-07-10 at 18:21 -0700, BJ Freeman wrote: https://cwiki.apache.org/confluence/display/OFBIZ/Contributors+Branch+proposal BJ Freeman sent the following on 7/9/2010 11:07 PM: I am writing a proposal for Contributors branch. some of the points are: 1)components not continued to be supported in the specialpurpose get move to the contributors branch till interest is renewed. this would simplify maintaining the trunk but allow people to pull it down if they want to work on it. 2)there is no guarantee of the ofbiz community support of the contributions. 3)people can test the contribution and may vote to include it in the trunk. 4)it gives one place to make sure all contributions are integrated with the latest trunk and each other without effecting the trunk. it puzzles me that it is ok open a branch to collorate, but when opportunity to have a lot of contributions avalible that would spread Ofbiz acceptance you bulk. under you logic that it can be done elsewhere why not do the same for Hippo. I would be interested in your reasons why besides it can be elsewhere. Scott Gray sent the following on 7/9/2010 10:27 PM: What need would contributor branches meet that can't already be met using the likes of sourceforge, google code or github? Regarding your other statements, at some point Hans you are going to need to ask yourself why it