Re: A question about Content

2013-02-22 Thread Hans Bakker
Hi Lee, we are kind of re-activating the content component in growerp.com, so please feel free , as Adrian said, to supply patches we will be very happy to commit them Regards, Hans Growerp: The ERP system which grows with your business On 02/22/2013 03:12 PM, Adrian Crum wrote:

How to handle transaction?

2013-02-22 Thread Winster Jose
Hi, I want to store entities into database using delegator.create(genericValue). I want to wrap this operation in a transaction so that if any of the entity insert operation fails, rollback all previous insert operations. How can I do that in OFBiz? Thanks in advance Winster T Jose Director -

Re: How to handle transaction?

2013-02-22 Thread Adrian Crum
If the operation is within a service, you don't need to worry about handling transactions - the service engine does that for you. -Adrian On 2/22/2013 12:40 PM, Winster Jose wrote: Hi, I want to store entities into database using delegator.create(genericValue). I want to wrap this operation

Re: How to handle transaction?

2013-02-22 Thread Winster Jose
Thanks Adrian. Currently I am invoking the method from groovy directly. So, I need to change the way I did, right? On Fri, Feb 22, 2013 at 7:13 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: If the operation is within a service, you don't need to worry about handling transactions -

Re: How to handle transaction?

2013-02-22 Thread Adrian Crum
How did you invoke Groovy? -Adrian On 2/22/2013 1:48 PM, Winster Jose wrote: Thanks Adrian. Currently I am invoking the method from groovy directly. So, I need to change the way I did, right? On Fri, Feb 22, 2013 at 7:13 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: If the

Re: How to handle transaction?

2013-02-22 Thread Deepak Agarwal
Hello Winster, You need to call the service as : dispatcher.runSync(MyService, map); This way a new transaction is automatically created if there is no current transaction in place. If there was a transaction (in case of service chain, one service calling to another service) a new transaction

Re: List of all people and the company they work for

2013-02-22 Thread James Piechota
Solved (I couldn't let it go). For anyone else looking to do something similar, the following will create a view-entity with two columns (person and group) and populated with all EMPLOYMENT relationships (you can adjust the condition at the end to grab other relationships). Main reason I've needed

Re: List of all people and the company they work for

2013-02-22 Thread James Piechota
Yep, thanks. James On Fri, Feb 22, 2013 at 3:27 PM, Adrian Crum adrian.c...@sandglass-software.com wrote: It's good to know you got it sorted. I would recommend leaving the condition out of the view - so you can reuse it for other party relationships. -Adrian On 2/22/2013 10:49 PM,