Re: How can I know the session object value inside .groovy file

2023-04-25 Thread Jacques Le Roux
Hi Mahi, Please see https://cwiki.apache.org/confluence/display/OFBIZ/Variables+always+available+in+screen+context HTH Jacques Le 22/04/2023 à 14:04, Mahi maheshwari a écrit : Hello Community, how can I know the session object values in .groovy I want to know where the session object

How can I know the session object value inside .groovy file

2023-04-22 Thread Mahi maheshwari
Hello Community, how can I know the session object values in .groovy I want to know where the session object values are set and which file and module. please share the path of that file. I've included the piece of code for reference below. println "hey context==="+context.detailScree

RE: Re: How to retrieve information in database with groovy OFBiz?

2022-06-13 Thread Dibe koffi
not already, I recommend you to read/view this page > https://cwiki.apache.org/confluence/display/OFBIZ/Framework+Introduction+Videos+and+Diagrams > when you get time, > particularly > https://cwiki.apache.org/confluence/download/attachments/7045155/18ArtRefDia.pdf?version=1=12670534930

Re: How to retrieve information in database with groovy OFBiz?

2022-06-12 Thread Jacques Le Roux
/attachments/7045155/18ArtRefDia.pdf?version=1=1267053493000=v2 Of course BSH is now Groovy. HTH Jacques Le 12/06/2022 à 01:05, Dibe koffi a écrit : Hi, I’m koffi a beginner OFBiz developper. I’m facing a problem while developing car rental Application I want to do this: I define an entity named “Car

How to retrieve information in database with groovy OFBiz?

2022-06-11 Thread Dibe koffi
ing the “carId" There is a screen named “car" in which a put a link to the carDetail with parameter carId. When a click on this link the parameter will be send to the screen carDetail which will run groovy script to fetch the corresponding car. Then the result ( the match car ) will be then se

Re: Calling java class from groovy error

