Re: cannot get value from findByPrimaryCache

2008-11-28 Thread Hari Plaikoil

Thank you Charles for your help.

The problem has been solved, I didn't give much attention with the whole
process that made me stuck with that problem.

But everything is okay right now.

rgds


STELTZLEN Charles wrote:
> 
> Hi Hari,
> 
> Code seems to be ok.
> 
> Sure that the product weight you want is stored in Product ?
> 
> Don't forget to refresh your cache if you have store the product
> weight just before this reading.
> 
> 
> Hari Plaikoil a écrit :
>> Hi All,
>>
>> Would you like to help me, how to fetch value from a variable which its
>> type
>> is GenericValue? 
>> this is my code:
>>
>> GenericValue product = delegator.findByPrimaryKeyCache("Product",
>> UtilMisc.toMap("productId",productId ));
>>
>> I want to get the weight's value by this code:
>>
>> double weight = product.getDouble("weight").doubleValue();
>>
>> but, I don't have any value store in weight's variable.
>>
>> I don't know what mistakes I've done. Please help me.
>>
>>
>> Thank you
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/cannot-get-value-from-findByPrimaryCache-tp20674090p20744589.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Where is the order status e-mail setting?

2008-11-28 Thread Chirag Manocha

Hello,
Its not changed but I think Vivek just want to say that the email 
sending settings are done in general.properties.

Thanks
Chirag Manocha

BJ Freeman wrote:

did not know that the order status email was in the general properties.
when did it change?

Vivek Mishra sent the following on 11/28/2008 8:22 PM:
  

Hi,
we use general.properties file for e-mail settings.

Kind Regards,
--
Vivek Mishra

Sven Wesley wrote:


Embarrassing, but I couldn't find where to change the e-mail address
for the
order status function?
I made it with an update query...

  
  




smime.p7s
Description: S/MIME Cryptographic Signature


Re: How to set a screen parameter for beanshell usage

2008-11-28 Thread Vikas Mayur


Any thing that has been set in screen context is available in the  
beanshell file.
In beanshell file this can be achieved either by doing (temp is a  
variable to assign the parameter value)


temp = boxno;
or
temp = context.get("boxno");

Both of above examples has same effect.


Vikas

On Nov 28, 2008, at 6:30 PM, madppiper wrote:



Hi,

whether it was possible to set a parameter in the screens.xml file and
access the very same in a beanshell. I'm quite certain that there  
must be a

way, but the following doesn't work and I cannot find any examples:







and in the bsh file i use:

context.get("boxno")
--
View this message in context: 
http://www.nabble.com/How-to-set-a-screen-parameter-for-beanshell-usage-tp20734025p20734025.html
Sent from the OFBiz - User mailing list archive at Nabble.com.





smime.p7s
Description: S/MIME cryptographic signature


Re: Where is the order status e-mail setting?

2008-11-28 Thread BJ Freeman
did not know that the order status email was in the general properties.
when did it change?

Vivek Mishra sent the following on 11/28/2008 8:22 PM:
> Hi,
> we use general.properties file for e-mail settings.
> 
> Kind Regards,
> -- 
> Vivek Mishra
> 
> Sven Wesley wrote:
>> Embarrassing, but I couldn't find where to change the e-mail address
>> for the
>> order status function?
>> I made it with an update query...
>>
>>   


Re: Where is the order status e-mail setting?

2008-11-28 Thread Vivek Mishra

Hi,
we use general.properties file for e-mail settings.

Kind Regards,
--
Vivek Mishra

Sven Wesley wrote:

Embarrassing, but I couldn't find where to change the e-mail address for the
order status function?
I made it with an update query...

  


smime.p7s
Description: S/MIME Cryptographic Signature


FOP and XSLT

2008-11-28 Thread Erwan de FERRIERES

Hi all,

do you if there is a manner to combine fo.ftl files and XSLT stylesheets 
 when you want to print a document in OFBiz. I've seen that we can made 
it directly with FOP, but i don't if on the server side it is possible.


Thx,

--
- Erwan -


Re: Where is the order status e-mail setting?

2008-11-28 Thread Sven Wesley
Thanks.


2008/11/28 BJ Freeman <[EMAIL PROTECTED]>

>
> https://demo.hotwaxmedia.com/catalog/control/EditProductStoreEmails?productStoreId=9000
>
> Sven Wesley sent the following on 11/28/2008 12:07 PM:
> > Embarrassing, but I couldn't find where to change the e-mail address for
> the
> > order status function?
> > I made it with an update query...
> >
>


Re: Where is the order status e-mail setting?

2008-11-28 Thread BJ Freeman
https://demo.hotwaxmedia.com/catalog/control/EditProductStoreEmails?productStoreId=9000

Sven Wesley sent the following on 11/28/2008 12:07 PM:
> Embarrassing, but I couldn't find where to change the e-mail address for the
> order status function?
> I made it with an update query...
> 


Where is the order status e-mail setting?

2008-11-28 Thread Sven Wesley
Embarrassing, but I couldn't find where to change the e-mail address for the
order status function?
I made it with an update query...


Re: Order is charged but still in approved state

2008-11-28 Thread BJ Freeman
The PaymentGatewayServices should only deal with sending and getting
responses from the lower gateway services and dealing with the order.
patching to get around a bug is not a good practice.
So the first is to fix the exceptions that don't allow this to happen,
like fixing why the status is not changed, due to an exception.
https://issues.apache.org/jira/browse/OFBIZ-2001
if you look at the Artifact Info for processReleaseResult
you will see it set the status.
so if the exception happens then the service does not get called.

William Perng sent the following on 11/28/2008 10:33 AM:
> Hi, BJ : 
> 
> Thank you for your reply.  I am wondering can I change the code in
> capturePaymentsByInvoice method (in PaymentGatewayServices.java) to process
> unapplied paymentgatewayresponse entry before calculating the invoice total
> (line 1004 of PaymentGatewayServices.java ver. 66591) to solve this problem?
> The 2nd change we may need in the same place is check the invoice total,
> call captureOrderPayment service only when the invoice total is larger than
> 0.
> 
> I thought by doing this the order can be processed by the regular flow,
> event it is failed in the first time.
> 
> 
> Thanks
> 
> William
> 
> 
> -Original Message-
> From: William Perng [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 28, 2008 10:10 AM
> To: user@ofbiz.apache.org
> Subject: RE: Order is charged but still in approved state
> 
> Payflow 
> 
> Thanks
> 
> William
> 
> -Original Message-
> From: Sam Hamilton [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 28, 2008 2:59 AM
> To: user@ofbiz.apache.org
> Subject: RE: Order is charged but still in approved state
> 
> Hi William, just wondering which credit card provider you are using to get
> this error? 
> 
> Thanks
> Sam
> 
> -Original Message-
> From: BJ Freeman [mailto:[EMAIL PROTECTED] 
> Sent: 27 November 2008 08:15
> To: user@ofbiz.apache.org
> Subject: Re: Order is charged but still in approved state
> 
> might look at
> https://demo.hotwaxmedia.com/webtools/control/ArtifactInfo?type=service&uniq
> ueId=changeOrderStatus
> 
> 
> BJ Freeman sent the following on 11/26/2008 4:10 PM:
>> first you need to fix the code so no exceptions.
>> there is no UI that will let you change the status manually.
>> the problem with using  services is they have secas that trigger that
>> will attempt to capture again.
>> the only way I see is to write you own service or manually change them
>> through the webtools
>>
>>
>>
>> William Perng sent the following on 11/26/2008 3:25 PM:
>>> We have several orders; the credit card payments have been captured.
>>> However, because exceptions happen after capture, they are still in
> approved
>>> state.  Is there any way to move them to complete?  I tried "quick ship
>>> entire order" button and regular pick then pack process.  I always get
>>> payment exception and the orders remain in approved state since the
> payments
>>> have been captured and our credit card service provider doesn't allow me
>>> capture those payments twice.
>>>
>>>  
>>>
>>> Thanks
>>>
>>>  
>>>
>>> William
>>>
>>>
>>
> 
> 
> 
> 


RE: Order is charged but still in approved state

2008-11-28 Thread William Perng
Hi, BJ : 

Thank you for your reply.  I am wondering can I change the code in
capturePaymentsByInvoice method (in PaymentGatewayServices.java) to process
unapplied paymentgatewayresponse entry before calculating the invoice total
(line 1004 of PaymentGatewayServices.java ver. 66591) to solve this problem?
The 2nd change we may need in the same place is check the invoice total,
call captureOrderPayment service only when the invoice total is larger than
0.

I thought by doing this the order can be processed by the regular flow,
event it is failed in the first time.


Thanks

William


-Original Message-
From: William Perng [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 28, 2008 10:10 AM
To: user@ofbiz.apache.org
Subject: RE: Order is charged but still in approved state

Payflow 

Thanks

William

-Original Message-
From: Sam Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 28, 2008 2:59 AM
To: user@ofbiz.apache.org
Subject: RE: Order is charged but still in approved state

Hi William, just wondering which credit card provider you are using to get
this error? 

Thanks
Sam

-Original Message-
From: BJ Freeman [mailto:[EMAIL PROTECTED] 
Sent: 27 November 2008 08:15
To: user@ofbiz.apache.org
Subject: Re: Order is charged but still in approved state

might look at
https://demo.hotwaxmedia.com/webtools/control/ArtifactInfo?type=service&uniq
ueId=changeOrderStatus


BJ Freeman sent the following on 11/26/2008 4:10 PM:
> first you need to fix the code so no exceptions.
> there is no UI that will let you change the status manually.
> the problem with using  services is they have secas that trigger that
> will attempt to capture again.
> the only way I see is to write you own service or manually change them
> through the webtools
> 
> 
> 
> William Perng sent the following on 11/26/2008 3:25 PM:
>> We have several orders; the credit card payments have been captured.
>> However, because exceptions happen after capture, they are still in
approved
>> state.  Is there any way to move them to complete?  I tried "quick ship
>> entire order" button and regular pick then pack process.  I always get
>> payment exception and the orders remain in approved state since the
payments
>> have been captured and our credit card service provider doesn't allow me
>> capture those payments twice.
>>
>>  
>>
>> Thanks
>>
>>  
>>
>> William
>>
>>
> 
> 




RE: Order is charged but still in approved state

2008-11-28 Thread William Perng
Payflow 

Thanks

William

-Original Message-
From: Sam Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 28, 2008 2:59 AM
To: user@ofbiz.apache.org
Subject: RE: Order is charged but still in approved state

Hi William, just wondering which credit card provider you are using to get
this error? 

Thanks
Sam

-Original Message-
From: BJ Freeman [mailto:[EMAIL PROTECTED] 
Sent: 27 November 2008 08:15
To: user@ofbiz.apache.org
Subject: Re: Order is charged but still in approved state

might look at
https://demo.hotwaxmedia.com/webtools/control/ArtifactInfo?type=service&uniq
ueId=changeOrderStatus


BJ Freeman sent the following on 11/26/2008 4:10 PM:
> first you need to fix the code so no exceptions.
> there is no UI that will let you change the status manually.
> the problem with using  services is they have secas that trigger that
> will attempt to capture again.
> the only way I see is to write you own service or manually change them
> through the webtools
> 
> 
> 
> William Perng sent the following on 11/26/2008 3:25 PM:
>> We have several orders; the credit card payments have been captured.
>> However, because exceptions happen after capture, they are still in
approved
>> state.  Is there any way to move them to complete?  I tried "quick ship
>> entire order" button and regular pick then pack process.  I always get
>> payment exception and the orders remain in approved state since the
payments
>> have been captured and our credit card service provider doesn't allow me
>> capture those payments twice.
>>
>>  
>>
>> Thanks
>>
>>  
>>
>> William
>>
>>
> 
> 



Re: How to set a screen parameter for beanshell usage

2008-11-28 Thread Adrian Crum
In the bsh file, use

globalContext.get("boxno");

-Adrian


--- On Fri, 11/28/08, madppiper <[EMAIL PROTECTED]> wrote:

> From: madppiper <[EMAIL PROTECTED]>
> Subject: How to set a screen parameter for beanshell usage
> To: user@ofbiz.apache.org
> Date: Friday, November 28, 2008, 5:00 AM
> Hi,
> 
> whether it was possible to set a parameter in the
> screens.xml file and
> access the very same in a beanshell. I'm quite certain
> that there must be a
> way, but the following doesn't work and I cannot find
> any examples:
> 
>  type="String" global="true"/>
> 
> 
> 
> 
> 
> and in the bsh file i use:
> 
> context.get("boxno")
> -- 
> View this message in context:
> http://www.nabble.com/How-to-set-a-screen-parameter-for-beanshell-usage-tp20734025p20734025.html
> Sent from the OFBiz - User mailing list archive at
> Nabble.com.


  


Re: How to set a screen parameter for beanshell usage

2008-11-28 Thread BJ Freeman
screen widgets are meant for display. the processing by scripts is to
get the data ready to display on a page.
the decision as to which screen is done through the controller, and an
event, service, or just a request, that returns a string that determines
which view (screen) to use.
what you propose is not in the normal way ofbiz works.
however if you have one FTL that has all the templates in it.
then you can pass a parameter to the FTL from the script as to what to
display, and select the specific template in the FTL.



madppiper sent the following on 11/28/2008 5:00 AM:
> Hi,
> 
> whether it was possible to set a parameter in the screens.xml file and
> access the very same in a beanshell. I'm quite certain that there must be a
> way, but the following doesn't work and I cannot find any examples:
> 
> 
> 
> 
> 
> 
> 
> and in the bsh file i use:
> 
> context.get("boxno")


How to set a screen parameter for beanshell usage

2008-11-28 Thread madppiper

Hi,

whether it was possible to set a parameter in the screens.xml file and
access the very same in a beanshell. I'm quite certain that there must be a
way, but the following doesn't work and I cannot find any examples:







and in the bsh file i use:

context.get("boxno")
-- 
View this message in context: 
http://www.nabble.com/How-to-set-a-screen-parameter-for-beanshell-usage-tp20734025p20734025.html
Sent from the OFBiz - User mailing list archive at Nabble.com.