Re: Knowing if a service is running

2007-11-19 Thread Scott Gray
I meant look at the UI then trace back from there, when you run an mrp it shows the job status on the next screen, also Jacopo's email contained much more useful information. Regards Scott On 20/11/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hmmm, > > Well, this leads me to MrpServices

RE: Knowing if a service is running

2007-11-19 Thread [EMAIL PROTECTED]
Hmmm, Well, this leads me to MrpServices.java and there is nothing in there about determining if the service is already running unless possibly attempting to delegator.removeAll() will throw an exception in some particular case. I gotta believe the service engine has some call you can make dispat

Re: Knowing if a service is running

2007-11-19 Thread Jacopo Cappellato
That is correct; you can also check the Webtools --> Jobs screens... by the way the jobs are stored in the JobSandbox entity. Jacopo Scott Gray wrote: Check out the MRP run in manufacturing. Regards Scott On 20/11/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am writing some services

complex-alias operator

2007-11-19 Thread [EMAIL PROTECTED]
Can anyone point me to some documentation on what operators are implemented for complex-alias operator="?". I've done a search and can find only "-". Skip

RE: Knowing if a service is running

2007-11-19 Thread [EMAIL PROTECTED]
Thank you sire You are chock full'o'info Skip -Original Message- From: Scott Gray [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:52 PM To: user@ofbiz.apache.org Subject: Re: Knowing if a service is running Check out the MRP run in manufacturing. Regards Scott On 20/11/20

Re: Knowing if a service is running

2007-11-19 Thread Scott Gray
Check out the MRP run in manufacturing. Regards Scott On 20/11/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am writing some services that will run nightly and take several hours to > complete. I would like to know that the service is not already > running. I > am creating a record i

Knowing if a service is running

2007-11-19 Thread [EMAIL PROTECTED]
I am writing some services that will run nightly and take several hours to complete. I would like to know that the service is not already running. I am creating a record in a special entity to record the start and stop time and the current progress, but if for instance, the service gets shut down

Re: STATUS for entity

2007-11-19 Thread BJ Freeman
h did not see the orginal so will use scotts reply. I would be best if you has a ofbiz running locally with seed and demo data then use the webtools to look at the data and show the relationships for the entities. The reason is that STATUSITEM (NON DB) is already used. the other is to go thru

Re: STATUS for entity

2007-11-19 Thread Scott Gray
You really need to provide more details if you want to have any chance of a receiving response. Regards Scott On 20/11/2007, Vedam B <[EMAIL PROTECTED]> wrote: > > Hi, > > I am thinking to use STATUS_ITEM for PRODUCT and ecommerce for any > approval. > > Any suggestions. > > Regards > Vedam >

RE: How to access session and request from Java service

2007-11-19 Thread [EMAIL PROTECTED]
Xman Suggest that you first have a look at: http://ofbiz.apache.org/docs/services.html With this, you can gain an understanding of what a service actually is in Ofbiz. In a nutshell, it is basically only a piece of public static code that takes the arguments DispatchContext dctx and Map context.

RE: How to access session and request from Java service

2007-11-19 Thread X Gylee
Skip, Thank you for your explanation. That explains better the design paradigm in OFBiz. I might need to re-think my application design then. However, to understand better, can you elaborate what you said in your response? how can I do the following? You wrote: As a general rule, services do not

RE: java exception in thread error help?

2007-11-19 Thread [EMAIL PROTECTED]
Case If you ran ant clean-all and then ant, you rebuilt everything. Assuming that ant builds with jvm 1.5, you should run with jvm 1.5 without stress. What does "java -version" tell you? Try pointing JAVA_HOME to the exact spot where the jvm is located, eg. set JAVA_HOME=XXX where XXX is someth

RE: java exception in thread error help?

2007-11-19 Thread Case Torres
BJ, I did download version3 again so that, actually, might have fixed it as well. Thanks, Case -Original Message- From: BJ Freeman [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 5:48 PM To: user@ofbiz.apache.org Subject: Re: java exception in thread error help? ant clean-all

RE: java exception in thread error help?[SOLVED!]

2007-11-19 Thread Case Torres
Andrian, You were right. Removing version 4 driver and leaving version3 solved the problem!!. Thanks much everyone!! -Original Message- From: Adrian Crum [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:45 PM To: user@ofbiz.apache.org Subject: Re: java exception in thread e

Re: java exception in thread error help?

2007-11-19 Thread BJ Freeman
ant clean-all I don't believe starts ofbiz. try download the jbc drivers again maybe corrupt/ Case Torres sent the following on 11/19/2007 5:23 PM: > UGH!!! > Still getting the same error message. > Runnning just ant and ant clean-all I didn't get any error messages. > Then ran ant run-install and

Re: UtilTimer Question

2007-11-19 Thread Scott Gray
Hi Bilgin That's not a typo but simply a quick way of turning false into true (by removing the f). Regards Scott On 20/11/2007, Bilgin Ibryam <[EMAIL PROTECTED]> wrote: > > PS: There is a typo in debug.properties file: print.verbose=ftrue > >

RE: java exception in thread error help?

2007-11-19 Thread Case Torres
UGH!!! Still getting the same error message. Runnning just ant and ant clean-all I didn't get any error messages. Then ran ant run-install and still getting the same error message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 5:10 PM

RE: java exception in thread error help?

2007-11-19 Thread Case Torres
Here's what's before the error message: [java] 2007-11-19 17:14:22,729 (main) [ GenericDelegator.java:149:INFO ] Doing entity definition check... [java] 2007-11-19 17:14:22,739 (main) [ ModelEntityChecker.java:506:INFO ] [initReservedWords] array length=1023 [java] 2007-11-19 17:14:

UtilTimer Question

2007-11-19 Thread Bilgin Ibryam
Hi all, I wanted to see how long it takes the execution of some code snippets i wrote and decided to use UtilTimer class for this purpose. It looks like designed for this purpose (event not used at all in ofbiz applications). So i did: UtilTimer utilTimer = new UtilTimer("my_name", true, true)

RE: java exception in thread error help?

2007-11-19 Thread [EMAIL PROTECTED]
I am betting you have a 1.4 compiled version of something somewhere. Try running just ant first, and if that doesnt work, try running ant clean-all and then ant. If you are using postgres, clean-all will not wipe out your data files, but ant run-install-seed will wipe out your seed data (like sta

Re: java exception in thread error help?

2007-11-19 Thread BJ Freeman
do you see the db info just before that XML Read 0.0050s: entityengine.xml Delegator "default" initializing helper "localpostgres" for entity group "org.ofbiz". Doing database check as requested in entityengine.xml with addMissing=true Database Product Name is PostgreSQL Database Product Version i

RE: java exception in thread error help?

2007-11-19 Thread Case Torres
Don't know if this helps but the error message comes right after the database check: [java] 2007-11-19 16:46:22,100 (main) [ GenericDelegator.java:183:INFO ] Doing database check as requested in entityengine.xml with addMissing=true [java] Exception in thread "main" java.lang.UnsupportedCl

RE: java exception in thread error help?

2007-11-19 Thread Case Torres
I removed version 3 and I'm getting the same error message. :-( -Original Message- From: Adrian Crum [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:45 PM To: user@ofbiz.apache.org Subject: Re: java exception in thread error help? Have you tried using only one driver? Case T

Re: java exception in thread error help?

2007-11-19 Thread BJ Freeman
just notice UnsupportedClassVersionError usually I see this when running 1.5 with 1.4 SDK Case Torres sent the following on 11/19/2007 4:43 PM: > BJ, > > Yes, my database is up and running: > Output from ps -ef > postgres 7382 1 0 Nov16 ?00:00:00 > /usr/local/pgsql/bin/postgres -D /

Re: java exception in thread error help?

2007-11-19 Thread Adrian Crum
Have you tried using only one driver? Case Torres wrote: Hi, I'm trying to get my production server up and running with OFBiz Release 4.0 Centos 4 Postgres 8.2.4 Java: jdk-1_5_0_14-linux-i586 In framework/entity/lib/jdbc I have the following drivers: postgresql-8.2-506.jdbc3.jar postgresql-8.2

RE: java exception in thread error help?

2007-11-19 Thread Case Torres
BJ, Yes, my database is up and running: Output from ps -ef postgres 7382 1 0 Nov16 ?00:00:00 /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data postgres 7384 7382 0 Nov16 ?00:00:00 postgres: writer process postgres 7385 7382 0 Nov16 ?00:00:00 postgres: stat

Re: java exception in thread error help?

2007-11-19 Thread BJ Freeman
make user you db server is running make sure you entityengine.xml is pointed to the right db and has the correct userID and password. Case Torres sent the following on 11/19/2007 4:23 PM: > Hi, > > I'm trying to get my production server up and running with OFBiz Release 4.0 > Centos 4 > Postgres

java exception in thread error help?

2007-11-19 Thread Case Torres
Hi, I'm trying to get my production server up and running with OFBiz Release 4.0 Centos 4 Postgres 8.2.4 Java: jdk-1_5_0_14-linux-i586 In framework/entity/lib/jdbc I have the following drivers: postgresql-8.2-506.jdbc3.jar postgresql-8.2-506.jdbc4.jar I'm getting the following error message when

Re: POS and Credit Card Swipes

2007-11-19 Thread Scott Gray
I'm pretty sure you're looking at code that fires on the 2nd pass through, ie after the credit card has already been passed in. I'm at work so can't have a look right now unfortunately. Regards Scott On 20/11/2007, Vince M. Clark <[EMAIL PROTECTED]> wrote: > > I'm looking at PaymentEvents.payCre

Re: Need direction in setting up a Promotion

2007-11-19 Thread David E Jones
Wow! OFBiz 2.0... I don't even know what to say about that, except that it sounds like a bug that was probably fixed around 3 years ago or so. I'm not sure the best way to resolve this, but updating to at least the 4.0 branch would the best way to go. Short of that you could hire someone

Re: Financial Reports - Income Statement

2007-11-19 Thread David E Jones
... and being worked on right now in OFBiz itself. -David On Nov 19, 2007, at 2:56 PM, BJ Freeman wrote: those are in the Finanical package from opentaps. Christopher L sent the following on 11/19/2007 1:46 PM: Is there an income statement report currently implemented in ofbiz? I see a

Re: Financial Reports - Income Statement

2007-11-19 Thread BJ Freeman
those are in the Finanical package from opentaps. Christopher L sent the following on 11/19/2007 1:46 PM: > Is there an income statement report currently implemented in ofbiz? I see a > menu item buried in the accounting tab, but get an error when I click on the > report. To find the menu, fo

Financial Reports - Income Statement

2007-11-19 Thread Christopher L
Is there an income statement report currently implemented in ofbiz? I see a menu item buried in the accounting tab, but get an error when I click on the report. To find the menu, follow these links: Accounting -> Companies -> Account -> Income Statement This is the error I get: org.ofbiz.w

Re: POS and Credit Card Swipes

2007-11-19 Thread Vince M. Clark
I'm looking at PaymentEvents.payCredit It appears as though there is an attempt to parse a single string that contains all the data. First, msrInfo is is stored in a String: String msrInfoStr = msrInfo[1]; Then, further down it is parsed: String[] msrInfoArr = msrInfoStr.split("\\|"); I

Re: POS and Credit Card Swipes

2007-11-19 Thread Scott Gray
>From memory, pos expects the cc number by itself and then another string containing exp. date, first name and last name. So it won't parse the cc no. as its getting too much info. Regards Scott On 20/11/2007, Vince M. Clark <[EMAIL PROTECTED]> wrote: > > Scott - to be clear, it should at least

Re: Radio button

2007-11-19 Thread BJ Freeman
take a look at https://localhost:8443/example/control/FormWidgetExamples or https://demo.hotwaxmedia.com/example/control/FormWidgetExamples Field8: Javascript event I am sure you can adapt this to buttons Vedam B sent the following on 11/19/2007 12:27 PM: > So, you mean based on the Radio button se

RE: POS Reports

2007-11-19 Thread Christopher L
Oops. Actually, there is a Report function in the Pos. Check totals.txt under specialpurpose/pos/config and Receipt.java under specialpurpose/pos/.../device/impl. Chris > Date: Sun, 18 Nov 2007 21:24:51 -0800 > From: [EMAIL PROTECTED] > To: user@ofbiz.apache.org > Subject: POS Reports > >

Re: Error / Exception Handling

2007-11-19 Thread Vedam B
Thanks for your help. Regards Vedam On Nov 20, 2007 2:04 AM, BJ Freeman <[EMAIL PROTECTED]> wrote: > You have to do that in the code for productID creation the controller is > simply and director. > > BTW if you create a product it will auto generate and ID. > not sure how you doing this. > but

RE: POS Reports

2007-11-19 Thread Christopher L
https://issues.apache.org/jira/browse/OFBIZ-235 Not yet. It wouldn't take but a small to moderate effort, IMHO. Chris > Date: Sun, 18 Nov 2007 21:24:51 -0800 > From: [EMAIL PROTECTED] > To: user@ofbiz.apache.org > Subject: POS Reports > > > Our client is looking into creating daily reports f

Re: Error / Exception Handling

2007-11-19 Thread BJ Freeman
You have to do that in the code for productID creation the controller is simply and director. BTW if you create a product it will auto generate and ID. not sure how you doing this. but I use the service to create a product. if you got to the product page https://localhost:8443/catalog/control/Edit

STATUS for entity

2007-11-19 Thread Vedam B
Hi, I am thinking to use STATUS_ITEM for PRODUCT and ecommerce for any approval. Any suggestions. Regards Vedam

Re: Radio button

2007-11-19 Thread Vedam B
So, you mean based on the Radio button selection dynamically i can change the widget itself? Please correct me if i am wrong. Regards Vedam On Nov 20, 2007 1:53 AM, BJ Freeman <[EMAIL PROTECTED]> wrote: > someone may give you a better idea > but you can created a form widget and included it so

Re: Error / Exception Handling

2007-11-19 Thread Vedam B
Can I define some ERROR codes and configure that in controller to send custom message based on the ERROR code? Regards Vedam On Nov 20, 2007 1:52 AM, BJ Freeman <[EMAIL PROTECTED]> wrote: > there maybe other ways. > here are the ones that come to mind > 1) change the controller request map erro

Re: Radio button

2007-11-19 Thread BJ Freeman
someone may give you a better idea but you can created a form widget and included it so it looks like part of the screen. Vedam B sent the following on 11/19/2007 12:12 PM: > Hi all, > > I wanted to use Radio button in SCREEN and based on a selection would prefer > to populate details to Drop dow

Re: Error / Exception Handling

2007-11-19 Thread BJ Freeman
there maybe other ways. here are the ones that come to mind 1) change the controller request map error response to a page with your code. 2) you can go deeper into the code and change the errmsgs so they show on the normal error page. Vedam B sent the following on 11/19/2007 12:07 PM: > Hi all

Radio button

2007-11-19 Thread Vedam B
Hi all, I wanted to use Radio button in SCREEN and based on a selection would prefer to populate details to Drop down list box. Any example code which is already available in OFBiz or any suggestions. Regards Vedam

Re: POS and Credit Card Swipes

2007-11-19 Thread Scott Gray
If possible you should try to insert a carriage return after the card number. I'm pretty sure that is what pos is expecting. Regards Scott On 20/11/2007, Vince M. Clark <[EMAIL PROTECTED]> wrote: > > We found the manufacturer of the card swipe. It is ID Tech. We are now > playing around with the

Re: POS and Credit Card Swipes

2007-11-19 Thread Vince M. Clark
Scott - to be clear, it should at least be parsing the card number, right? What we are seeing is a big long string with everything, then it appears POS tries to parse it for the card number but gets the wrong set of characters. If it can't handle grabbing multiple values right now (card number

Error / Exception Handling

2007-11-19 Thread Vedam B
Hi all, By design OFBiz supports PRODUCT ID as Input instead of Auto-generated sequence. So, when user tried to create a PRODUCT with the same ID which is already available, I want to send custom message instead of code details. Request your help on this. Regards Vedam

Re: POS and Credit Card Swipes

2007-11-19 Thread Vince M. Clark
We found the manufacturer of the card swipe. It is ID Tech. We are now playing around with the configuration utility that came with the device so I'll update this thread with any helpful info. Vince Clark Global Era The Freedom of Open Source [EMAIL PROTECTED] (303) 493-6723 - Origina

RE: How to access session and request from Java service

2007-11-19 Thread [EMAIL PROTECTED]
As a general rule, services do not have a request or response in their context (although you can certainly put them in if you need to). Consider that a service can be scheduled to run at 12AM in response to a job scheduler and not an HTTP request. You can call a service from you controller.xml fi

Re: POS and Credit Card Swipes

2007-11-19 Thread Scott Gray
It's a matter of modifying payCredit payment event so that it can parse the string correctly. POS isn't currently expecting all the details to come through in one go. Rergards Scott On 20/11/2007, Vince M. Clark <[EMAIL PROTECTED]> wrote: > > We now have the swipe working on Windows but it isn't

Re: POS and Credit Card Swipes

2007-11-19 Thread Vince M. Clark
We now have the swipe working on Windows but it isn't reading the card number and expiration date properly. When we swipe the card it first displays a long string across the top of the window that represents all information on the card including number, name, expiration date, etc. Not good to

Re: @Ofbizurl and external module

2007-11-19 Thread BJ Freeman
that should not be a problem if you include the controller in your myapp controller. it will still show up under myapp/controller but will be using the application/controller, to resolve any uri in the request map that are generated by the ftl. Simone Michele sent the following on 11/19/2007 12:

Re: @Ofbizurl and external module

2007-11-19 Thread Adrian Crum
Michele, Your problem description is missing some important information, but I think I understand what you are describing. It seems you are reusing existing crmsfa screens that have <@ofbizUrl> transforms in them that create links. If you click on those links, they resolve to your custom app'

Re: Need direction in setting up a Promotion

2007-11-19 Thread Lindsey L.
Hi David, I believe the version we are running is 2.0. The way I have the promotion set up is similar to the "Buy X get Y for Z% off" model. In the conditions section, I have Total Amount of Product is greater than or equal to 1 with a conditions category of Promo Category X. In the Actions se

Re: How to access session and request from Java service

2007-11-19 Thread Mathius Allo
Here is an example: public static String deletePermission(HttpServletRequest request, HttpServletResponse response) { LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute("dispatcher"); GenericValue userLogin = (GenericValue) request.getSession().getAttribute(

How to access session and request from Java service

2007-11-19 Thread X Gylee
In services.xml, I defined a service of type "java". According to OFBiz documentation, this service received DispatchContext and Map as its parameters. How can I access the HTTP session and request from those input parameters? I could not find an example in the OFBiz source about it. All the codes

Re: @Ofbizurl and external module

2007-11-19 Thread Simone Michele
Bilgin Ibryam ha scritto: > Why not try > >

Re: @Ofbizurl and external module

2007-11-19 Thread Bilgin Ibryam
Why not try http://www.nabble.com/%40Ofbizurl-and-external-module-tf4834052.html#a13830605 Sent from the OFBiz - User mailing list archive at Nabble.com.

@Ofbizurl and external module

2007-11-19 Thread Simone Michele
Hi to all ! I'm a newbie to the ofbiz/opentaps world. I'm developing a new module for my purpose, in this module i have some screen-widget that include some opentaps ftl macros (like viewprofile.ftl ) and some screens (like PaymentMethodScreens.xml). i.e.

Re: tips and tricks

2007-11-19 Thread Jacques Le Roux
Thanks for input Guo, Updated Jacques De : "guo weizhan" <[EMAIL PROTECTED]> > that's very good, thanks for your effort. > > I think the link of the BIRT tips could be changed to > https://issues.apache.org/jira/browse/OFBIZ-1348 that I will update the last > code in the JIRA > > > 2007/11/19