2022-05-25 Thread Avijit Bose
[10046] > > > Possible solutions: getCompanyName(java.lang.String) > > > groovy.lang.MissingMethodException: No signature of method: static > > > com.akm.exim.events.DataUtils.getcompanyName() is applicable for > > > argument types: (java.lang.String) values: [

Re: Calling java class from groovy error

2022-05-25 Thread Daniel Watford
> groovy.lang.MissingMethodException: No signature of method: static > > com.akm.exim.events.DataUtils.getcompanyName() is applicable for > > argument types: (java.lang.String) values: [10046] > > Possible solutions: getCompanyName(java.lang.String) > > at > groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClas

Re: Calling java class from groovy error

2022-05-25 Thread Avijit Bose
> groovy.lang.MissingMethodException: No signature of method: static > com.akm.exim.events.DataUtils.getcompanyName() is applicable for > argument types: (java.lang.String) values: [10046] > Possible solutions: getCompanyName(java.lang.Strin

Calling java class from groovy error

2022-05-25 Thread Avijit Bose
dException: No signature of method: static com.akm.exim.events.DataUtils.getcompanyName() is applicable for argument types: (java.lang.String) values: [10046] Possible solutions: getCompanyName(java.lang.String) at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1501) ~[

Re: Choosing between Java and Groovy

2021-05-24 Thread Rishi Solanki
Groovy has significant goodies to adopt over java like easy to learn due to java like syntax, scripting language can be use to develop services faster than java, default packages and type casting shorten syntax makes it easy to understand. No build and server restart require. The only reason

Re: Choosing between Java and Groovy

2021-04-16 Thread Jacques Le Roux
Exactly a very important point, even in production (though on the edge in this case), same with Freemarker and Minilang (deprecated in favour of Groovy) Jacques Le 16/04/2021 à 17:03, Tomek a écrit : Hi Danny, Thank you for your response. I prefer Java rather than Groovy. But as far as I

Re: Choosing between Java and Groovy

2021-04-16 Thread Tomek
Hi Danny, Thank you for your response. I prefer Java rather than Groovy. But as far as I know writing services in Java required restart the server. It seems that choosing Groovy is better option from productivity point of view. Tomek On 16.04.2021 15:49, Danny Trunk wrote: > Additiona

Re: Choosing between Java and Groovy

2021-04-16 Thread Jacques Le Roux
+Tutorial+-+From+Mini+Language+to+Groovy HTH Jacques Le 16/04/2021 à 15:49, Danny Trunk a écrit : Additionally Regarding your question to choose between Java and Groovy: That depends on your personal preferences. You can choose whatever you want. Tomek hat am 16.04.2021 14:48 geschrieben

Re: Choosing between Java and Groovy

2021-04-16 Thread Danny Trunk
Additionally Regarding your question to choose between Java and Groovy: That depends on your personal preferences. You can choose whatever you want. > Tomek hat am 16.04.2021 14:48 geschrieben: > > > Hi, > > I'am browsing the code of OFBiz and I see that the se

Re: Choosing between Java and Groovy

2021-04-16 Thread Danny Trunk
rvices are written > in multiple languages like Java or Groovy and even XML. Are there some > rules that help me to choose between Java and Groovy? > > Tomek

Choosing between Java and Groovy

2021-04-16 Thread Tomek
Hi, I'am browsing the code of OFBiz and I see that the services are written in multiple languages like Java or Groovy and even XML. Are there some rules that help me to choose between Java and Groovy? Tomek

Re: How to debug Groovy scripts.

2020-01-14 Thread James Yong
ft, Double cntl) > to search and run anything. > > In Eclipse I had been trying ofbizDebug task, vs in here I used ofbiz from > the debug menu. > > Thanks. > > > On Fri, Jan 10, 2020 at 6:42 PM James Yong wrote: > > > Hi Robert, > > > > Debuggin

Re: How to debug Groovy scripts.

2020-01-11 Thread Robert Wynkoop
PM James Yong wrote: > Hi Robert, > > Debugging groovy scripts should work in IntelliJ IDEA Community Edition. > > Also see > https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Intellij+IDEA > > Regards, > James > > On 2020/01/1

Re: How to debug Groovy scripts.

2020-01-11 Thread Jacques Le Roux
out. Using Eclipse: Version: 2019-09 R (4.13.0) Build id: 20190917-1200 Installed Plugin that may be relevant: Groovy Development Tools 3.7.0 Buildship Gradle Integration 3.0 EGradle Editor and IDE 2.6.1 Thanks for your time. Robert Wynkoop On Fri, Jan 10, 2020 at 4:06 PM Jacques Le Roux

Re: How to debug Groovy scripts.

2020-01-10 Thread James Yong
Hi Robert, Debugging groovy scripts should work in IntelliJ IDEA Community Edition. Also see https://cwiki.apache.org/confluence/display/OFBIZ/Running+and+Debugging+OFBiz+in+Intellij+IDEA Regards, James On 2020/01/10 15:46:20, Robert Wynkoop wrote: > How do I debug the Groovy scri

Re: How to debug Groovy scripts.

2020-01-10 Thread Robert Wynkoop
Jacques, If I can get it working in Eclipse, then I will be able to figure Netbeans out. Using Eclipse: Version: 2019-09 R (4.13.0) Build id: 20190917-1200 Installed Plugin that may be relevant: Groovy Development Tools 3.7.0 Buildship Gradle Integration 3.0 EGradle Editor and IDE 2.6.1 Thanks

Re: How to debug Groovy scripts.

2020-01-10 Thread Jacques Le Roux
Le 10/01/2020 à 22:38, Robert Wynkoop a écrit : Any ideas of what I might try? Using Eclipse or IntelliJ ? Sorry ;) Jacques

Re: How to debug Groovy scripts.

2020-01-10 Thread Robert Wynkoop
Jacques, Thanks. Well I'm having fun. New to Gradle, new to Goovy, I'm not making progress. I added getDirectoryInActiveComponentsIfExists('groovyScripts') to sourceSets {main { groovy { But no joy in Netbeans. I then ran the task "eclipse" and tried eclipse(

Re: How to debug Groovy scripts.

2020-01-10 Thread Jacques Le Roux
You might be interested by https://issues.apache.org/jira/browse/OFBIZ-10226 HTH Jacques Le 10/01/2020 à 16:46, Robert Wynkoop a écrit : How do I debug the Groovy scripts? In netbeans and eclipse, the groovy file does not seem to be on the class path. I'm unable to set break points.  Any

Re: How to debug Groovy scripts.

2020-01-10 Thread Robert Wynkoop
On Fri, Jan 10, 2020 at 11:00 AM Daniel Watford wrote: > Hi Robert, > > > Groovy scripts are not on the classpath in the normal sense, but are > loaded (and I guess compiled) at runtime from the script's .groovy file. > > This is handled in the GroovyEngine#serviceInvoker wh

Re: How to debug Groovy scripts.

2020-01-10 Thread Daniel Watford
Hi Robert, Groovy scripts are not on the classpath in the normal sense, but are loaded (and I guess compiled) at runtime from the script's .groovy file. This is handled in the GroovyEngine#serviceInvoker where you'll see a line similar to: Script script = InvokerHelper.createScript

Re: How to debug Groovy scripts.

2020-01-10 Thread Taher Alkhateeb
Debugger might not work given that these scripts are not directly called within the classpath (they are enhanced with OFBiz-specific context information. I would use print statements to debug things. On Fri, Jan 10, 2020 at 6:55 PM Robert Wynkoop wrote: > How do I debug the Groovy scri

How to debug Groovy scripts.

2020-01-10 Thread Robert Wynkoop
How do I debug the Groovy scripts? In netbeans and eclipse, the groovy file does not seem to be on the class path. I'm unable to set break points. Any tips to configure so I can debug OFBiz Java embedded Groovy. [image: 2020-01-10 09_40_18-ofbiz-framework - Apache NetBeans IDE 11.2.jpg

Re: not able to export webservices defined using groovy engine

2019-10-31 Thread Rajesh Mallah
ious observation. > > Many services with groovy are getting exported > > Looks like none of the services defined in are getting loaded. > > --> file: > /opt/ofbiz/ofbiz-latest/applications/product/servicedef/services.xml > > default-entity-name="ProductCategory

Re: not able to export webservices defined using groovy engine

2019-10-31 Thread Jacques Le Roux
observation. Many services with groovy are getting exported Looks like none of the services defined in are getting loaded. --> file: /opt/ofbiz/ofbiz-latest/applications/product/servicedef/services.xml in /opt/ofbiz/ofbiz-latest/applications/product/ofbiz-component.xml the above file is alre

Re: not able to export webservices defined using groovy engine

2019-10-31 Thread Rajesh Mallah
Sorry pls ignore previous observation. Many services with groovy are getting exported Looks like none of the services defined in are getting loaded. --> file: /opt/ofbiz/ofbiz-latest/applications/product/servicedef/services.xml in /opt/ofbiz/ofbiz-latest/applications/product/of

not able to export webservices defined using groovy engine

2019-10-31 Thread Rajesh Mallah
Hi , In my installation using ofbiz trunk service using groovy engine are not getting exported inspite of export="true" attribute in service xml files. other engine methods are getting exported. Please suggest where should i check. Regds mallah.

Re: Groovy

2017-03-09 Thread Aditya Sharma
Moving discussion to user list. Thanks & Regards, Aditya Sharma Enterprise Software Engineer Hotwax Systems http://www.hotwaxsystems.com/ On Fri, Mar 10, 2017 at 8:51 AM, Aditya Sharma < aditya.sha...@hotwaxsystems.com> wrote: > Hello Ahmad, > > If your question is "*Ho

Re: References books for Groovy and Gradle

2016-07-22 Thread Jacques Le Roux
so a écrit : Groovy in Action is the bible. p On Thu, Jul 21, 2016 at 2:38 PM, Jacques Le Roux <jacques.le.r...@les7arts.com <mailto:jacques.le.r...@les7arts.com>> wrote: Hi, What books would you recommend today as references for Groovy and Gradle? A best couple would be enough ;) TIA Jacques

Re: References books for Groovy and Gradle

2016-07-21 Thread Guillaume Laforge
For Groovy itself: https://www.manning.com/books/groovy-in-action-second-edition :-) On Thu, Jul 21, 2016 at 2:45 PM, Taher Alkhateeb <slidingfilame...@gmail.com > wrote: > My favorite book for Gradle is Gradle in action. I also like groovy in > action. Both books are reasona

Re: References books for Groovy and Gradle

2016-07-21 Thread Taher Alkhateeb
My favorite book for Gradle is Gradle in action. I also like groovy in action. Both books are reasonably designed with an easy to follow design for the chapters and they work as a reference whenever you need to come back for advanced topics On Jul 21, 2016 3:38 PM, "Jacques Le Roux" <

References books for Groovy and Gradle

2016-07-21 Thread Jacques Le Roux
Hi, What books would you recommend today as references for Groovy and Gradle? A best couple would be enough ;) TIA Jacques

Re: Groovy DSL

2015-01-22 Thread Pierre Smits
, i...@agentur-m3.de i...@agentur-m3.de wrote: A test of Groovy DSL turned out an error due to unknown function select: import java.util.ArrayList; import javolution.util.FastList; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilProperties; import

Re: Groovy DSL

2015-01-22 Thread Jacopo Cappellato
I am working on this, I will let you know something soon. Jacopo On Jan 22, 2015, at 8:45 AM, i...@agentur-m3.de wrote: A test of Groovy DSL turned out an error due to unknown function select: import java.util.ArrayList; import javolution.util.FastList; import org.ofbiz.base.util.Debug

Groovy DSL

2015-01-21 Thread i...@agentur-m3.de
A test of Groovy DSL turned out an error due to unknown function select: import java.util.ArrayList; import javolution.util.FastList; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilProperties; import org.ofbiz.base.util.UtilHttp; import org.ofbiz.base.util.UtilMisc; import

Re: findList method in Groovy..

2014-09-08 Thread jfrad...@styleline.com
the dead link. Was just trying to help sorry. - Joel Fradkin -- View this message in context: http://ofbiz.135035.n4.nabble.com/findList-method-in-Groovy-tp278232p4654966.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: findList method in Groovy..

2014-09-08 Thread Jacques Le Roux
reference that helped me, so I thought I would post it in case anyone else searched the list and found the dead link. Was just trying to help sorry. - Joel Fradkin -- View this message in context: http://ofbiz.135035.n4.nabble.com/findList-method-in-Groovy-tp278232p4654966.html Sent from

Re: findList method in Groovy..

2014-09-07 Thread Jacques Le Roux
entityCondition, java.util.Setjava.lang.String fieldsToSelect, java.util.Listjava.lang.String orderBy, EntityFindOptions findOptions, boolean useCache) - Joel Fradkin -- View this message in context: http://ofbiz.135035.n4.nabble.com/findList-method-in-Groovy-tp278232p4654892.html Sent from

Re: findList method in Groovy..

2014-09-05 Thread jfrad...@styleline.com
entityCondition, java.util.Setjava.lang.String fieldsToSelect, java.util.Listjava.lang.String orderBy, EntityFindOptions findOptions, boolean useCache) - Joel Fradkin -- View this message in context: http://ofbiz.135035.n4.nabble.com/findList-method-in-Groovy-tp278232p4654892.html Sent from the OFBiz

groovy service bug

2014-02-19 Thread Paolo Piersanti
Helllo I'm new to ofbiz (12.04.02) I'm trying to implement my first groovy service. According to the documentationOFBiz DSL for Groovy Services and Events https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+DSL+for+Groovy+Services+and+Events I have my service method implemented as def

Re: groovy service bug

2014-02-19 Thread Jacopo Cappellato
of the system and your feedback will be valuable. Jacopo On Feb 19, 2014, at 2:03 PM, Paolo Piersanti pa...@micso.it wrote: Helllo I'm new to ofbiz (12.04.02) I'm trying to implement my first groovy service. According to the documentationOFBiz DSL for Groovy Services and Events https

Re: groovy service bug

2014-02-19 Thread Paolo Piersanti
On 19/02/14 15:27, Jacopo Cappellato wrote: Hi Paolo, you are indeed right, the code is still experimental and needs some love! I have committed your fix in rev. 1569743 (trunk), rev. 1569746 (for 13.07) and rev. 1569750 (for 12.04). Please keep us updated on the results of your tests and

Re: groovy service engine

2014-02-17 Thread Jad El Omeiri
BTW before applying whatever patches... I think you should describe more your problem say what you're exactly doing. Perhaps your problem is totally different! - Jad El Omeiri -- View this message in context: http://ofbiz.135035.n4.nabble.com/groovy-service-engine-tp4648270p4648324.html

Re: groovy service engine

2014-02-15 Thread 叶双明
Omeiri -- View this message in context: http://ofbiz.135035.n4.nabble.com/groovy-service-engine-tp4648270p4648275.html Sent from the OFBiz - User mailing list archive at Nabble.com. -- 叶双明

groovy service engine

2014-02-12 Thread Jad El Omeiri
Hello, I tried several times previously calling java services from java events. It was always successful. Now, I am trying to call groovy services (which are fully working) instead of java services. But I'm having problems calling them. I am getting the following message in the logs: /Message

Re: groovy service engine

2014-02-12 Thread Jad El Omeiri
if anyone has same problem, pay attention to use /GenericDispatcher/ and not /LocalDispatcher/. That partly soved calling the service. - Jad El Omeiri -- View this message in context: http://ofbiz.135035.n4.nabble.com/groovy-service-engine-tp4648270p4648275.html Sent from the OFBiz - User

Re: Groovy call a service within a while loop (wait, notify?)...

2013-05-22 Thread Robert G.
Groovy things as jobs, great! -- View this message in context: http://ofbiz.135035.n4.nabble.com/Groovy-call-a-service-within-a-while-loop-wait-notify-tp4641435p4641451.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Groovy call a service within a while loop (wait, notify?)...

2013-05-22 Thread Jacques Le Roux
thanks Deepak, your hints helped me a lot to use Groovy things as jobs, great! -- View this message in context: http://ofbiz.135035.n4.nabble.com/Groovy-call-a-service-within-a-while-loop-wait-notify-tp4641435p4641451.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Groovy call a service within a while loop (wait, notify?)...

2013-05-21 Thread Robert G.
hey guys, I have the following question (maybe groovy basics)...: I do read a csv file with opencsv, so I get it line by line within a while loop. Within this loop I call a simple method service to store selected data from each line in database. With that I thought not to overload my memory

Re: Groovy call a service within a while loop (wait, notify?)...

2013-05-21 Thread Deepak Agarwal
, May 21, 2013 at 9:49 PM, Robert G. g...@mercon24.de wrote: hey guys, I have the following question (maybe groovy basics)...: I do read a csv file with opencsv, so I get it line by line within a while loop. Within this loop I call a simple method service to store selected data from each line

Re: Groovy call a service within a while loop (wait, notify?)...

2013-05-21 Thread Robert G.
ha, that was fast :) I see and this sounds reasonable. But on the otherhand I can change the timeout for the browser, and 10.000 lines is not that much in my opinion. The transaction stops after 2.5 minutes. Or do you have a hint, how I can change the groovy code to a job? btw. what

Re: Groovy call a service within a while loop (wait, notify?)...

2013-05-21 Thread Deepak Agarwal
Yes, you are right, scheduled service is a job. Considering Adrian's suggestion you should keep a low transaction timeout for exampleService and use-transaction=false for the groovy running this service. Groovy files can be used as ofbiz service. You need to prepare a map and put your OUT param

Re: Groovy call a service within a while loop (wait, notify?)...

2013-05-21 Thread Robert G.
is not that good concerning memory. my situation is: a screen includes a submit button to call a ftl with groovy logic. The groovy file calls the opencsv classes in java and gives back an iterator for the array (each line is one array, ittereated with the while loop). within this loop (groovy) I call

Re: Groovy call a service within a while loop (wait, notify?)...

2013-05-21 Thread Robert G.
.135035.n4.nabble.com/Groovy-call-a-service-within-a-while-loop-wait-notify-tp4641435p4641441.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Groovy call a service within a while loop (wait, notify?)...

2013-05-21 Thread Jacques Le Roux
suspend the (surrouding) transaction in which your Groovy file is (I guess you have one automatically, normally you should), and create a new one for your called service. Else the current (surrouding) transaction, in which your groovy file was called, will be used by the called service. By using

Re: how to pass groovy variables to widget screen?

2013-02-12 Thread Vikas Mayur
Btw, Use camel case pattern for naming the groovy file - tips and tricks - https://cwiki.apache.org/OFBIZ/tips-tricks-while-working-with-groovy.html Regards Vikas On Feb 7, 2013, at 10:10 AM, Deepak Dixit wrote: You use same with groovy, rename helloworld.bsh to helloworld.groovy

Re: how to pass groovy variables to widget screen?

2013-02-07 Thread John Smith
Thanks Deepak, Do you know how to make it a global variable(globalContext)? Thanks in advance. John On Thu, Feb 7, 2013 at 3:40 PM, Deepak Dixit deepak.di...@hotwaxmedia.comwrote: You use same with groovy, rename helloworld.bsh to helloworld.groovy helloworld.groovy {code} hello=world

Re: how to pass groovy variables to widget screen?

2013-02-06 Thread Deepak Dixit
You use same with groovy, rename helloworld.bsh to helloworld.groovy helloworld.groovy {code} hello=world; context.hello = hello; {code} include groovy file in action tag. then you can use using ${hello} and in you are using form widget then you can use the from-field attribute. Thanks

Re: Unable to debug groovy script called by screen widget

2012-05-27 Thread Jacopo Cappellato
Jacques, please confirm that you applied the patch I shared in this thread. Are you using Eclipse? I know that there are some config steps required before you can debug Groovy in Eclipse... I would suggest you search the web as they are not specific to OFBiz. Let me know if you are able

Re: Unable to debug groovy script called by screen widget

2012-05-27 Thread Jacques Le Roux
can't use ctrl+shift+i to evaluate expressions, nor use the Eclipse Expressions tab. Also only a this variable is accessible in the Eclipse Variables tab. Its value is the name of the Groovy class. It contains a pointer on the groovy file where the breakpoint is. From there I tried this morning

Re: Unable to debug groovy script called by screen widget

2012-05-27 Thread Jacopo Cappellato
On May 27, 2012, at 9:44 AM, Jacques Le Roux wrote: I was able to stop on breakpoints and then step in code. well, if you were able to do this it means that the trick worked; I think that the limitations you are seeing are related to the eclipse plugin and I doubt there is anything we can do

Re: Unable to debug groovy script called by screen widget

2012-05-26 Thread Jacques Le Roux
I tried the trick today. I was able to put breakpoints in groovy but was not able to see variables in debug mode. Is there a way to do that? Thanks Jacques From: Jacques Le Roux jacques.le.r...@les7arts.com +1 Jacques From: Adrian Crum adrian.c...@sandglass-software.com That looks fine

Re: Unable to debug groovy script called by screen widget

2012-04-13 Thread Jacopo Cappellato
{ +if (filePath.endsWith(.groovy)) { +return GroovyUtil.runScriptAtLocation(filePath, context); +} return executeScript(filePath, functionName, createScriptContext(context), args); } catch (Exception e) { String errMsg = Error

Re: Unable to debug groovy script called by screen widget

2012-04-13 Thread Adrian Crum
That looks fine to me. We can leave it that way until the problem is solved in Groovy. -Adrian On 4/13/2012 10:40 AM, Jacopo Cappellato wrote: Leon, all, until we find a good solution I can share the following patch/tweak for data preparation scripts (screen, forms etc...): Index

Re: Unable to debug groovy script called by screen widget

2012-04-13 Thread Jacques Le Roux
+1 Jacques From: Adrian Crum adrian.c...@sandglass-software.com That looks fine to me. We can leave it that way until the problem is solved in Groovy. -Adrian On 4/13/2012 10:40 AM, Jacopo Cappellato wrote: Leon, all, until we find a good solution I can share the following patch/tweak

Re: Unable to debug groovy script called by screen widget

2012-04-06 Thread Jacques Le Roux
Thanks, I had removed the Groovy plugin from my environment because it was giving me more pain than help. Since then I have updated Eclipse from 3.6.2 to 3.7.2 and tried it again. I must say most of the time I simply use println for Groovy debugging (no IDE need). But in some case the debugger

Re: Unable to debug groovy script called by screen widget

2012-04-05 Thread Leon
hi, Jacqies. I'm using latest groovy plugin which version is 2.6.1, groovy runtime plugin 1.7.10 and 1.8.6. -- View this message in context: http://ofbiz.135035.n4.nabble.com/Unable-to-debug-groovy-script-called-by-screen-widget-tp4533949p4536704.html Sent from the OFBiz - User mailing list

Re: Using Groovy-Eclipse plugin

2011-08-09 Thread kiran
From: ki...@objectedge.com To: user@ofbiz.apache.org Date: 08/08/2011 08:01 PM Subject:Using Groovy-Eclipse plugin Hello Friends, I am new to OfBiz project. I have download the project (ofbiz-trunk-2011-07-29-v1152132) and able to use it build new e-commerce application. Got

Accessing/Modifying Session from Groovy

2011-08-09 Thread Ancheta, Fred
Hello I am trying to modify the session from a Groovy script and was wondering if there were changes in 11.04 that would prevent me from doing this. For example: In Groovy, I would do the following: aList = session.getAttribute(aList); aList.add(item); session.setAttribute(aList, aList); Now

Using Groovy-Eclipse plugin

2011-08-08 Thread kiran
the .classpath to include groovy folders? I found few compilation errors in ecommerce project after doing so. E.g: 1. duplicate classes in the default package (ContentPrep.groovy from ecommerce) 2. Missing ')' in RespondPermAndPrep.groovy on line 98. I am able to step through groovy files

groovy examples

2010-11-01 Thread BJ Freeman
I was going to resurrect the ebay minilanq example till I went there and found it has been replaced by service that are java based. Luckily I have copied that Ebay into a project not effected by svn. I want to take the minilang and put up the bsh example I have then redo it in groovy. so my

Re: groovy examples

2010-11-01 Thread BJ Freeman
oops forgot URL https://cwiki.apache.org/confluence/display/OFBIZ/Minlang+%28simple-methods%29+examples+using+Groovy = BJ Freeman Strategic Power Office with Supplier Automation http://www.businessesnetwork.com/automation/viewforum.php?f=52 Specialtymarket.com http

Re: bsh or groovy in services

2010-10-31 Thread Shereen
hi all Can I now integrate write groovy in minilang as the bsh? if so how? the same way e call bsh? -- View this message in context: http://ofbiz.135035.n4.nabble.com/bsh-or-groovy-in-services-tp152367p3020941.html Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: bsh or groovy in services

2010-10-31 Thread BJ Freeman
minilanq is xml Groovy is more java. they are not compatible. if you asking if you can call a groovy file from minilanq like bsh call-bsh![CDATA[org.ofbiz.commonapp.product.product.KeywordSearch.induceKeywords(newEntity);]]/call-bsh then use script instead of call-bsh. for future if you have

Re: bsh or groovy in services

2010-10-31 Thread Jacques Le Roux
From: BJ Freeman bjf...@free-man.net minilanq is xml Groovy is more java. they are not compatible. if you asking if you can call a groovy file from minilanq like bsh call-bsh![CDATA[org.ofbiz.commonapp.product.product.KeywordSearch.induceKeywords(newEntity);]]/call-bsh then use script instead

Re: bsh or groovy in services

2010-10-31 Thread BJ Freeman
/ Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man From: BJ Freeman bjf...@free-man.net minilanq is xml Groovy is more java. they are not compatible. if you asking if you can call a groovy file from minilanq like bsh call-bsh![CDATA

Re: bsh or groovy in services

2010-10-31 Thread James McGill
So are you saying that the script tag can be used in minilang SimpleMethods just like it is used in Screen actions? I wish there was an example, but in 9.04 at least the only examples are Screens, Forms and Menus. -- James McGill Phoenix AZ

Re: bsh or groovy in services

2010-10-31 Thread BJ Freeman
as Jacques said, using a autocomplete XML editor helps. or read the docs in the xsd. James McGill sent the following on 10/31/2010 12:25 PM: So are you saying that thescript tag can be used in minilang SimpleMethods just like it is used in Screen actions? I wish there was an example, but in

Problem in groovy

2010-10-06 Thread Naveen Kumar
Hi All, I was using delegator.find() in my groovy. My problem:- My application requires 3 where clause that is EntityCondition.makeCondition in the delegator.find(), but it is taking only 2 condition when third condition is given it is giving error, can any one suggest me how to do

Re: Problem in groovy

2010-10-06 Thread Nicolas Malin
Hi Naveen, You need prepare a EntityConditionList to embedeed your three conditions, and pass EntityConditionList to findList function Nicolas Le 06/10/2010 08:11, Naveen Kumar a écrit : Hi All, I was using delegator.find() in my groovy. My problem:- My application requires 3 where clause

Re: Problem in groovy

2010-10-06 Thread Sumit Pandit
/10/2010 08:11, Naveen Kumar a écrit : Hi All, I was using delegator.find() in my groovy. My problem:- My application requires 3 where clause that is EntityCondition.makeCondition in the delegator.find(), but it is taking only 2 condition when third condition is given it is giving error, can

Re: Problem in groovy

2010-10-06 Thread Naveen Kumar
Nicolas Le 06/10/2010 08:11, Naveen Kumar a écrit : Hi All, I was using delegator.find() in my groovy. My problem:- My application requires 3 where clause that is EntityCondition.makeCondition in the delegator.find(), but it is taking only 2 condition when third condition is given

Re: Problem in groovy

2010-10-06 Thread Naveen Kumar
to findList function Nicolas Le 06/10/2010 08:11, Naveen Kumar a écrit : Hi All, I was using delegator.find() in my groovy. My problem:- My application requires 3 where clause that is EntityCondition.makeCondition in the delegator.find(), but it is taking only 2 condition when

RE: Problem in groovy

2010-10-06 Thread Santosh Malviya
in groovy Hi Sumit, Thanks for the information, But i am looking for a documentation, where i will get all delegator information like delegator.find(), delegator.findByAnd(),, Please provide me links to some online documentation. Regards, Naveen. On Wed, Oct 6, 2010 at 12:01 PM, Sumit

Re: Problem in groovy

2010-10-06 Thread Sumit Pandit
: Hi Naveen, You need prepare a EntityConditionList to embedeed your three conditions, and pass EntityConditionList to findList function Nicolas Le 06/10/2010 08:11, Naveen Kumar a écrit : Hi All, I was using delegator.find() in my groovy. My problem:- My application

Re: Problem with groovy

2010-09-30 Thread Naveen Kumar
, Sep 29, 2010 at 3:54 PM, Naveen Kumar naveen.new...@gmail.com wrote: Hi All, I am using *delegator.makeValue* in groovy to store Payment Entity, I am not getting any error in logs but data is not inserting to Entity, can anyone help me to solve the issue. Regards, Naveen.

Groovy DateTime Issue

2010-09-30 Thread Naveen Kumar
suggest me how to implement this in groovy. Regards, Naveen.

Re: Groovy DateTime Issue

2010-09-30 Thread Brajesh Patel
updates payment table to collect payment for next consecutive 5 months on the same date, that is, If today is the first payment (30-09-2010) then next 4 payment will be on the same date of subsequent months(30-10-2010, 30-11-2010, ), Can anyone suggest me how to implement this in groovy. Regards

Re: Groovy DateTime Issue

2010-09-30 Thread Adrian Crum
Take a look at the temporal expressions: https://cwiki.apache.org/confluence/display/OFBENDUSER/Temporal+Expressions -Adrian --- On Thu, 9/30/10, Naveen Kumar naveen.new...@gmail.com wrote: From: Naveen Kumar naveen.new...@gmail.com Subject: Groovy DateTime Issue To: user@ofbiz.apache.org

Re: Groovy DateTime Issue

2010-09-30 Thread Naveen Kumar
payment will be on the same date of subsequent months(30-10-2010, 30-11-2010, ), Can anyone suggest me how to implement this in groovy. Regards, Naveen.

Re: Groovy DateTime Issue

2010-09-30 Thread Naveen Kumar
, Naveen Kumar naveen.new...@gmail.com wrote: From: Naveen Kumar naveen.new...@gmail.com Subject: Groovy DateTime Issue To: user@ofbiz.apache.org Date: Thursday, September 30, 2010, 4:15 AM Hi All, I am writing an automated script which updates payment table to collect payment

Problem with groovy

2010-09-29 Thread Naveen Kumar
Hi All, I am using *delegator.makeValue* in groovy to store Payment Entity, I am not getting any error in logs but data is not inserting to Entity, can anyone help me to solve the issue. Regards, Naveen.

Re: Problem with groovy

2010-09-29 Thread Bilgin Ibryam
makeValue - Creates a Entity in the form of a GenericValue without persisting it Then you have to use .create() method to persist it. Bilgin On Wed, Sep 29, 2010 at 3:54 PM, Naveen Kumar naveen.new...@gmail.comwrote: Hi All, I am using *delegator.makeValue* in groovy to store Payment

Re: date/time in groovy

2010-09-08 Thread Scott Gray
Hi Pierre, Sounds like getDayStart() is being passed a null argument. Either parameters.psd is returning null or toTimestamp() is. Regards Scott HotWax Media http://www.hotwaxmedia.com On 6/09/2010, at 8:55 PM, Pierre Smits wrote: Hi all, In a .groovy file I want to capture from a query

date/time in groovy

2010-09-06 Thread Pierre Smits
Hi all, In a .groovy file I want to capture from a query-string a date-time string for the start of a period ( psd=2010-09-01 09:14:00.000) and a date-time string for the end of a period (ped=2010-09-06 10:46:13.000). In the .groovy file I have following code: periodStartDate = parameters.psd

  1   2   3   >