How To DELETE DEFAULT TABLES/COMPONENTS of OFBiz..??

2007-09-26 Thread Vinod Kashyap


hi..

I want to delete all those default OFBiz tables which are not in use for my
project.

if i delete any table, then i get error messages.

How we can recognize the tables and/or modules which are not used in the
project, and the way to delete them, in order to make the size of project as
small as possible.

As per my knowledge, i am using only the login/logout module(s)/table(s) of
OFBiz

Please guide me with your expert knowledge, ASAP (As Soon As Possible).

Thanks..

Ajay Sodhi..
-- 
View this message in context: 
http://www.nabble.com/How-To-DELETE-DEFAULT-TABLES-COMPONENTS-of-OFBiz..---tf4526680.html#a12915671
Sent from the OFBiz - User mailing list archive at Nabble.com.



RE: "Send email" not working for Forgot Password.

2007-09-26 Thread Nikita Shinde
Hi,

See if you want to send an email to [EMAIL PROTECTED] but since
you have set the mail.notifications.redirectTo="[EMAIL PROTECTED]" in
general.properties file, it will send all the mails (not only notifications)
to [EMAIL PROTECTED] To to avoid that don't set anything in redirectTo 

mail.notifications.redirectTo="".


Thanks,
Nikita.
Amicon Technologies Pvt. Ltd.
Mumbai.

-Original Message-
From: Rupinder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 11:17 AM
To: user@ofbiz.apache.org
Subject: RE: "Send email" not working for Forgot Password.


Hi Nikita,
Actually I have already tried  "mail.notifications.enabled=Y". Also
I assigned values to "[EMAIL PROTECTED]", but
these values are meant for notification. 
By doing so only a notification will be sent for every mail sent from the
"Ofbiz application" to the address given in
"#mail.notifications.redirectTo=", like "[EMAIL PROTECTED]". But the motive
of this functionality is that the mail should be also sent to the email
address of the entered "Username", which is not getting done. 
   

Nikita Shinde wrote:
> 
> Hi,
> 
>   Can you verify if in your general.properties file you have set the
> following to 'Y' :
> 
> mail.notifications.enabled=Y
> 
> 
> Thanks,
> Nikita.
> Amicon Technologies Pvt. Ltd.
> Mumbai.
> 
> 
> 
> -Original Message-
> From: Rupinder [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 27, 2007 10:40 AM
> To: user@ofbiz.apache.org
> Subject: "Send email" not working for Forgot Password.
> 
> 
> Hi,
> When we try to "send email" for "Forgot Password", It is displaying the
> message "A new password has been created and sent to you. Please check
> your
> Email". But no mail is received in the corresponding mail account and the
> following is displayed in the log file:
> 
> (http-0.0.0.0-8443-Processor2) [ ControlServlet.java:93 :INFO ] The
> character encoding of the request is: [null]. The character encoding we
> will
> use for the request and response is: [UTF-8]
> (http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:558:INFO ]
> ConfigMap Created: (5) records in 0.0s
> (http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:716:INFO ]
> HandlerMap Created: (4) view handlers and (7) request/event handlers in
> 0.0s
> (http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:291:INFO ]
> RequestMap Created: (245) records in 0.016s
> (http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:385:INFO ]
> ViewMap
> Created: (89) records in 0.0s
> (http-0.0.0.0-8443-Processor2) [ RequestHandler.java:239:INFO ]
> [Processing Request]: forgotpassword
> sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
> (http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 1
> screens in 0.015s from:
> file:/E:/ofbiz/applications/securityext/widget/EmailSecurityScreens.xml
> (http-0.0.0.0-8443-Processor2) [FlexibleStringExpander.java:355:WARN ]
> Could
> not find value in environment for the name [userLoginId], inserting
> nothing.
> (http-0.0.0.0-8443-Processor2) [  EmailServices.java:113:INFO ] Mail
> notifications disabled in general.properties; here is the context with
> info
> that would have been sent: [EMAIL PROTECTED], sendCc=null,
> sendBcc=null, [EMAIL PROTECTED], locale=en_US, body=
> 
> 
> 
> 
> This email is in response to your request to have a new password sent
> to you.
> 
> your new password is "auto84207"
> 
> 
> , contentType=text/html, subject=OFBiz Demo - Password Reminder (),
> partyId=null]
> (http-0.0.0.0-8443-Processor2) [ ServiceEcaRule.java:112:INFO ] Got
> false for condition:
> [null][][partyId][is-not-empty][null][][true][String][]
> (http-0.0.0.0-8443-Processor2) [ RequestHandler.java:427:INFO ]
> [RequestHandler.doRequest]: Response is a view.
> sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
> (http-0.0.0.0-8443-Processor2) [ RequestHandler.java:580:INFO ]
> servletName=control, view=login
> sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
> (http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 13
> screens in 0.016s from:
> file:/E:/ofbiz/applications/ecommerce/widget/CommonScreens.xml
> (http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 7
> screens in 0.015s from:
> file:/E:/ofbiz/applications/ecommerce/widget/CartScreens.xml
> (http-0.0.0.0-8443-Processor2) [  ModelScreenWidget.java:361:INFO ] In the
> include-screen tag the screen name was empty, ignoring include; in screen
> [main-decorator]
> (http-0.0.0.0-8443-Pro
> 
> Please help, we are in great need.
> Thanks in advance
> 
> Prateek / Rupinder
> 
> 
>  
> -- 
> View this message in context:
>
http://www.nabble.com/%22Send-email%22-not-working-for-Forgot-Password.-tf45
> 26424.html#a12914920
> Sent from the OFBiz - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/%22Send-email%22-not-working-for-Forgot-Password.-tf45
26424.html#a12915193
Sent from the OFBiz - User mailin

RE: "Send email" not working for Forgot Password.

2007-09-26 Thread Rupinder

Hi Nikita,
Actually I have already tried  "mail.notifications.enabled=Y". Also
I assigned values to "[EMAIL PROTECTED]", but
these values are meant for notification. 
By doing so only a notification will be sent for every mail sent from the
"Ofbiz application" to the address given in
"#mail.notifications.redirectTo=", like "[EMAIL PROTECTED]". But the motive
of this functionality is that the mail should be also sent to the email
address of the entered "Username", which is not getting done. 
   

Nikita Shinde wrote:
> 
> Hi,
> 
>   Can you verify if in your general.properties file you have set the
> following to 'Y' :
> 
> mail.notifications.enabled=Y
> 
> 
> Thanks,
> Nikita.
> Amicon Technologies Pvt. Ltd.
> Mumbai.
> 
> 
> 
> -Original Message-
> From: Rupinder [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 27, 2007 10:40 AM
> To: user@ofbiz.apache.org
> Subject: "Send email" not working for Forgot Password.
> 
> 
> Hi,
> When we try to "send email" for "Forgot Password", It is displaying the
> message "A new password has been created and sent to you. Please check
> your
> Email". But no mail is received in the corresponding mail account and the
> following is displayed in the log file:
> 
> (http-0.0.0.0-8443-Processor2) [ ControlServlet.java:93 :INFO ] The
> character encoding of the request is: [null]. The character encoding we
> will
> use for the request and response is: [UTF-8]
> (http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:558:INFO ]
> ConfigMap Created: (5) records in 0.0s
> (http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:716:INFO ]
> HandlerMap Created: (4) view handlers and (7) request/event handlers in
> 0.0s
> (http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:291:INFO ]
> RequestMap Created: (245) records in 0.016s
> (http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:385:INFO ]
> ViewMap
> Created: (89) records in 0.0s
> (http-0.0.0.0-8443-Processor2) [ RequestHandler.java:239:INFO ]
> [Processing Request]: forgotpassword
> sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
> (http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 1
> screens in 0.015s from:
> file:/E:/ofbiz/applications/securityext/widget/EmailSecurityScreens.xml
> (http-0.0.0.0-8443-Processor2) [FlexibleStringExpander.java:355:WARN ]
> Could
> not find value in environment for the name [userLoginId], inserting
> nothing.
> (http-0.0.0.0-8443-Processor2) [  EmailServices.java:113:INFO ] Mail
> notifications disabled in general.properties; here is the context with
> info
> that would have been sent: [EMAIL PROTECTED], sendCc=null,
> sendBcc=null, [EMAIL PROTECTED], locale=en_US, body=
> 
> 
> 
> 
> This email is in response to your request to have a new password sent
> to you.
> 
> your new password is "auto84207"
> 
> 
> , contentType=text/html, subject=OFBiz Demo - Password Reminder (),
> partyId=null]
> (http-0.0.0.0-8443-Processor2) [ ServiceEcaRule.java:112:INFO ] Got
> false for condition:
> [null][][partyId][is-not-empty][null][][true][String][]
> (http-0.0.0.0-8443-Processor2) [ RequestHandler.java:427:INFO ]
> [RequestHandler.doRequest]: Response is a view.
> sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
> (http-0.0.0.0-8443-Processor2) [ RequestHandler.java:580:INFO ]
> servletName=control, view=login
> sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
> (http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 13
> screens in 0.016s from:
> file:/E:/ofbiz/applications/ecommerce/widget/CommonScreens.xml
> (http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 7
> screens in 0.015s from:
> file:/E:/ofbiz/applications/ecommerce/widget/CartScreens.xml
> (http-0.0.0.0-8443-Processor2) [  ModelScreenWidget.java:361:INFO ] In the
> include-screen tag the screen name was empty, ignoring include; in screen
> [main-decorator]
> (http-0.0.0.0-8443-Pro
> 
> Please help, we are in great need.
> Thanks in advance
> 
> Prateek / Rupinder
> 
> 
>  
> -- 
> View this message in context:
> http://www.nabble.com/%22Send-email%22-not-working-for-Forgot-Password.-tf45
> 26424.html#a12914920
> Sent from the OFBiz - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%22Send-email%22-not-working-for-Forgot-Password.-tf4526424.html#a12915193
Sent from the OFBiz - User mailing list archive at Nabble.com.



repeatedly receiving a message in log file after configuring SMTP settings.

2007-09-26 Thread Rupinder

Hi, 
   I m repeatedly receiving the following in the log file. I think it has
begun since I have configured SMTP setting in "general.properties".
Following is that particular message: 

(default-invoker-Thread-44379) [ JobInvoker.java:211:INFO ] Invoker:
default-invoker-Thread-44379 received job -- 1190711789578 from poller -
[EMAIL PROTECTED]
(default-invoker-Thread-44379) [PersistedServiceJob.java:136:INFO ]
[EMAIL PROTECTED] -- Next runtime:
1190869691000
[Error] :2:12: cvc-elt.1: Cannot find the declaration of element
'ofbiz-ser'.
(default-invoker-Thread-44379) [  EmailServices.java:113:INFO ] Mail
notifications disabled in general.properties; here is the context with info
that would have been sent: {body=Test, sendTo=null, sendVia=null,
subject=Testing, locale=nl_NL, sendType=null, contentType=null,
userLogin=[GenericEntity:UserLogin][createdStamp,2007-07-12
15:09:44.0(java.sql.Timestamp)][createdTxStamp,2007-07-12
15:09:43.0(java.sql.Timestamp)][currentPassword,47ca69ebb4bdc9ae0adec130880165d2cc05db1a(java.lang.String)][enabled,Y(java.lang.String)][hasLoggedOut,N(java.lang.String)][lastLocale,nl_NL(java.lang.String)][lastTimeZone,GMT+05:30(java.lang.String)][lastUpdatedStamp,2007-09-25
14:26:53.0(java.sql.Timestamp)][lastUpdatedTxStamp,2007-09-25
14:26:53.0(java.sql.Timestamp)][partyId,admin(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLoginId,admin(java.lang.String)],
authPass=null, communicationEventId=null, [EMAIL PROTECTED],
authUser=null, partyId=null, sendCc=null, sendBcc=null}
(default-invoker-Thread-44379) [ ServiceEcaRule.java:112:INFO ] Got
false for condition: [null][][partyId][is-not-empty][null][][true][String][]
include-screen tag the screen name was empty, ignoring include; in screen
[main-decorator]


Also in order to send some e-mails for testing, I added some communication
events in the party manager. Does this option is meant for sending mails?

Please help me.
Thanks 

Prateek / Rupinder
-- 
View this message in context: 
http://www.nabble.com/repeatedly-receiving-a-message-in-log-file-after-configuring-SMTP-settings.-tf4526462.html#a12915033
Sent from the OFBiz - User mailing list archive at Nabble.com.



RE: "Send email" not working for Forgot Password.

2007-09-26 Thread Nikita Shinde
Hi,

Can you verify if in your general.properties file you have set the
following to 'Y' :

mail.notifications.enabled=Y


Thanks,
Nikita.
Amicon Technologies Pvt. Ltd.
Mumbai.



-Original Message-
From: Rupinder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 10:40 AM
To: user@ofbiz.apache.org
Subject: "Send email" not working for Forgot Password.


Hi,
When we try to "send email" for "Forgot Password", It is displaying the
message "A new password has been created and sent to you. Please check your
Email". But no mail is received in the corresponding mail account and the
following is displayed in the log file:

(http-0.0.0.0-8443-Processor2) [ ControlServlet.java:93 :INFO ] The
character encoding of the request is: [null]. The character encoding we will
use for the request and response is: [UTF-8]
(http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:558:INFO ]
ConfigMap Created: (5) records in 0.0s
(http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:716:INFO ]
HandlerMap Created: (4) view handlers and (7) request/event handlers in 0.0s
(http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:291:INFO ]
RequestMap Created: (245) records in 0.016s
(http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:385:INFO ] ViewMap
Created: (89) records in 0.0s
(http-0.0.0.0-8443-Processor2) [ RequestHandler.java:239:INFO ]
[Processing Request]: forgotpassword
sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
(http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 1
screens in 0.015s from:
file:/E:/ofbiz/applications/securityext/widget/EmailSecurityScreens.xml
(http-0.0.0.0-8443-Processor2) [FlexibleStringExpander.java:355:WARN ] Could
not find value in environment for the name [userLoginId], inserting nothing.
(http-0.0.0.0-8443-Processor2) [  EmailServices.java:113:INFO ] Mail
notifications disabled in general.properties; here is the context with info
that would have been sent: [EMAIL PROTECTED], sendCc=null,
sendBcc=null, [EMAIL PROTECTED], locale=en_US, body=




This email is in response to your request to have a new password sent
to you.

your new password is "auto84207"


, contentType=text/html, subject=OFBiz Demo - Password Reminder (),
partyId=null]
(http-0.0.0.0-8443-Processor2) [ ServiceEcaRule.java:112:INFO ] Got
false for condition: [null][][partyId][is-not-empty][null][][true][String][]
(http-0.0.0.0-8443-Processor2) [ RequestHandler.java:427:INFO ]
[RequestHandler.doRequest]: Response is a view.
sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
(http-0.0.0.0-8443-Processor2) [ RequestHandler.java:580:INFO ]
servletName=control, view=login
sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
(http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 13
screens in 0.016s from:
file:/E:/ofbiz/applications/ecommerce/widget/CommonScreens.xml
(http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 7
screens in 0.015s from:
file:/E:/ofbiz/applications/ecommerce/widget/CartScreens.xml
(http-0.0.0.0-8443-Processor2) [  ModelScreenWidget.java:361:INFO ] In the
include-screen tag the screen name was empty, ignoring include; in screen
[main-decorator]
(http-0.0.0.0-8443-Pro

Please help, we are in great need.
Thanks in advance

Prateek / Rupinder


 
-- 
View this message in context:
http://www.nabble.com/%22Send-email%22-not-working-for-Forgot-Password.-tf45
26424.html#a12914920
Sent from the OFBiz - User mailing list archive at Nabble.com.



"Send email" not working for Forgot Password.

2007-09-26 Thread Rupinder

Hi,
When we try to "send email" for "Forgot Password", It is displaying the
message "A new password has been created and sent to you. Please check your
Email". But no mail is received in the corresponding mail account and the
following is displayed in the log file:

(http-0.0.0.0-8443-Processor2) [ ControlServlet.java:93 :INFO ] The
character encoding of the request is: [null]. The character encoding we will
use for the request and response is: [UTF-8]
(http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:558:INFO ]
ConfigMap Created: (5) records in 0.0s
(http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:716:INFO ]
HandlerMap Created: (4) view handlers and (7) request/event handlers in 0.0s
(http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:291:INFO ]
RequestMap Created: (245) records in 0.016s
(http-0.0.0.0-8443-Processor2) [ConfigXMLReader.java:385:INFO ] ViewMap
Created: (89) records in 0.0s
(http-0.0.0.0-8443-Processor2) [ RequestHandler.java:239:INFO ]
[Processing Request]: forgotpassword
sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
(http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 1
screens in 0.015s from:
file:/E:/ofbiz/applications/securityext/widget/EmailSecurityScreens.xml
(http-0.0.0.0-8443-Processor2) [FlexibleStringExpander.java:355:WARN ] Could
not find value in environment for the name [userLoginId], inserting nothing.
(http-0.0.0.0-8443-Processor2) [  EmailServices.java:113:INFO ] Mail
notifications disabled in general.properties; here is the context with info
that would have been sent: [EMAIL PROTECTED], sendCc=null,
sendBcc=null, [EMAIL PROTECTED], locale=en_US, body=




This email is in response to your request to have a new password sent
to you.

your new password is "auto84207"


, contentType=text/html, subject=OFBiz Demo - Password Reminder (),
partyId=null]
(http-0.0.0.0-8443-Processor2) [ ServiceEcaRule.java:112:INFO ] Got
false for condition: [null][][partyId][is-not-empty][null][][true][String][]
(http-0.0.0.0-8443-Processor2) [ RequestHandler.java:427:INFO ]
[RequestHandler.doRequest]: Response is a view.
sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
(http-0.0.0.0-8443-Processor2) [ RequestHandler.java:580:INFO ]
servletName=control, view=login
sessionId=DB4C838F9E7BD3CA55CF572FE4CCE499.jvm1
(http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 13
screens in 0.016s from:
file:/E:/ofbiz/applications/ecommerce/widget/CommonScreens.xml
(http-0.0.0.0-8443-Processor2) [  ScreenFactory.java:118:INFO ] Got 7
screens in 0.015s from:
file:/E:/ofbiz/applications/ecommerce/widget/CartScreens.xml
(http-0.0.0.0-8443-Processor2) [  ModelScreenWidget.java:361:INFO ] In the
include-screen tag the screen name was empty, ignoring include; in screen
[main-decorator]
(http-0.0.0.0-8443-Pro

Please help, we are in great need.
Thanks in advance

Prateek / Rupinder


 
-- 
View this message in context: 
http://www.nabble.com/%22Send-email%22-not-working-for-Forgot-Password.-tf4526424.html#a12914920
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Internet access to OFBiz

2007-09-26 Thread Len Parker
oops.operator malfunction! I turned off the hardware firewall,
and the firewall on my XP machine that I was trying to gain access from,
but I totally forgot my Linux software firewall!

It works as advertised.

Thanks for the help.

Len 

On Wed, 2007-09-26 at 19:45 -0700, BJ Freeman wrote:

> oops
> https not http
> 
> BJ Freeman sent the following on 9/26/2007 7:40 PM:
> > also out of the box you just use the
> > http://ipaddress:8443:/partymgr/control/main
> > for network viewing
> > 
> > Len Parker sent the following on 9/26/2007 7:19 PM:
> >> Good morning,
> >>
> >> I've made a few cosmetic changes to OFBiz, and now I'm ready to go show
> >> the boss what a truly great tool it is. We've talked, and he seems very
> >> interested.
> >>
> >> So much for the good news! 
> >>
> >> I've looked high and low, but I can't seem to find how to allow access
> >> from someplace other than the localhost. Its not my firewall, cause I
> >> turned it off.
> >>
> >> What am I missing?
> >>
> >> Len
> >>
> > 
> > 
> > 


Re: Internet access to OFBiz

2007-09-26 Thread BJ Freeman
oops
https not http

BJ Freeman sent the following on 9/26/2007 7:40 PM:
> also out of the box you just use the
> http://ipaddress:8443:/partymgr/control/main
> for network viewing
> 
> Len Parker sent the following on 9/26/2007 7:19 PM:
>> Good morning,
>>
>> I've made a few cosmetic changes to OFBiz, and now I'm ready to go show
>> the boss what a truly great tool it is. We've talked, and he seems very
>> interested.
>>
>> So much for the good news! 
>>
>> I've looked high and low, but I can't seem to find how to allow access
>> from someplace other than the localhost. Its not my firewall, cause I
>> turned it off.
>>
>> What am I missing?
>>
>> Len
>>
> 
> 
> 


Re: Internet access to OFBiz

2007-09-26 Thread BJ Freeman
also out of the box you just use the
http://ipaddress:8443:/partymgr/control/main
for network viewing

Len Parker sent the following on 9/26/2007 7:19 PM:
> Good morning,
> 
> I've made a few cosmetic changes to OFBiz, and now I'm ready to go show
> the boss what a truly great tool it is. We've talked, and he seems very
> interested.
> 
> So much for the good news! 
> 
> I've looked high and low, but I can't seem to find how to allow access
> from someplace other than the localhost. Its not my firewall, cause I
> turned it off.
> 
> What am I missing?
> 
> Len
> 


Re: Internet access to OFBiz

2007-09-26 Thread BJ Freeman
the is a linux firewall on your box
you need to allow for ports 8443 and 8080
if you have a company router, it may need to be modified.
if you have a shared firewall box outside the server you may need to
modify it


Len Parker sent the following on 9/26/2007 7:19 PM:
> Good morning,
> 
> I've made a few cosmetic changes to OFBiz, and now I'm ready to go show
> the boss what a truly great tool it is. We've talked, and he seems very
> interested.
> 
> So much for the good news! 
> 
> I've looked high and low, but I can't seem to find how to allow access
> from someplace other than the localhost. Its not my firewall, cause I
> turned it off.
> 
> What am I missing?
> 
> Len
> 


Re: Internet access to OFBiz

2007-09-26 Thread Tim Ruppert

A static IP, a domain name, or potentially turning off your firewall :)

Even when it runs on localhost it's accessible across the internet by  
default.  If you're putting it up on a server where localhost is not  
appropriate there are things that you'll have to get into which are  
spelled out in the Production Setup Guide on docs.ofbiz.org, but this  
doesn't seem to be it in your case.


Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595


On Sep 26, 2007, at 8:19 PM, Len Parker wrote:


Good morning,

I've made a few cosmetic changes to OFBiz, and now I'm ready to go  
show
the boss what a truly great tool it is. We've talked, and he seems  
very

interested.

So much for the good news!

I've looked high and low, but I can't seem to find how to allow access
from someplace other than the localhost. Its not my firewall, cause I
turned it off.

What am I missing?

Len




smime.p7s
Description: S/MIME cryptographic signature


Internet access to OFBiz

2007-09-26 Thread Len Parker
Good morning,

I've made a few cosmetic changes to OFBiz, and now I'm ready to go show
the boss what a truly great tool it is. We've talked, and he seems very
interested.

So much for the good news! 

I've looked high and low, but I can't seem to find how to allow access
from someplace other than the localhost. Its not my firewall, cause I
turned it off.

What am I missing?

Len


Re: Show cart after user add item?

2007-09-26 Thread Tim Ruppert

It's on the product store - flip the switch.  viewCartOnAdd I think.

Cheers,
Tim
--
Tim Ruppert
HotWax Media
http://www.hotwaxmedia.com

o:801.649.6594
f:801.649.6595


On Sep 26, 2007, at 7:05 PM, Phillip Rhodes wrote:


Hi,
Currently, when the user adds an item to the cart, they remain on  
the product page.  I would like the application to direct them to  
the cart page.


I looked at the controller.xml for the ecommerce application.  What  
is confusing me is that the additem action appears to send the user  
to the cart.  The item does get put into the cart.

I was hoping someone will point out my misunderstanding.
Thanks!



path="org.ofbiz.order.shoppingcart.ShoppingCartEvents"  
invoke="addToCart"/>



value="showcart"/>






\




smime.p7s
Description: S/MIME cryptographic signature


Show cart after user add item?

2007-09-26 Thread Phillip Rhodes
Hi,
Currently, when the user adds an item to the cart, they remain on the product 
page.  I would like the application to direct them to the cart page.

I looked at the controller.xml for the ecommerce application.  What is 
confusing me is that the additem action appears to send the user to the cart.  
The item does get put into the cart.
I was hoping someone will point out my misunderstanding.
Thanks!












\


Re: Error creating delegator

2007-09-26 Thread BJ Freeman
is this an out of the box version of the svn or has it been modified?
what version of svn are you using?

sqlien sent the following on 9/26/2007 12:46 AM:
> Hi, 
> 
> I am getting the following error when I start ofbiz. Thank you in advance
> for your replies :
> 
> Error creating delegator
> Exception: org.ofbiz.entity.GenericModelException
> Message: Error getting related entity [SkillType] definition from entity
> [QuoteI
> tem] (Could not find definition for entity name SkillType)
>  stack trace
> ---
> 
> org.ofbiz.entity.GenericModelException: Error getting related entity
> [SkillType]
>  definition from entity [QuoteItem] (Could not find definition for entity
> name S
> killType)
>  stack trace
> ---
> 
> org.ofbiz.entity.GenericModelException: Error getting related entity
> [SkillType]
>  definition from entity [QuoteItem] (Could not find definition for entity
> name S
> killType)
> org.ofbiz.entity.model.ModelReader.getEntityCache(ModelReader.java:300)
> org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:93)
> org.ofbiz.entity.GenericDelegator.(GenericDelegator.java:142)
> org.ofbiz.entity.NeogiaDelegator.(NeogiaDelegator.java:42)
> org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:117)


Re: Separate huge picklists into separate PDFs

2007-09-26 Thread Dave Tenerowicz
I don't have any suggestions at this moment, but in a week or so we will 
be attempting something similar.


In our case we need to print 1-2000 packing lists at a time, with a 
picklist type report that tells the pickers how many boxes with the same 
contents to prepare for packing. I say picklist type report, because our 
client ships large volumes of packages with identical contents each day 
- so the requirement is to produce a summary report that says" prepare 
500 boxes with Prdocut A, 200 with Product B, 150 boxes with Product A 
and Product B etc. Pickers perpare the boxes, then walk down the line 
dropping in the packing list/invoice document


A bit different, but we'll be facing the same issues you report, so I am 
very interested in any ideas anyone has.


I'll reply to this as we work on our solution
-Dave Tenerowicz

Nikita Shinde wrote:

Hello All,

 


Is there a way to separate huge picklists into separate PDF's?

 


   What is happening is if we try to print a picklist of about 500
orders . the list was too big for OFBiz to print. So for picklists over 150
orders do we have auto split functionality for the PDF's?

 


I did set the default value of "Pick first" field to 150 on the
Picking Options page. But if a value more than 150 is entered can we auto
split the PDF's?

 

 


Thanks,

Nikita

Amicon Technologies Pvt. Ltd.

Mumbai.


  


--
Dave Tenerowicz
[EMAIL PROTECTED]

Office: 303.493.6727
Mobile 303.906.6116
Fax 303.814.8330

Visit us at http://www.salmonllc.com



Re: accomplish output buffering in ofbiz

2007-09-26 Thread Adrian Crum

Three things that come to mind right away:

1. There was a recent bug fix to the freemarker rendering code - check to see if you're using the 
version that includes the bug fix.


2. Use EntityListIterator with your findByCondition result to help speed things 
up.

3. Simplify the objects being passed to freemarker. Why is it necessary to use Maps (keeping in mind 
the GenericValue class implements the Map interface)? See if there is a simpler way to pass data 
from bsh to ftl.


-Adrian

Tim McGuire wrote:


yes, I suppose it would help to offer more info.

version of ofbiz:  4.0

I am preparing the data in a beanshell with delegator.findByCondition()
and loading the result into two maps that I throw into the context and
display with the FTL.

When I dump the data straight out to the FTL, it loads quick enough.
That is, a basic <#list>  lists the 2000 odd rows.

by Map manipulation, I mean that I have a 2 maps of EntityValues inside
Maps of Maps.  If I leave the maps out of it, it seems to run much
faster.

Tim McGuire
Integral Business Solutions
phone: (651) 259-1008  




-Original Message-
From: Adrian Crum [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 26, 2007 4:43 PM

To: user@ofbiz.apache.org
Subject: Re: accomplish output buffering in ofbiz

Tim,

It's hard to offer advice with such sketchy information. What 
revision of OFBiz are you using? How is the data being 
prepared? What do you mean by "freemarker Map manipulation stuff"?


-Adrian

Tim McGuire wrote:


I have a report done in freemarker that is slightly more 


than 2000 rows.

I manipulate it with maps inside of maps and it bogs down 


the browser 

and my system when I run the full report.  When I chop away all the 
freemarker Map manipulation stuff and just dump the 2000 


rows to the 

screen, it runs much faster, so I'm looking for a way to make my 
freemarker more efficient.  I've tried replacing maps with html 
strings, but it does not seem to help.


Can ofbiz do output buffering?  If not, how should I approach this 
issue?

Thanks.

here is part of .ftl file:
(completionMap has 2271 members.  $person right now ends up being a 
string with the data rendered as a row in the report - just 


to see if 

it speeds up.) I believe the issue is with object wrapping 


but I don't 


know enough about it to know how to fix it.

<#assign completionList = completionMap.keySet() />
<#list completionList as key>
<#assign person = personInfoMap[key]>

 ${person}







Tim McGuire










RE: accomplish output buffering in ofbiz

2007-09-26 Thread Tim McGuire
yes, I suppose it would help to offer more info.

version of ofbiz:  4.0

I am preparing the data in a beanshell with delegator.findByCondition()
and loading the result into two maps that I throw into the context and
display with the FTL.

When I dump the data straight out to the FTL, it loads quick enough.
That is, a basic <#list>  lists the 2000 odd rows.

by Map manipulation, I mean that I have a 2 maps of EntityValues inside
Maps of Maps.  If I leave the maps out of it, it seems to run much
faster.

Tim McGuire
Integral Business Solutions
phone: (651) 259-1008  

> -Original Message-
> From: Adrian Crum [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 26, 2007 4:43 PM
> To: user@ofbiz.apache.org
> Subject: Re: accomplish output buffering in ofbiz
> 
> Tim,
> 
> It's hard to offer advice with such sketchy information. What 
> revision of OFBiz are you using? How is the data being 
> prepared? What do you mean by "freemarker Map manipulation stuff"?
> 
> -Adrian
> 
> Tim McGuire wrote:
> 
> > I have a report done in freemarker that is slightly more 
> than 2000 rows.
> > I manipulate it with maps inside of maps and it bogs down 
> the browser 
> > and my system when I run the full report.  When I chop away all the 
> > freemarker Map manipulation stuff and just dump the 2000 
> rows to the 
> > screen, it runs much faster, so I'm looking for a way to make my 
> > freemarker more efficient.  I've tried replacing maps with html 
> > strings, but it does not seem to help.
> > 
> > Can ofbiz do output buffering?  If not, how should I approach this 
> > issue?
> > Thanks.
> > 
> > here is part of .ftl file:
> > (completionMap has 2271 members.  $person right now ends up being a 
> > string with the data rendered as a row in the report - just 
> to see if 
> > it speeds up.) I believe the issue is with object wrapping 
> but I don't 
> > know enough about it to know how to fix it.
> > 
> >  <#assign completionList = completionMap.keySet() />
> >  <#list completionList as key>
> >  <#assign person = personInfoMap[key]>
> >  
> >  ${person}
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > Tim McGuire
> > 
> 
> 


Re: accomplish output buffering in ofbiz

2007-09-26 Thread Adrian Crum

Tim,

It's hard to offer advice with such sketchy information. What revision of OFBiz are you using? How 
is the data being prepared? What do you mean by "freemarker Map manipulation stuff"?


-Adrian

Tim McGuire wrote:


I have a report done in freemarker that is slightly more than 2000 rows.
I manipulate it with maps inside of maps and it bogs down the browser
and my system when I run the full report.  When I chop away all the
freemarker Map manipulation stuff and just dump the 2000 rows to the
screen, it runs much faster, so I'm looking for a way to make my
freemarker more efficient.  I've tried replacing maps with html strings,
but it does not seem to help.

Can ofbiz do output buffering?  If not, how should I approach this
issue?
Thanks.

here is part of .ftl file:
(completionMap has 2271 members.  $person right now ends up being a
string with the data rendered as a row in the report - just to see if it
speeds up.)
I believe the issue is with object wrapping but I don't know enough
about it to know how to fix it.

 <#assign completionList = completionMap.keySet() />
 <#list completionList as key>
 <#assign person = personInfoMap[key]>
 
 ${person}

 





Tim McGuire





Re: I am trying to display CMS mananaged content in ecommerce

2007-09-26 Thread David Goodenough
On Wednesday 26 September 2007, David Goodenough wrote:
> On Wednesday 26 September 2007, David Goodenough wrote:
> > I have a requirement to display CMS managed content the ecommerce app.
> >
> > I think that what I have to do is to use content/viewContent.ftl, but I
> > am unsure how to invoke this, and what I need to pass to it to refer
> > to either specific document in the CMS.  I am also unsure how to
> > enter suitable documents in the CMS.
> >
> > Lets take an example, I have a page which is managed through the CMS
> > which is the physical location of the store, with links to a map and
> > a travel directions etc.
> >
> > I presume that I set up this page using the Content Manager Application,
> > and I have found a place to create a new Content item and give it a
> > name, mime-type etc, but I have yet to find where I actually create
> > the content itself, i.e either upload a file or type in the content.
> >
> > Having created it with a name, I guess I need to pass that to
> > viewContent.ftl in order that it be displayed.  Say I was passing it from
> > a Menu item, I guess that I am going to invoke it with an  tag,
> > something like:-
> >
> >  > content/viewContent?) but I am unsure how I pass in the ID of the content
> > I want to view.
> >
> > Are there any guides to using CMS managed content in the emcommerce app?
> >
> > David
>
> Looking at the way the Store Policies are displayed it would appear that I
> need to create a document with a content-id of "WebStoreCONTENT" and a
> map-key appropriate to the thing I want to display.
>
> 
>
> But I do not know how to view or edit this item (the policies document) or
> to create a new one.
>
> Can someone give me step by step instructions to get to the right place as
> I am currently lost.
>
> David

Well I found that, by using ContentManager-DataResources I found the 
STORE_POLICIE and STORE_POLICIE2 documents, and I think I now understand
how to create and edit them.  I think I also understand how to create new
Content, attach it to a document and assign it a parent.  What I do not 
understand is how the map-key=policies" maps to the document ID 
STORE_POLICIE. 

Can anyone help - please.

David


accomplish output buffering in ofbiz

2007-09-26 Thread Tim McGuire
I have a report done in freemarker that is slightly more than 2000 rows.
I manipulate it with maps inside of maps and it bogs down the browser
and my system when I run the full report.  When I chop away all the
freemarker Map manipulation stuff and just dump the 2000 rows to the
screen, it runs much faster, so I'm looking for a way to make my
freemarker more efficient.  I've tried replacing maps with html strings,
but it does not seem to help.

Can ofbiz do output buffering?  If not, how should I approach this
issue?
Thanks.

here is part of .ftl file:
(completionMap has 2271 members.  $person right now ends up being a
string with the data rendered as a row in the report - just to see if it
speeds up.)
I believe the issue is with object wrapping but I don't know enough
about it to know how to fix it.

 <#assign completionList = completionMap.keySet() />
 <#list completionList as key>
 <#assign person = personInfoMap[key]>
 
 ${person}

 





Tim McGuire


Re: I am trying to display CMS mananaged content in ecommerce

2007-09-26 Thread David Goodenough
On Wednesday 26 September 2007, David Goodenough wrote:
> I have a requirement to display CMS managed content the ecommerce app.
>
> I think that what I have to do is to use content/viewContent.ftl, but I
> am unsure how to invoke this, and what I need to pass to it to refer
> to either specific document in the CMS.  I am also unsure how to
> enter suitable documents in the CMS.
>
> Lets take an example, I have a page which is managed through the CMS
> which is the physical location of the store, with links to a map and
> a travel directions etc.
>
> I presume that I set up this page using the Content Manager Application,
> and I have found a place to create a new Content item and give it a
> name, mime-type etc, but I have yet to find where I actually create
> the content itself, i.e either upload a file or type in the content.
>
> Having created it with a name, I guess I need to pass that to
> viewContent.ftl in order that it be displayed.  Say I was passing it from a
> Menu item, I guess that I am going to invoke it with an  tag, something
> like:-
>
>  content/viewContent?) but I am unsure how I pass in the ID of the content I
> want to view.
>
> Are there any guides to using CMS managed content in the emcommerce app?
>
> David

Looking at the way the Store Policies are displayed it would appear that I 
need to create a document with a content-id of "WebStoreCONTENT" and a
map-key appropriate to the thing I want to display.



But I do not know how to view or edit this item (the policies document) or
to create a new one.

Can someone give me step by step instructions to get to the right place as
I am currently lost.

David 


RE: TypeCasting GenericValue object.

2007-09-26 Thread [EMAIL PROTECTED]
vija

"So if one has to use the same variable elsewhere than one must declare it
outside the loop and refer to it elsewhere as super.variable to use the same
version of the varible."

Gads.  I would love to see an example of this so I can avoid the same
problem.

Skip

-Original Message-
From: vijay Si [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 26, 2007 12:49 AM
To: user@ofbiz.apache.org
Subject: Re: TypeCasting GenericValue object.


ThanksSkip.
  I got this point  after some expeimentation "  Typically, the GenericValue
contains the name/value
pairs of some row in a table or view."

I changed my code accordingly... to use  elim.get
(i).getDouble("grandTotal").doubleValue();

thanks for the support.

One point that i would like to share is about beanshell.
Beanshell localizes the scope of the variable used within the loop to that
loop.
So if one has to use the same variable elsewhere than one must declare it
outside the loop and refer to it elsewhere as super.variable to use the same
version of the varible.

This actually took up lot of my time and was also one the reasons for "void"
!!



On 9/26/07, Skip <[EMAIL PROTECTED]> wrote:
>
> vijay
>
> I don't understand some of the code in your example.  But, if you look at
> the source for GenericEntity (which GenericValue is a subclass of), you
> will
> see that at its heart, there is a Map of name-value pairs, i.e. a String
> which is the field name mapped to (in this case) the value(s) retrieved by
> the GenericDelegator.  Typically, the GenericValue contains the name/value
> pairs of some row in a table or view.
>
> But, here is some code that will do what you want (assuming that
> "grandTotal" is really a field in OrderHeader which I don't remember for
> sure.)  I have not included the required try/catch error trapping for
> clarity.
>
> //Get a list of orders matching our conditions.  In place of the ellipse,
> add your conditions
> List orders = delegator.findByAnd("OrderHeader", ...);
> Iterator i = orders.iterator();
>
> double total = 0.0;
> //Go through the list and add up all the "grandTotal" values.
> while (i.hasNext())
> {
> GenericValue orderHeader = (GenericValue) i.next();
> String orderId = orderHeader.getString("orderId");
> Double totalThisOrder = orderHeader.getDouble("grandTotal");
> System.out.println("Order id is " + orderId + "\t\tAmount is " +
> totalThisOrder);
> if(totalThisOrder != null)
>  total += totalThisOrder.doubleValue();
> }
> System.out.println("  \t\t Grand Total " + total);
>
>
> In the above example, "orders" is a Java List of GenericValue objects
> returned by the delegator.  We have to iterate through them and extract
> the
> "grandTotal" values to add up.
>
> This is such a common task that maybe I'll write a
>
> double GenericValue.sumDouble(List values, String field)
> and
> long GenericValue.sumLong(List values, String field)
>
> Give it a try and see if this is not what you want.
>
> Skip
>
> -Original Message-
> From: vijay Si [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 25, 2007 2:32 AM
> To: user@ofbiz.apache.org
> Subject: Re: TypeCasting GenericValue object.
>
>
> Hello Skip,
>
> My piece of code is :
>
> itelim = elim.iterator();   //where elim =
> findByCond();
>   elimList = new ArrayList();
>
>   while(itelim.hasNext())
>   {
>   elimList = itelim.next();
>   elimList.toString();
>
>   String a1 =  elimList.getString("grandTotal");
>   a =  Double.parseDouble(a1);
>
>   }
> Now this does give me some result at the o/p : which is last entry in the
> grandTotal column(a double value) say for eg: 350.30
>
> I also used the piece of code that you provided.it works for sure but
> gives "void" at the o/p...
>
> Also wanted to ask as to how can i iterate over the grandTotal entries.
> for
> eg: if i have to get grandTotal for all products and sum it up.
>
> Thanks
>
> On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > You can't type cast the GenericValue.  You possibly can type cast one of
> > the
> > objects it holds depending on the type.  Each GenericValue holds
> different
> > types if information depending on what it represents.  For example,
> >
> > GenericValue existingOrderHeader = delegator.findByPrimaryKey
> > ("OrderHeader",
> > UtilMisc.toMap("orderId", orderId));
> > String customerId = externalOrderHeader.getString("customerPartyId");
> >
> > if OrderHeader had a Double value in it, say "grandTotal", you could
> >
> > double grandTotal =
> > externalOrderHeader.getDouble("grandTotal").doubleValue();
> >
> >
> > or
> >
> > double grandTotal =
> > ((Double)externalOrderHeader.get("grandTotal")).doubleValue();
> >
> > Both of these will throw a ClassCastException if "grandTotal" is not a
> > double.
> >
> > Everything in a GenericValue object is an object itself, i.e double is
> > wrapped in Double, et

RE: org.ofbiz.base.start.StartupException: Cannot init() catalina-container (Protocol handler initialization failed: java.io.IOException: SunX509 KeyManagerFactory not available)

2007-09-26 Thread [EMAIL PROTECTED]
David


"Have you read through "The Data Model Resource Book(s)"? They don't have
everything in them, but are extremely helpful for getting the general
concepts."

Yep, volumn 1 only though.

Skip



Re: I am trying to display CMS mananaged content in ecommerce

2007-09-26 Thread Raj Saini
I am not sure, if I got your question correctly. However, if you are 
looking for managing the contents of your products, categories (e.g. 
name, description etc), have a look on the data resource. Look at the 
application/ecommerce/data/DemoProductI18nData.xml and 
applications/ecommerce/data/DemoProductCategoriesI18nData.xml files. 
They are example of how to create internationalization of your product 
and categories and managed through CMS.


Thanks,

Raj
David Goodenough wrote:

I have a requirement to display CMS managed content the ecommerce app.

I think that what I have to do is to use content/viewContent.ftl, but I
am unsure how to invoke this, and what I need to pass to it to refer
to either specific document in the CMS.  I am also unsure how to 
enter suitable documents in the CMS.


Lets take an example, I have a page which is managed through the CMS
which is the physical location of the store, with links to a map and
a travel directions etc.  


I presume that I set up this page using the Content Manager Application,
and I have found a place to create a new Content item and give it a 
name, mime-type etc, but I have yet to find where I actually create 
the content itself, i.e either upload a file or type in the content.


Having created it with a name, I guess I need to pass that to viewContent.ftl
in order that it be displayed.  Say I was passing it from a Menu item,
I guess that I am going to invoke it with an  tag, something like:-

but I am unsure how I pass in the ID of the content I want to view. 


Are there any guides to using CMS managed content in the emcommerce app?

David

  




Re: I am trying to display CMS mananaged content in ecommerce

2007-09-26 Thread David Goodenough
On Wednesday 26 September 2007, Abhishake Agarwal wrote:
> Hi David,
>
> First upload your content to cms server with the similar url pattern as in
> ofbiz(for images use productid as the name of the image in cms, normally
> that is the way it happens). then make the necessary change in
> framework/webapp/config/url.properties.
>
>  tag will generate the suitable url as configured in
> url.properties.
>
> in the catalog management part just use the id of image. no need to upload
> image.
I am looking to do this with the CMS built into Ofbiz, I am not looking to
use an external CMS.  So I MUST upload the document to Ofbiz otherwise it
can not serve it.

David
>
> Regards,
> Abhishake
>
> On 9/26/07, Abhishake Agarwal <[EMAIL PROTECTED]> wrote:
> > Hi David,
> > I had tried alfresco with ofbiz.
> >
> > On 9/26/07, David Goodenough < [EMAIL PROTECTED] > wrote:
> > > I have a requirement to display CMS managed content the ecommerce app.
> > >
> > > I think that what I have to do is to use content/viewContent.ftl, but I
> > > am unsure how to invoke this, and what I need to pass to it to refer
> > > to either specific document in the CMS.  I am also unsure how to
> > > enter suitable documents in the CMS.
> > >
> > > Lets take an example, I have a page which is managed through the CMS
> > > which is the physical location of the store, with links to a map and
> > > a travel directions etc.
> > >
> > > I presume that I set up this page using the Content Manager
> > > Application,
> > >
> > > and I have found a place to create a new Content item and give it a
> > > name, mime-type etc, but I have yet to find where I actually create
> > > the content itself, i.e either upload a file or type in the content.
> > >
> > > Having created it with a name, I guess I need to pass that to
> > > viewContent.ftl
> > > in order that it be displayed.  Say I was passing it from a Menu item,
> > > I guess that I am going to invoke it with an  tag, something like:-
> > >
> > >  > > content/viewContent?)
> > > but I am unsure how I pass in the ID of the content I want to view.
> > >
> > > Are there any guides to using CMS managed content in the emcommerce
> > > app?
> > >
> > >
> > > David




Re: How to display PaymentMethodType entity data in french

2007-09-26 Thread sqlien

I found the answer :

this line should be added in ofbiz-component.xml (product):



Sqlien
 

sqlien wrote:
> 
> Hi,
> 
> how to display PaymentMethodType entity data in french in
> product/widget/catalog/ProductScreens.xml#EditProductPaymentMethodTypes" 
> 
> transaltions are set in
> accounting/config/AccountingEntityLabels_fr.properties
> 
> thanks 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-display-PaymentMethodType-entity-data-in-french-tf4522817.html#a12903196
Sent from the OFBiz - User mailing list archive at Nabble.com.



How to display PaymentMethodType entity data in french

2007-09-26 Thread sqlien

Hi,

how to display PaymentMethodType entity data in french in
product/widget/catalog/ProductScreens.xml#EditProductPaymentMethodTypes" 

transaltions are set in
accounting/config/AccountingEntityLabels_fr.properties

thanks 
-- 
View this message in context: 
http://www.nabble.com/How-to-display-PaymentMethodType-entity-data-in-french-tf4522817.html#a12902504
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: I am trying to display CMS mananaged content in ecommerce

2007-09-26 Thread Abhishake Agarwal
Hi David,

First upload your content to cms server with the similar url pattern as in
ofbiz(for images use productid as the name of the image in cms, normally
that is the way it happens). then make the necessary change in
framework/webapp/config/url.properties.

 tag will generate the suitable url as configured in
url.properties.

in the catalog management part just use the id of image. no need to upload
image.

Regards,
Abhishake


On 9/26/07, Abhishake Agarwal <[EMAIL PROTECTED]> wrote:
>
>
> Hi David,
> I had tried alfresco with ofbiz.
> On 9/26/07, David Goodenough < [EMAIL PROTECTED] > wrote:
> >
> > I have a requirement to display CMS managed content the ecommerce app.
> >
> > I think that what I have to do is to use content/viewContent.ftl, but I
> > am unsure how to invoke this, and what I need to pass to it to refer
> > to either specific document in the CMS.  I am also unsure how to
> > enter suitable documents in the CMS.
> >
> > Lets take an example, I have a page which is managed through the CMS
> > which is the physical location of the store, with links to a map and
> > a travel directions etc.
> >
> > I presume that I set up this page using the Content Manager Application,
> >
> > and I have found a place to create a new Content item and give it a
> > name, mime-type etc, but I have yet to find where I actually create
> > the content itself, i.e either upload a file or type in the content.
> >
> > Having created it with a name, I guess I need to pass that to
> > viewContent.ftl
> > in order that it be displayed.  Say I was passing it from a Menu item,
> > I guess that I am going to invoke it with an  tag, something like:-
> >
> >  > content/viewContent?)
> > but I am unsure how I pass in the ID of the content I want to view.
> >
> > Are there any guides to using CMS managed content in the emcommerce app?
> >
> >
> > David
> >
>
>


Re: I am trying to display CMS mananaged content in ecommerce

2007-09-26 Thread Abhishake Agarwal
Hi David,
I had tried alfresco with ofbiz.
On 9/26/07, David Goodenough <[EMAIL PROTECTED] > wrote:
>
> I have a requirement to display CMS managed content the ecommerce app.
>
> I think that what I have to do is to use content/viewContent.ftl, but I
> am unsure how to invoke this, and what I need to pass to it to refer
> to either specific document in the CMS.  I am also unsure how to
> enter suitable documents in the CMS.
>
> Lets take an example, I have a page which is managed through the CMS
> which is the physical location of the store, with links to a map and
> a travel directions etc.
>
> I presume that I set up this page using the Content Manager Application,
> and I have found a place to create a new Content item and give it a
> name, mime-type etc, but I have yet to find where I actually create
> the content itself, i.e either upload a file or type in the content.
>
> Having created it with a name, I guess I need to pass that to
> viewContent.ftl
> in order that it be displayed.  Say I was passing it from a Menu item,
> I guess that I am going to invoke it with an  tag, something like:-
>
>  content/viewContent?)
> but I am unsure how I pass in the ID of the content I want to view.
>
> Are there any guides to using CMS managed content in the emcommerce app?
>
> David
>


Re: Calender in Ftl file

2007-09-26 Thread Jonathon -- Improov
In general, when trying to code for FTL, you should look at equivalents in Widgets. Run a widget, 
look at the HTML code generated, and copy exactly. That's how you fish. :)


Jonathon

Vinod Kashyap wrote:

How i can add a calender in a ftl file..??

can anyone provide me the code..??

i want to place a calender control in the ftl file.. so that when a user
clicks on it, the calender will be displayed.





Re: TypeCasting GenericValue object.

2007-09-26 Thread Jonathon -- Improov

> One point that i would like to share is about beanshell.  Beanshell localizes
> the scope of the variable used within the loop to that loop.

Isn't that how Java works?

Or do you mean that you:

1. Declared variable outside loop

2. Used variable inside loop, but got a null there?

It's easy to develop bad Java coding habits in Beanshell. Just try to do proper Java in Beanshell, 
and things should work as expected. But don't try classes and methods, they're slightly different.


Jonathon

vijay Si wrote:

ThanksSkip.
  I got this point  after some expeimentation "  Typically, the GenericValue
contains the name/value
pairs of some row in a table or view."

I changed my code accordingly... to use  elim.get
(i).getDouble("grandTotal").doubleValue();

thanks for the support.

One point that i would like to share is about beanshell.
Beanshell localizes the scope of the variable used within the loop to that
loop.
So if one has to use the same variable elsewhere than one must declare it
outside the loop and refer to it elsewhere as super.variable to use the same
version of the varible.

This actually took up lot of my time and was also one the reasons for "void"
!!



On 9/26/07, Skip <[EMAIL PROTECTED]> wrote:

vijay

I don't understand some of the code in your example.  But, if you look at
the source for GenericEntity (which GenericValue is a subclass of), you
will
see that at its heart, there is a Map of name-value pairs, i.e. a String
which is the field name mapped to (in this case) the value(s) retrieved by
the GenericDelegator.  Typically, the GenericValue contains the name/value
pairs of some row in a table or view.

But, here is some code that will do what you want (assuming that
"grandTotal" is really a field in OrderHeader which I don't remember for
sure.)  I have not included the required try/catch error trapping for
clarity.

//Get a list of orders matching our conditions.  In place of the ellipse,
add your conditions
List orders = delegator.findByAnd("OrderHeader", ...);
Iterator i = orders.iterator();

double total = 0.0;
//Go through the list and add up all the "grandTotal" values.
while (i.hasNext())
{
GenericValue orderHeader = (GenericValue) i.next();
String orderId = orderHeader.getString("orderId");
Double totalThisOrder = orderHeader.getDouble("grandTotal");
System.out.println("Order id is " + orderId + "\t\tAmount is " +
totalThisOrder);
if(totalThisOrder != null)
 total += totalThisOrder.doubleValue();
}
System.out.println("  \t\t Grand Total " + total);


In the above example, "orders" is a Java List of GenericValue objects
returned by the delegator.  We have to iterate through them and extract
the
"grandTotal" values to add up.

This is such a common task that maybe I'll write a

double GenericValue.sumDouble(List values, String field)
and
long GenericValue.sumLong(List values, String field)

Give it a try and see if this is not what you want.

Skip

-Original Message-
From: vijay Si [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 2:32 AM
To: user@ofbiz.apache.org
Subject: Re: TypeCasting GenericValue object.


Hello Skip,

My piece of code is :

itelim = elim.iterator();   //where elim =
findByCond();
  elimList = new ArrayList();

  while(itelim.hasNext())
  {
  elimList = itelim.next();
  elimList.toString();

  String a1 =  elimList.getString("grandTotal");
  a =  Double.parseDouble(a1);

  }
Now this does give me some result at the o/p : which is last entry in the
grandTotal column(a double value) say for eg: 350.30

I also used the piece of code that you provided.it works for sure but
gives "void" at the o/p...

Also wanted to ask as to how can i iterate over the grandTotal entries.
for
eg: if i have to get grandTotal for all products and sum it up.

Thanks

On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

You can't type cast the GenericValue.  You possibly can type cast one of
the
objects it holds depending on the type.  Each GenericValue holds

different

types if information depending on what it represents.  For example,

GenericValue existingOrderHeader = delegator.findByPrimaryKey
("OrderHeader",
UtilMisc.toMap("orderId", orderId));
String customerId = externalOrderHeader.getString("customerPartyId");

if OrderHeader had a Double value in it, say "grandTotal", you could

double grandTotal =
externalOrderHeader.getDouble("grandTotal").doubleValue();


or

double grandTotal =
((Double)externalOrderHeader.get("grandTotal")).doubleValue();

Both of these will throw a ClassCastException if "grandTotal" is not a
double.

Everything in a GenericValue object is an object itself, i.e double is
wrapped in Double, etc.

Hope that helps

Skip

-Original Message-
From: vijay Si [mailto:[EMAIL PROTECTED]
Sent: Monday, September 24, 2007 11:12 PM
To: user@ofbiz.apache.org
Subject: TypeCasting GenericVal

Re: org.ofbiz.base.start.StartupException: Cannot init() catalina-container (Protocol handler initialization failed: java.io.IOException: SunX509 KeyManagerFactory not available)

2007-09-26 Thread Jonathon -- Improov

Skip,

Try XMLmind . I use Emacs. As for documentation, you might not need it! DocBook is simple, 
intuitive. It's like HTML, but much simpler and easier.


Jonathon

[EMAIL PROTECTED] wrote:

Accounting is mine then.  Sadly though, I don't know docbook.  Can you point
me somewhere to have a look at some documentation?

Skip

-Original Message-
From: Jonathon -- Improov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 9:46 PM
To: user@ofbiz.apache.org
Subject: Re: org.ofbiz.base.start.StartupException: Cannot init()
catalina-container (Protocol handler initialization failed:
java.io.IOException: SunX509 KeyManagerFactory not available)


 > If you will give me a list of the modules you haven't done yet, maybe we
can
 > split the load and feed the result back to the community.

Accounting is where you can help! I've done PartyMgr, halfway through
Catalog and Product.

I've been using DocBook. Do you know DocBook? It's easier than HTML, and
it's plain text so it can
be version-controlled.

Jonathon

[EMAIL PROTECTED] wrote:

Jonathon

"I'm currently attempting to document ALL of those terms...".  I am happy

to

help with this because I would rather not spend gobs of hand-holding time.
I expect to go live with my first customer in about 2 months and they will
have to live with a majority of the functionality in its current state.  A
"jargon dictionary" would be very helpful to them.

I have 20 years experience with these folks and have written two

accounting

applications used by hundreds of users over that time, so I "think" I have

a

fair understanding of the terminolgy in the industries I have served.  It

is

my experience that GL, A/P and A/R are fairly generic.  Beyond that, the
lingo begins to diverge.

If you will give me a list of the modules you haven't done yet, maybe we

can

split the load and feed the result back to the community.

Skip

-Original Message-
From: Jonathon -- Improov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 8:04 PM
To: user@ofbiz.apache.org
Subject: Re: org.ofbiz.base.start.StartupException: Cannot init()
catalina-container (Protocol handler initialization failed:
java.io.IOException: SunX509 KeyManagerFactory not available)


Skip,

I agree with you, as will many other VARs who have taken up OFBiz.

I'm currently attempting to document ALL of those terms, everything OFBiz
but above the framework.
After that, I'll be approaching the real world (not the OFBiz world) to
tally the facts and
figures, and to get a good list of the discrepancy between "OFBiz world"

and

"real world". Such a
"mapping" between OFBiz and the real world will make it MUCH easier for me
to talk to future clients!

As it is now, more than half of my projects required some work to

gravitate

OFBiz towards the real
world. In particular, accounting is a major void. Payment processing has
some holes too.

 > That is why I say that it is probably uneconomical to train people
 > to use Ofbiz OOTB.  It is, I think, more economical to rewrite the
 > UI using terms understood by the people using them.

Definitely. All of my projects required that. Changing the UI.

I'm not saying which ERP terminologies are de facto or "best practice".

It's

just a real world
observation.

Either OFBiz moves towards the real world, or vice versa. There are some
clients who say they want
to follow best practices, and they want to try going with the "OFBiz way

of

doing things".

Whatever we do, I think it'll be fun to focus on channeling all we got

into

OFBiz and make it more
viable in the real world. Well, unless OFBiz overtakes the number one ERP
system. :)

Jonathon

Skip wrote:

Tim

Gads, seems as if I hit a nerve.  My apologies.  Let me respond briefly.

"Skip you may not have the expertise in general to use it close to OOTB".
My ability to use Ofbiz OOTB is not the issue here.  I am a software
engineer, not the end user. I will not be using it except for testing.  I

am

implementing it now for two mid-sized businesses with three to follow.

It is my view that with few exceptions, the back office Ofbiz

applications,

are not designed for the real people to use.  As some examples, go to

your

friendly neighborhood corporate office and ask the A/R, A/P or manager

type

person the meaning of these terms:
Logical Id, Facility Type ID, Empl Position Type Id, Manual Auth Is

Capture,

Order Enum Id, To Geo, Validate G C Fin Acct, Contact Mech, Reason Enum,
etc. etc.
If that person can correctly identify the purpose of any of them (and

they

have not used Ofbiz before), I would be very surprised.  I would actually

be

surprised if you know all of them off the top of your head.  These are a

few

of the ones I copied and pasted from various places in the Ofbiz back

office

applicatons.  There are hundreds more.  To use these applications OOTB,

the

person using it has to be educated on the meaning of what is mostly

jargon.

Remember too that some of these applications are ra

I am trying to display CMS mananaged content in ecommerce

2007-09-26 Thread David Goodenough
I have a requirement to display CMS managed content the ecommerce app.

I think that what I have to do is to use content/viewContent.ftl, but I
am unsure how to invoke this, and what I need to pass to it to refer
to either specific document in the CMS.  I am also unsure how to 
enter suitable documents in the CMS.

Lets take an example, I have a page which is managed through the CMS
which is the physical location of the store, with links to a map and
a travel directions etc.  

I presume that I set up this page using the Content Manager Application,
and I have found a place to create a new Content item and give it a 
name, mime-type etc, but I have yet to find where I actually create 
the content itself, i.e either upload a file or type in the content.

Having created it with a name, I guess I need to pass that to viewContent.ftl
in order that it be displayed.  Say I was passing it from a Menu item,
I guess that I am going to invoke it with an  tag, something like:-



Separate huge picklists into separate PDFs

2007-09-26 Thread Nikita Shinde
Hello All,

 

Is there a way to separate huge picklists into separate PDF's?

 

   What is happening is if we try to print a picklist of about 500
orders . the list was too big for OFBiz to print. So for picklists over 150
orders do we have auto split functionality for the PDF's?

 

I did set the default value of "Pick first" field to 150 on the
Picking Options page. But if a value more than 150 is entered can we auto
split the PDF's?

 

 

Thanks,

Nikita

Amicon Technologies Pvt. Ltd.

Mumbai.



Re: Calender in Ftl file

2007-09-26 Thread Vinod Kashyap

ThanKs Brother..
It Works...
:handshake:


Gurcharan wrote:
> 
> Hello,
> 
> Use the below mentioned codes -
> 
>  javascript:call_cal(document.storeform.purchase_date,''); 
> /images/cal.gif  
> 
> where
> storeform - Form Name
> purchase_date - Form Field Name to which calendar is to be attached
> 
> Gurcharan
> 
> 
> On 9/26/07, Vinod Kashyap <[EMAIL PROTECTED]> wrote:
>>
>>
>> How i can add a calender in a ftl file..??
>>
>> can anyone provide me the code..??
>>
>> i want to place a calender control in the ftl file.. so that when a user
>> clicks on it, the calender will be displayed.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Calender-in-Ftl-file-tf4521211.html#a12897676
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Calender-in-Ftl-file-tf4521211.html#a12898498
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: org.ofbiz.base.start.StartupException: Cannot init() catalina-container (Protocol handler initialization failed: java.io.IOException: SunX509 KeyManagerFactory not available)

2007-09-26 Thread Jacques Le Roux
De : "David E Jones" <[EMAIL PROTECTED]>

> Have you read through "The Data Model Resource Book(s)"? They don't have 
> everything in them, but are extremely helpful for getting
the general concepts.
Mandatory.

You may also have a look at 
http://docs.ofbiz.org/display/OFBENDUSER/Undersun+Doc+Site+PDF+Exports

Jacques

>
> -David
>
>
> [EMAIL PROTECTED] wrote:
> > David
> >
> > I expect you are right, especially as I have spent most of my time digging
> > through source code instead of learning Ofbiz in detail from a users
> > perspective.  However, I think it can only be helpful to document exactly
> > what each of these fields that are not self-explanatory do.  I know it will
> > help me when I deliver this from gettig a million support phone calls.
> >
> > Skip
> >
> > -Original Message-
> > From: David E Jones [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 25, 2007 8:44 PM
> > To: user@ofbiz.apache.org
> > Subject: Re: org.ofbiz.base.start.StartupException: Cannot init()
> > catalina-container (Protocol handler initialization failed:
> > java.io.IOException: SunX509 KeyManagerFactory not available)
> >
> >
> >
> > Just a general thought: if better terms for things in OFBiz can be found I
> > think everyone will be very open to changing them.
> >
> > Usually what happens, based on experience with clients, is they are actually
> > thinking of something different than the concept used in OFBiz and so the
> > change in the term causes more problems than it helps... and telling them
> > what it means and how it is different (usually less granular) than what they
> > were imagining was more effective.
> >
> > -David
> >
> >
> > [EMAIL PROTECTED] wrote:
> >> Jonathon
> >>
> >> "I'm currently attempting to document ALL of those terms...".  I am happy
> > to
> >> help with this because I would rather not spend gobs of hand-holding time.
> >> I expect to go live with my first customer in about 2 months and they will
> >> have to live with a majority of the functionality in its current state.  A
> >> "jargon dictionary" would be very helpful to them.
> >>
> >> I have 20 years experience with these folks and have written two
> > accounting
> >> applications used by hundreds of users over that time, so I "think" I have
> > a
> >> fair understanding of the terminolgy in the industries I have served.  It
> > is
> >> my experience that GL, A/P and A/R are fairly generic.  Beyond that, the
> >> lingo begins to diverge.
> >>
> >> If you will give me a list of the modules you haven't done yet, maybe we
> > can
> >> split the load and feed the result back to the community.
> >>
> >> Skip
> >>
> >> -Original Message-
> >> From: Jonathon -- Improov [mailto:[EMAIL PROTECTED]
> >> Sent: Tuesday, September 25, 2007 8:04 PM
> >> To: user@ofbiz.apache.org
> >> Subject: Re: org.ofbiz.base.start.StartupException: Cannot init()
> >> catalina-container (Protocol handler initialization failed:
> >> java.io.IOException: SunX509 KeyManagerFactory not available)
> >>
> >>
> >> Skip,
> >>
> >> I agree with you, as will many other VARs who have taken up OFBiz.
> >>
> >> I'm currently attempting to document ALL of those terms, everything OFBiz
> >> but above the framework.
> >> After that, I'll be approaching the real world (not the OFBiz world) to
> >> tally the facts and
> >> figures, and to get a good list of the discrepancy between "OFBiz world"
> > and
> >> "real world". Such a
> >> "mapping" between OFBiz and the real world will make it MUCH easier for me
> >> to talk to future clients!
> >>
> >> As it is now, more than half of my projects required some work to
> > gravitate
> >> OFBiz towards the real
> >> world. In particular, accounting is a major void. Payment processing has
> >> some holes too.
> >>
> >>  > That is why I say that it is probably uneconomical to train people
> >>  > to use Ofbiz OOTB.  It is, I think, more economical to rewrite the
> >>  > UI using terms understood by the people using them.
> >>
> >> Definitely. All of my projects required that. Changing the UI.
> >>
> >> I'm not saying which ERP terminologies are de facto or "best practice".
> > It's
> >> just a real world
> >> observation.
> >>
> >> Either OFBiz moves towards the real world, or vice versa. There are some
> >> clients who say they want
> >> to follow best practices, and they want to try going with the "OFBiz way
> > of
> >> doing things".
> >>
> >> Whatever we do, I think it'll be fun to focus on channeling all we got
> > into
> >> OFBiz and make it more
> >> viable in the real world. Well, unless OFBiz overtakes the number one ERP
> >> system. :)
> >>
> >> Jonathon
> >>
> >> Skip wrote:
> >>> Tim
> >>>
> >>> Gads, seems as if I hit a nerve.  My apologies.  Let me respond briefly.
> >>>
> >>> "Skip you may not have the expertise in general to use it close to OOTB".
> >>> My ability to use Ofbiz OOTB is not the issue here.  I am a software
> >>> engineer, not the end user. I will not be using it except for testing.  I
> >>

Approving user account and sending password through e-mail

2007-09-26 Thread Rupinder

Hi
We have created a product store and   have set  "Allow Password " option
to " N " in form. By doing this, When a user opens a  new registration form
(create new user ) in a ecommerce application for that product store ,
instead of displaying password field , it displays  message  " You will
receive a password by email when your new account is approved." .

 Friends Please tell us how we will enable/approve  that account and how 
email will be send to user containing his password .  

 We have already configured  "  general.properties "  according to our SMTP
MAIL SERVER.


regards

Prateek / rupinder
-- 
View this message in context: 
http://www.nabble.com/Approving-user-account-and-sending-password-through-e-mail-tf4521365.html#a12898097
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Calender in Ftl file

2007-09-26 Thread Gurcharan Singh
Hello,

Use the below mentioned codes -



where
storeform - Form Name
purchase_date - Form Field Name to which calendar is to be attached

Gurcharan


On 9/26/07, Vinod Kashyap <[EMAIL PROTECTED]> wrote:
>
>
> How i can add a calender in a ftl file..??
>
> can anyone provide me the code..??
>
> i want to place a calender control in the ftl file.. so that when a user
> clicks on it, the calender will be displayed.
>
> --
> View this message in context:
> http://www.nabble.com/Calender-in-Ftl-file-tf4521211.html#a12897676
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>


Calender in Ftl file

2007-09-26 Thread Vinod Kashyap

How i can add a calender in a ftl file..??

can anyone provide me the code..??


-- 
View this message in context: 
http://www.nabble.com/Calender-in-Ftl-file-tf4521211.html#a12897676
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: TypeCasting GenericValue object.

2007-09-26 Thread vijay Si
ThanksSkip.
  I got this point  after some expeimentation "  Typically, the GenericValue
contains the name/value
pairs of some row in a table or view."

I changed my code accordingly... to use  elim.get
(i).getDouble("grandTotal").doubleValue();

thanks for the support.

One point that i would like to share is about beanshell.
Beanshell localizes the scope of the variable used within the loop to that
loop.
So if one has to use the same variable elsewhere than one must declare it
outside the loop and refer to it elsewhere as super.variable to use the same
version of the varible.

This actually took up lot of my time and was also one the reasons for "void"
!!



On 9/26/07, Skip <[EMAIL PROTECTED]> wrote:
>
> vijay
>
> I don't understand some of the code in your example.  But, if you look at
> the source for GenericEntity (which GenericValue is a subclass of), you
> will
> see that at its heart, there is a Map of name-value pairs, i.e. a String
> which is the field name mapped to (in this case) the value(s) retrieved by
> the GenericDelegator.  Typically, the GenericValue contains the name/value
> pairs of some row in a table or view.
>
> But, here is some code that will do what you want (assuming that
> "grandTotal" is really a field in OrderHeader which I don't remember for
> sure.)  I have not included the required try/catch error trapping for
> clarity.
>
> //Get a list of orders matching our conditions.  In place of the ellipse,
> add your conditions
> List orders = delegator.findByAnd("OrderHeader", ...);
> Iterator i = orders.iterator();
>
> double total = 0.0;
> //Go through the list and add up all the "grandTotal" values.
> while (i.hasNext())
> {
> GenericValue orderHeader = (GenericValue) i.next();
> String orderId = orderHeader.getString("orderId");
> Double totalThisOrder = orderHeader.getDouble("grandTotal");
> System.out.println("Order id is " + orderId + "\t\tAmount is " +
> totalThisOrder);
> if(totalThisOrder != null)
>  total += totalThisOrder.doubleValue();
> }
> System.out.println("  \t\t Grand Total " + total);
>
>
> In the above example, "orders" is a Java List of GenericValue objects
> returned by the delegator.  We have to iterate through them and extract
> the
> "grandTotal" values to add up.
>
> This is such a common task that maybe I'll write a
>
> double GenericValue.sumDouble(List values, String field)
> and
> long GenericValue.sumLong(List values, String field)
>
> Give it a try and see if this is not what you want.
>
> Skip
>
> -Original Message-
> From: vijay Si [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 25, 2007 2:32 AM
> To: user@ofbiz.apache.org
> Subject: Re: TypeCasting GenericValue object.
>
>
> Hello Skip,
>
> My piece of code is :
>
> itelim = elim.iterator();   //where elim =
> findByCond();
>   elimList = new ArrayList();
>
>   while(itelim.hasNext())
>   {
>   elimList = itelim.next();
>   elimList.toString();
>
>   String a1 =  elimList.getString("grandTotal");
>   a =  Double.parseDouble(a1);
>
>   }
> Now this does give me some result at the o/p : which is last entry in the
> grandTotal column(a double value) say for eg: 350.30
>
> I also used the piece of code that you provided.it works for sure but
> gives "void" at the o/p...
>
> Also wanted to ask as to how can i iterate over the grandTotal entries.
> for
> eg: if i have to get grandTotal for all products and sum it up.
>
> Thanks
>
> On 9/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > You can't type cast the GenericValue.  You possibly can type cast one of
> > the
> > objects it holds depending on the type.  Each GenericValue holds
> different
> > types if information depending on what it represents.  For example,
> >
> > GenericValue existingOrderHeader = delegator.findByPrimaryKey
> > ("OrderHeader",
> > UtilMisc.toMap("orderId", orderId));
> > String customerId = externalOrderHeader.getString("customerPartyId");
> >
> > if OrderHeader had a Double value in it, say "grandTotal", you could
> >
> > double grandTotal =
> > externalOrderHeader.getDouble("grandTotal").doubleValue();
> >
> >
> > or
> >
> > double grandTotal =
> > ((Double)externalOrderHeader.get("grandTotal")).doubleValue();
> >
> > Both of these will throw a ClassCastException if "grandTotal" is not a
> > double.
> >
> > Everything in a GenericValue object is an object itself, i.e double is
> > wrapped in Double, etc.
> >
> > Hope that helps
> >
> > Skip
> >
> > -Original Message-
> > From: vijay Si [mailto:[EMAIL PROTECTED]
> > Sent: Monday, September 24, 2007 11:12 PM
> > To: user@ofbiz.apache.org
> > Subject: TypeCasting GenericValue object.
> >
> >
> > Hi,
> > I have been trying to type cast a generic value object to double and
> > string,
> > but i get an error
> >
> > "java.lang.ClassCastException: Cannot cast
> org.ofbiz.entity.GenericValueto
> > ja

Error creating delegator

2007-09-26 Thread sqlien

Hi, 

I am getting the following error when I start ofbiz. Thank you in advance
for your replies :

Error creating delegator
Exception: org.ofbiz.entity.GenericModelException
Message: Error getting related entity [SkillType] definition from entity
[QuoteI
tem] (Could not find definition for entity name SkillType)
 stack trace
---

org.ofbiz.entity.GenericModelException: Error getting related entity
[SkillType]
 definition from entity [QuoteItem] (Could not find definition for entity
name S
killType)
 stack trace
---

org.ofbiz.entity.GenericModelException: Error getting related entity
[SkillType]
 definition from entity [QuoteItem] (Could not find definition for entity
name S
killType)
org.ofbiz.entity.model.ModelReader.getEntityCache(ModelReader.java:300)
org.ofbiz.entity.model.ModelReader.getModelReader(ModelReader.java:93)
org.ofbiz.entity.GenericDelegator.(GenericDelegator.java:142)
org.ofbiz.entity.NeogiaDelegator.(NeogiaDelegator.java:42)
org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:117)
-- 
View this message in context: 
http://www.nabble.com/Error-creating-delegator-tf4520587.html#a12895693
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: org.ofbiz.base.start.StartupException: Cannot init() catalina-container (Protocol handler initialization failed: java.io.IOException: SunX509 KeyManagerFactory not available)

2007-09-26 Thread David E Jones


Have you read through "The Data Model Resource Book(s)"? They don't have 
everything in them, but are extremely helpful for getting the general concepts.

-David


[EMAIL PROTECTED] wrote:

David

I expect you are right, especially as I have spent most of my time digging
through source code instead of learning Ofbiz in detail from a users
perspective.  However, I think it can only be helpful to document exactly
what each of these fields that are not self-explanatory do.  I know it will
help me when I deliver this from gettig a million support phone calls.

Skip

-Original Message-
From: David E Jones [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 8:44 PM
To: user@ofbiz.apache.org
Subject: Re: org.ofbiz.base.start.StartupException: Cannot init()
catalina-container (Protocol handler initialization failed:
java.io.IOException: SunX509 KeyManagerFactory not available)



Just a general thought: if better terms for things in OFBiz can be found I
think everyone will be very open to changing them.

Usually what happens, based on experience with clients, is they are actually
thinking of something different than the concept used in OFBiz and so the
change in the term causes more problems than it helps... and telling them
what it means and how it is different (usually less granular) than what they
were imagining was more effective.

-David


[EMAIL PROTECTED] wrote:

Jonathon

"I'm currently attempting to document ALL of those terms...".  I am happy

to

help with this because I would rather not spend gobs of hand-holding time.
I expect to go live with my first customer in about 2 months and they will
have to live with a majority of the functionality in its current state.  A
"jargon dictionary" would be very helpful to them.

I have 20 years experience with these folks and have written two

accounting

applications used by hundreds of users over that time, so I "think" I have

a

fair understanding of the terminolgy in the industries I have served.  It

is

my experience that GL, A/P and A/R are fairly generic.  Beyond that, the
lingo begins to diverge.

If you will give me a list of the modules you haven't done yet, maybe we

can

split the load and feed the result back to the community.

Skip

-Original Message-
From: Jonathon -- Improov [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 8:04 PM
To: user@ofbiz.apache.org
Subject: Re: org.ofbiz.base.start.StartupException: Cannot init()
catalina-container (Protocol handler initialization failed:
java.io.IOException: SunX509 KeyManagerFactory not available)


Skip,

I agree with you, as will many other VARs who have taken up OFBiz.

I'm currently attempting to document ALL of those terms, everything OFBiz
but above the framework.
After that, I'll be approaching the real world (not the OFBiz world) to
tally the facts and
figures, and to get a good list of the discrepancy between "OFBiz world"

and

"real world". Such a
"mapping" between OFBiz and the real world will make it MUCH easier for me
to talk to future clients!

As it is now, more than half of my projects required some work to

gravitate

OFBiz towards the real
world. In particular, accounting is a major void. Payment processing has
some holes too.

 > That is why I say that it is probably uneconomical to train people
 > to use Ofbiz OOTB.  It is, I think, more economical to rewrite the
 > UI using terms understood by the people using them.

Definitely. All of my projects required that. Changing the UI.

I'm not saying which ERP terminologies are de facto or "best practice".

It's

just a real world
observation.

Either OFBiz moves towards the real world, or vice versa. There are some
clients who say they want
to follow best practices, and they want to try going with the "OFBiz way

of

doing things".

Whatever we do, I think it'll be fun to focus on channeling all we got

into

OFBiz and make it more
viable in the real world. Well, unless OFBiz overtakes the number one ERP
system. :)

Jonathon

Skip wrote:

Tim

Gads, seems as if I hit a nerve.  My apologies.  Let me respond briefly.

"Skip you may not have the expertise in general to use it close to OOTB".
My ability to use Ofbiz OOTB is not the issue here.  I am a software
engineer, not the end user. I will not be using it except for testing.  I

am

implementing it now for two mid-sized businesses with three to follow.

It is my view that with few exceptions, the back office Ofbiz

applications,

are not designed for the real people to use.  As some examples, go to

your

friendly neighborhood corporate office and ask the A/R, A/P or manager

type

person the meaning of these terms:
Logical Id, Facility Type ID, Empl Position Type Id, Manual Auth Is

Capture,

Order Enum Id, To Geo, Validate G C Fin Acct, Contact Mech, Reason Enum,
etc. etc.
If that person can correctly identify the purpose of any of them (and

they

have not used Ofbiz before), I would be very surprised.  I would actually

be

surprised if you know