How to set desired name for generated order or invoice pdf

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

How to set desired name for generated order or invoice pdf

Ganesh B
Hi,

I want to set the order pdf file name to its order number when we open the
pdf from backoffice orderdetail page
(/ordermgr/control/order.pdf?orderId=XXXXX).
Currently, the default name of the pdf is always "order.pdf", instead can
set the default pdf name to its order number?


--
Thanks & Regards
Ganesh Bawne
Enterprise Software Developer
Viithiisys Pvt. Ltd.
http://www.viithiisys.com
Reply | Threaded
Open this post in threaded view
|

Re: How to set desired name for generatedNephilim order or invoice pdf

BJ Freeman
Open a Jira
https://cwiki.apache.org/OFBADMIN/ofbiz-contributors-best-practices.html
if your not a developer then you will have to wait for someone to pick
this up.
if your a developer you can submit a patch.

Ganesh Bawne sent the following on 10/13/2011 6:50 AM:
> Hi,
>
> I want to set the order pdf file name to its order number when we open the
> pdf from backoffice orderdetail page
> (/ordermgr/control/order.pdf?orderId=XXXXX).
> Currently, the default name of the pdf is always "order.pdf", instead can
> set the default pdf name to its order number?
>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to set desired name for generatedNephilim order or invoice pdf

Ganesh B
Thank you BJ,

I created the Jira issue.

This needs to fix in all components where we are generating pdf or csv file.
The default name of file is always the request name.
I like to fix this. Can you tell me what will be the proper way to fix it
generically?

Thanks,
Ganesh




On Thu, Oct 13, 2011 at 11:30 PM, BJ Freeman <[hidden email]> wrote:

> Open a Jira
> https://cwiki.apache.org/OFBADMIN/ofbiz-contributors-best-practices.html
> if your not a developer then you will have to wait for someone to pick
> this up.
> if your a developer you can submit a patch.
>
> Ganesh Bawne sent the following on 10/13/2011 6:50 AM:
> > Hi,
> >
> > I want to set the order pdf file name to its order number when we open
> the
> > pdf from backoffice orderdetail page
> > (/ordermgr/control/order.pdf?orderId=XXXXX).
> > Currently, the default name of the pdf is always "order.pdf", instead can
> > set the default pdf name to its order number?
> >
> >
>



--
Thanks & Regards
Ganesh Bawne
Enterprise Software Developer
Viithiisys Pvt. Ltd.
http://www.viithiisys.com
Reply | Threaded
Open this post in threaded view
|

Re: How to set desired name for generated order or invoice pdf

Anne Jessel
In reply to this post by Ganesh B
Hi

Only a partial answer, I'm afraid.

You need to set the content-disposition header. Google gave this page
http://support.microsoft.com/kb/260519 which shows the syntax.

I haven't looked at how you might do this with OfBiz.

Cheers,
Anne.

On 14 October 2011 00:50, Ganesh Bawne <[hidden email]> wrote:

> Hi,
>
> I want to set the order pdf file name to its order number when we open the
> pdf from backoffice orderdetail page
> (/ordermgr/control/order.pdf?orderId=XXXXX).
> Currently, the default name of the pdf is always "order.pdf", instead can
> set the default pdf name to its order number?
>
>
> --
> Thanks & Regards
> Ganesh Bawne
> Enterprise Software Developer
> Viithiisys Pvt. Ltd.
> http://www.viithiisys.com
>



--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: [hidden email]

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/
Reply | Threaded
Open this post in threaded view
|

Re: How to set desired name for generated order or invoice pdf

Pierre Smits
This should be doable with ofbiz as well. I will look through JIRA to see if
a issue has been created and if not I will create one.

Regards,

Pierre

2011/10/17 Anne <[hidden email]>

> Hi
>
> Only a partial answer, I'm afraid.
>
> You need to set the content-disposition header. Google gave this page
> http://support.microsoft.com/kb/260519 which shows the syntax.
>
> I haven't looked at how you might do this with OfBiz.
>
> Cheers,
> Anne.
>
> On 14 October 2011 00:50, Ganesh Bawne <[hidden email]> wrote:
> > Hi,
> >
> > I want to set the order pdf file name to its order number when we open
> the
> > pdf from backoffice orderdetail page
> > (/ordermgr/control/order.pdf?orderId=XXXXX).
> > Currently, the default name of the pdf is always "order.pdf", instead can
> > set the default pdf name to its order number?
> >
> >
> > --
> > Thanks & Regards
> > Ganesh Bawne
> > Enterprise Software Developer
> > Viithiisys Pvt. Ltd.
> > http://www.viithiisys.com
> >
>
>
>
> --
> Coherent Software Australia Pty Ltd
> PO Box 2773
> Cheltenham Vic 3192
> Phone: (03) 9585 6788
> Fax: (03) 9585 1086
> Web: http://www.cohsoft.com.au/
> Email: [hidden email]
>
> Bonsai ERP, the all-inclusive ERP system
> http://www.bonsaierp.com.au/
>
Reply | Threaded
Open this post in threaded view
|

Re: How to set desired name for generated order or invoice pdf

Jacques Le Roux
Administrator
https://issues.apache.org/jira/browse/OFBIZ-4479

Jacques

From: "Pierre Smits" <[hidden email]>

> This should be doable with ofbiz as well. I will look through JIRA to see if
> a issue has been created and if not I will create one.
>
> Regards,
>
> Pierre
>
> 2011/10/17 Anne <[hidden email]>
>
>> Hi
>>
>> Only a partial answer, I'm afraid.
>>
>> You need to set the content-disposition header. Google gave this page
>> http://support.microsoft.com/kb/260519 which shows the syntax.
>>
>> I haven't looked at how you might do this with OfBiz.
>>
>> Cheers,
>> Anne.
>>
>> On 14 October 2011 00:50, Ganesh Bawne <[hidden email]> wrote:
>> > Hi,
>> >
>> > I want to set the order pdf file name to its order number when we open
>> the
>> > pdf from backoffice orderdetail page
>> > (/ordermgr/control/order.pdf?orderId=XXXXX).
>> > Currently, the default name of the pdf is always "order.pdf", instead can
>> > set the default pdf name to its order number?
>> >
>> >
>> > --
>> > Thanks & Regards
>> > Ganesh Bawne
>> > Enterprise Software Developer
>> > Viithiisys Pvt. Ltd.
>> > http://www.viithiisys.com
>> >
>>
>>
>>
>> --
>> Coherent Software Australia Pty Ltd
>> PO Box 2773
>> Cheltenham Vic 3192
>> Phone: (03) 9585 6788
>> Fax: (03) 9585 1086
>> Web: http://www.cohsoft.com.au/
>> Email: [hidden email]
>>
>> Bonsai ERP, the all-inclusive ERP system
>> http://www.bonsaierp.com.au/
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to set desired name for generated order or invoice pdf

Pierre Smits
Hi Jacques,

It seems to me that the JIRA you mentioned isn't related to the issue at
hand. Or am I mistaken?

Regards,

Pierre


2011/10/17 Jacques Le Roux <[hidden email]>

> https://issues.apache.org/**jira/browse/OFBIZ-4479<https://issues.apache.org/jira/browse/OFBIZ-4479>
>
> Jacques
>
> From: "Pierre Smits" <[hidden email]>
>
>  This should be doable with ofbiz as well. I will look through JIRA to see
>> if
>> a issue has been created and if not I will create one.
>>
>> Regards,
>>
>> Pierre
>>
>> 2011/10/17 Anne <[hidden email]>
>>
>>  Hi
>>>
>>> Only a partial answer, I'm afraid.
>>>
>>> You need to set the content-disposition header. Google gave this page
>>> http://support.microsoft.com/**kb/260519<http://support.microsoft.com/kb/260519>which shows the syntax.
>>>
>>> I haven't looked at how you might do this with OfBiz.
>>>
>>> Cheers,
>>> Anne.
>>>
>>> On 14 October 2011 00:50, Ganesh Bawne <[hidden email]> wrote:
>>> > Hi,
>>> >
>>> > I want to set the order pdf file name to its order number when we open
>>> the
>>> > pdf from backoffice orderdetail page
>>> > (/ordermgr/control/order.pdf?**orderId=XXXXX).
>>> > Currently, the default name of the pdf is always "order.pdf", instead
>>> can
>>> > set the default pdf name to its order number?
>>> >
>>> >
>>> > --
>>> > Thanks & Regards
>>> > Ganesh Bawne
>>> > Enterprise Software Developer
>>> > Viithiisys Pvt. Ltd.
>>> > http://www.viithiisys.com
>>> >
>>>
>>>
>>>
>>> --
>>> Coherent Software Australia Pty Ltd
>>> PO Box 2773
>>> Cheltenham Vic 3192
>>> Phone: (03) 9585 6788
>>> Fax: (03) 9585 1086
>>> Web: http://www.cohsoft.com.au/
>>> Email: [hidden email]
>>>
>>> Bonsai ERP, the all-inclusive ERP system
>>> http://www.bonsaierp.com.au/
>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: How to set desired name for generated order or invoice pdf

Jacques Le Roux
Administrator
Right: https://issues.apache.org/jira/browse/OFBIZ-4480

Jacques

From: "Pierre Smits" <[hidden email]>

> Hi Jacques,
>
> It seems to me that the JIRA you mentioned isn't related to the issue at
> hand. Or am I mistaken?
>
> Regards,
>
> Pierre
>
>
> 2011/10/17 Jacques Le Roux <[hidden email]>
>
>> https://issues.apache.org/**jira/browse/OFBIZ-4479<https://issues.apache.org/jira/browse/OFBIZ-4479>
>>
>> Jacques
>>
>> From: "Pierre Smits" <[hidden email]>
>>
>>  This should be doable with ofbiz as well. I will look through JIRA to see
>>> if
>>> a issue has been created and if not I will create one.
>>>
>>> Regards,
>>>
>>> Pierre
>>>
>>> 2011/10/17 Anne <[hidden email]>
>>>
>>>  Hi
>>>>
>>>> Only a partial answer, I'm afraid.
>>>>
>>>> You need to set the content-disposition header. Google gave this page
>>>> http://support.microsoft.com/**kb/260519<http://support.microsoft.com/kb/260519>which shows the syntax.
>>>>
>>>> I haven't looked at how you might do this with OfBiz.
>>>>
>>>> Cheers,
>>>> Anne.
>>>>
>>>> On 14 October 2011 00:50, Ganesh Bawne <[hidden email]> wrote:
>>>> > Hi,
>>>> >
>>>> > I want to set the order pdf file name to its order number when we open
>>>> the
>>>> > pdf from backoffice orderdetail page
>>>> > (/ordermgr/control/order.pdf?**orderId=XXXXX).
>>>> > Currently, the default name of the pdf is always "order.pdf", instead
>>>> can
>>>> > set the default pdf name to its order number?
>>>> >
>>>> >
>>>> > --
>>>> > Thanks & Regards
>>>> > Ganesh Bawne
>>>> > Enterprise Software Developer
>>>> > Viithiisys Pvt. Ltd.
>>>> > http://www.viithiisys.com
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Coherent Software Australia Pty Ltd
>>>> PO Box 2773
>>>> Cheltenham Vic 3192
>>>> Phone: (03) 9585 6788
>>>> Fax: (03) 9585 1086
>>>> Web: http://www.cohsoft.com.au/
>>>> Email: [hidden email]
>>>>
>>>> Bonsai ERP, the all-inclusive ERP system
>>>> http://www.bonsaierp.com.au/
>>>>
>>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: How to set desired name for generated order or invoice pdf

Ganesh B
In reply to this post by Anne Jessel
Thank you Anne,

This helped me to fix my issue.
I will commit the patch to ofbiz.


Cheers,
Ganesh


On Mon, Oct 17, 2011 at 5:38 AM, Anne <[hidden email]> wrote:

> Hi
>
> Only a partial answer, I'm afraid.
>
> You need to set the content-disposition header. Google gave this page
> http://support.microsoft.com/kb/260519 which shows the syntax.
>
> I haven't looked at how you might do this with OfBiz.
>
> Cheers,
> Anne.
>
> On 14 October 2011 00:50, Ganesh Bawne <[hidden email]> wrote:
> > Hi,
> >
> > I want to set the order pdf file name to its order number when we open
> the
> > pdf from backoffice orderdetail page
> > (/ordermgr/control/order.pdf?orderId=XXXXX).
> > Currently, the default name of the pdf is always "order.pdf", instead can
> > set the default pdf name to its order number?
> >
> >
> > --
> > Thanks & Regards
> > Ganesh Bawne
> > Enterprise Software Developer
> > Viithiisys Pvt. Ltd.
> > http://www.viithiisys.com
> >
>
>
>
> --
> Coherent Software Australia Pty Ltd
> PO Box 2773
> Cheltenham Vic 3192
> Phone: (03) 9585 6788
> Fax: (03) 9585 1086
> Web: http://www.cohsoft.com.au/
> Email: [hidden email]
>
> Bonsai ERP, the all-inclusive ERP system
> http://www.bonsaierp.com.au/
>