[jira] [Created] (OFBIZ-4480) Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.

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

[jira] [Created] (OFBIZ-4480) Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.

Nicolas Malin (Jira)
Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.
--------------------------------------------------------------------------------------------------

                 Key: OFBIZ-4480
                 URL: https://issues.apache.org/jira/browse/OFBIZ-4480
             Project: OFBiz
          Issue Type: Improvement
          Components: order
    Affects Versions: SVN trunk
         Environment: OS - Ubuntu
            Reporter: Ganesh Bawne


Need to have 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 need to have an option to set the default pdf name to its order number?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4480) Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128653#comment-13128653 ]

Jacques Le Roux commented on OFBIZ-4480:
----------------------------------------

From Anne on user ML
{quote}
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.
{quote}

               

> Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.
> --------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4480
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4480
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: OS - Ubuntu
>            Reporter: Ganesh Bawne
>              Labels: filename, order, pdf
>
> Need to have 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 need to have an option to set the default pdf name to its order number?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-4480) Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ganesh Bawne updated OFBIZ-4480:
--------------------------------

    Attachment: orderPdf-FileName.patch
   

> Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.
> --------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4480
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4480
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: OS - Ubuntu
>            Reporter: Ganesh Bawne
>              Labels: filename, order, pdf
>         Attachments: orderPdf-FileName.patch
>
>
> Need to have 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 need to have an option to set the default pdf name to its order number?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4480) Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13131415#comment-13131415 ]

Ganesh Bawne commented on OFBIZ-4480:
-------------------------------------

Thank you Anne for your quick reply.

I have created the patch which will use orderId and InvoiceId as default name when "File Download" Dialog Box appear.

To fix the issue, I set the content-disposition header in response to override this default behavior.
Right now done it in CompanyHeader.groovy as is used for print pdf files.

You can test it on pdf and invoice link on backend's orderdetails page.


Thanks,
Ganesh









               

> Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.
> --------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4480
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4480
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: OS - Ubuntu
>            Reporter: Ganesh Bawne
>              Labels: filename, order, pdf
>         Attachments: orderPdf-FileName.patch
>
>
> Need to have 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 need to have an option to set the default pdf name to its order number?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4480) Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-4480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13131449#comment-13131449 ]

Nicolas Malin commented on OFBIZ-4480:
--------------------------------------

I look the patch, quick and powerful improvement to solve this issue, but improve directly ViewHandler to support a generic attribute (as example responseFileName) would be more usable for other report.

Nicolas
               

> Need to have an option to pass file name as OrderId for the generated confirmation or invoice PDF.
> --------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4480
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4480
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: SVN trunk
>         Environment: OS - Ubuntu
>            Reporter: Ganesh Bawne
>              Labels: filename, order, pdf
>         Attachments: orderPdf-FileName.patch
>
>
> Need to have 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 need to have an option to set the default pdf name to its order number?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira