Skip to content

Commit 90439eb

Browse files
authored
Add content-disposition to http reports to allow save the pdf with the object name. (#299)
Issue: 49828
1 parent 7680d8a commit 90439eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/src/main/java/com/genexus/webpanels/GXWebReport.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ protected void initState(ModelContext context, UserInformation ui)
4545
protected void preExecute()
4646
{
4747
httpContext.setContentType("application/pdf");
48+
httpContext.getResponse().addHeader("content-disposition", "inline; filename=" + getClass().getSimpleName() + ".pdf");
4849
httpContext.setStream();
4950

5051
// Tiene que ir despues del setStream porque sino el getOutputStream apunta

0 commit comments

Comments
 (0)