How to specify the download file name??
Hi guys~~~
I have servlet which can generate a *.pdf file,I found if I didn't setContentType="application/pdf",I can download it!!But the download file name is my servlet file name.If I want to change the download file name,How do I do????
thanx a lot!!!Best regard!
Thanx for ur help...But I encounter a new charllenge now...
I use a javascript(window.open("/myservlet")) to open the download file servlet.
Everything is okay.But when I finish downloading the file which window I opened cant close itself automatically.
I am really not understand the header parameter of the HTML header,could someone give me something about this??
Thanx again!!!!
Similar Messages
-
How to assign the downloaded file path in dropdown menu dynamically?
I have one jsp page. In that jsp page one dropdown menu is there. Dropdown menu contains "save" and "saved content". I download the file using "save" option in menu. That downloaded file path is assigned to the below of the "saved content" option. Then i clicked that downloaded file path, that file will be open.
My problem is how to assign the downloaded file path in dropdown menu. plz help me.dittu wrote:
My problem is how to assign the downloaded file path in dropdown menu. plz help me.I don't understand your problem. -
How to specify the database file path when create FDM application
Dear All,
How to specify the database file path (MSSQL) when create FDM application?
Right now, all data file are placed in the D:\ . I want to specify the database files (log and mdf file) in other place. How to do it?
Thanks.Where is the highS2.xml located on the disk? If you add it to your project you should set its Build Action to Content and its Copy To Output Directory to Always in Visual Studio:
Please remember to close your threads by marking helpful posts as answer once your issue has been solved and then start a new thread if you have a new question. -
How to find the downloaded file. its not in the "downloads".
how to find the downloaded file?
Open Finder, and type "Today" in the search area in the upper right of Finder's window.
Then click "Today" under "Dates" in the resulting drop-down menu. -
How to print the report file name and path and the last mod date
Good morning,
I am trying to print on the footer of the report the report file name and path as well as the report last modification date.
Anyone would know how I can do that? I have checked the doc but found nothing.
Thks. Philippe.Did you ever determine how to print report name and report last mod date?
Thanks -
How to Edit the Title (file name) on forms 10g Screen.
Hi ,
How can one edit the Title ,and <(file name)> on forms 10g Screen ....
I tried editing through the forms module preperty palette , but could n't change the Title, or file name on forms menu screen ...
I guess , the entries are made through some other means...
Please let me know on how to do this .
Need a quicker reply ..
Thanks in Advance
Sanuusing the below code too not getting me the new names entered by me ... still the old title names are comingWhat do you mean by new nemes? It will return you the actual file name which is saved in phycical location and form name will return you the module name which displays when you open forms in builder.
Or you mean something else then its better to provide any example..like what is happening actually with you.
-Ammad -
How to Change the defalut file name of PDF out of report (Version 6i)
Dear All
I have a report which opens from forms(Version 6i); the output of the report is in PDF. The generated file name is the same name as the report. Is there any way to give parameter name of the report as the name of the PDF out put of the report?
For example I have a parameter called PATIENT_ID and my value is 25613 now I need the PDF out put name also 25613.
Thanks and regards
SijoUse DESNAME to specify the output filename:
set_report_object_property(repid, REPORT_DESNAME, :patient_id); -
How to chante the PDF File Name in Broadcasting
Hi Team,
Could you help me?, I am in a project where the customer need the Following requirement with the PDF File Name in the Broadcasting:
I am configuring one distribution Job in Broadcasting configuration Tab this Job need send a report via E-Mail in PDF Format, but the customer requirement is that the file name is sent with the description name and not with the technical name from report.
Then, some of you know "How change the name to the PDF File that is sent in the Distribution Jobs, I need the Description name, because actually the E-mail send the PDF File with the Technical Name, and the user does not want in that way".
Thank you very much.
Leslie Denise.Hi,
Thank you for your answer, but that parameter i added in the content of the email. But I need change the name from the file not to add the description in the subject or in the content.
And if there are somebody to know if is possible to change the name from the PDF File I will apreciate your comments and answers.
But Thank you so much for your answer voodi.
Regards
Leslie Denise. -
How to change the RPD file name without deploying on EM
Is there a way to change the RPD file name so it doesn't have BI0002 or BI0003 on the end of it? I can delete my BI0002 file and point the NQSConfig.ini file to my new FileName.rpd but when the BI services restart the BI0002 file reappears in the repository directory and the NQSConfig file changes to reflect this. It's like the only way you can change this is in the Enterprise Manager, but that always adds the suffix to the file.
Any suggestions?
Here's what the docs say:
When you upload a repository, it is copied to the local repository directory for each Oracle BI Server component, located at:
ORACLE_INSTANCE\bifoundation\OracleBIServerComponent\coreapplication_obisn\repository
If you have published the repository in shared mode, then the repository is also copied to the shared network location.
After the repository is uploaded, it is given a version number suffix (for example, SampleApp_bi001.rpd). This version number is incremented each time that the repository is uploaded. To revert to a previous version, you must re-upload the specific version of the repository to use.
Note that you can delete older versions from the repository directory or shared network directory to reclaim disk space.
What does that mean? I have to use an old rpd file in order to get rid of the suffix?Hi,
It can be changed, although I do not no exactly how. You have to take a look at the MBeans which are used to deploy a new repository. The suffixed is used to insure you do not overwrite an existing RPD
Cheers,
Daan Bakboord
http://obibb.wordpress.com -
How to set the default file name for upload
Hi All,
I have the following BSP app for a file upload of a csv file. I want the page when displayed show the default file name to be loaded as c:\db1\currentPM.csv
What changes do I need to make to get the default file name in the BSP app.
Thanks
Karen
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content id = "content"
design = "classicdesign2002design2003"
controlRendering = "sap"
rtlAutoSwitch = "true" >
<htmlb:page title="File Upload " >
<htmlb:form method = "post"
encodingType = "multipart/form-data">
<htmlb:textView text = "File:"
design = "STANDARD" />
<htmlb:fileUpload id = "uploadID"
onUpload = "UploadFile"
upload_text ="Upload"/>
</htmlb:form>
</htmlb:page>
</htmlb:content>
On Input Processing
event handler for checking and processing user input and
for defining navigation
DATA: EVENT TYPE REF TO IF_HTMLB_DATA,
DATA TYPE REF TO CL_HTMLB_FILEUPLOAD,
LV_OUTPUT_LENGTH TYPE I,
LV_TEXT_BUFFER TYPE STRING,
FILE_NAME TYPE STRING,
FILE_PATH TYPE STRING ,
INTERN TYPE TABLE OF ZALSMEX_TABLINE.
DATA: LT_BINARY_TAB TYPE TABLE OF SDOKCNTBIN .
TYPES: BEGIN OF TY_TAB,
FIELD1(2) TYPE C,
FIELD2(2) TYPE C,
FIELD3(2) TYPE C,
FIELD4(2) TYPE C,
FIELD5(2) TYPE C,
END OF TY_TAB.
DATA: WA_TAB TYPE TY_TAB,
IT_TAB TYPE TABLE OF TY_TAB.
TYPES: BEGIN OF TY_LINE,
LINE(255) TYPE C,
END OF TY_LINE.
DATA: WA_LINE TYPE TY_LINE,
IT_LINE TYPE TABLE OF TY_LINE.
EVENT = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
IF EVENT IS NOT INITIAL AND EVENT->EVENT_NAME = HTMLB_EVENTS=>FILEUPLOAD.
DATA ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = RUNTIME->SERVER->REQUEST NAME = 'fileUpload' ID = 'uploadID' ).
FILE_NAME = DATA->FILE_NAME.
FILE_PATH = FILE_NAME.
IF DATA IS NOT INITIAL.
CALL FUNCTION'SCMS_XSTRING_TO_BINARY'
EXPORTING BUFFER = DATA->FILE_CONTENT
IMPORTING OUTPUT_LENGTH = LV_OUTPUT_LENGTH
TABLES BINARY_TAB = LT_BINARY_TAB .
CALL FUNCTION'SCMS_BINARY_TO_STRING'
EXPORTING INPUT_LENGTH = LV_OUTPUT_LENGTH
IMPORTING TEXT_BUFFER = LV_TEXT_BUFFER
TABLES
BINARY_TAB = LT_BINARY_TAB.
IF SY-SUBRC = 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
SPLIT LV_TEXT_BUFFER AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE IT_LINE.
IF SY-SUBRC = 0.
LOOP AT IT_LINE INTO WA_LINE.
SPLIT WA_LINE AT CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB
split wa_line at ','
INTO WA_TAB-FIELD1 WA_TAB-FIELD2 WA_TAB-FIELD3 WA_TAB-FIELD4 WA_TAB-FIELD5.
append wa_tab to it_tab.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.Also, I missed another point.
In the folder c:\dbdata I have a number of CSV files on the user frontend. I would like the BSP application to get the list of files in the folder and process them one after the other. How can I get the list of files on the folder in the user PC and how to process them one after the other.
I want the form to display only the default folder and once I press on upload it must process all files and display the status of processing on the same page.
Please kindly share ideas how I can implement this app.
Thanks
Karen -
How to creat the logical file name.
Hello All,
I want to create Logical file name in my program, So Please guide me in this issue.
ThanksCheck this out
http://help.sap.com/saphelp_45b/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
FU FILE_GET_NAME
Text
Assign the Physical File Name Using a Logical File Name
Functionality
R/3 applications run on various platforms with various file systems. This function module enables you to use platform-independent logical file names in your application programs.
Based on definitions maintained in customizing tables for platform-independent file names, the function module converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.
For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.
Example
logical file name: MONTHLY_SALES_FILE
physical file name: VALUES<PARAM_1>
logical path: SALES_DATA_PATH
physical path (UNIX): /usr/<SYSID>/<FILENAME>
physical path (Windows): C:\SALES\<FILENAME>
Example 1
Get file name for UNIX platform
(current system: K11)
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
IMPORTING
FILE_NAME = FILE
FILE_FORMAT = FORMAT.
Result:
FILE = /usr/K11/VALUES
FORMAT = WK1
Example 2
Get file name for UNIX platform, passing a parameter
(current system: K11)
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
PARAMETER_1 = '_TST'
IMPORTING
FILE_NAME = FILE
FILE_FORMAT = FORMAT.
Result:
FILE = /usr/K11/VALUES_TST
FORMAT = WK1
Example 3
Get file name for WINDOWS platform, with file name extension
CALL FUNCTION 'FILE_GET_NAME'
EXPORTING
LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
WITH_FILE_EXTENSION = 'X'
IMPORTING
FILE_NAME = FILE
FILE_FORMAT = FORMAT.
Result:
FILE = C:\SALES\VALUES.WK1
FORMAT = WK1
Notes
All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.
The following concepts are used in the platform-independent assignment of file names:
Logical file name
A descriptive name for a file which is associated with these values:
physical file name
file format
logical file path.
If no logical file path is specified, the function module returns the physical file name only; placeholders are substituted by current values.
Physical file name
The physical file name may contain placeholders.
Logical file path
A descriptive name for a path which is associated with these values:
syntax groups (groups of operating systems)
physical file paths.
Physical file path
The physical file path is defined for a particular syntax group. It must contain the reserved word <FILENAME> as a placeholder for the file name. It may also contain other placeholders.
Operating system
Presentation server and application server can run under different operating systems. The current value for the application server can be obtained from the system field SY-OPSYS, the value for the presentation server by calling function module WS_QUERY.
Both operating systems must be defined and assigned to a syntax group.
Syntax group
Group of operating systems with a common syntax for file and path names (e.g. HP-UX and SINIX).
Placeholder
Reserved words, set in angle brackets, which can be included in physical file and path names (e.g. <DATE>, <FILENAME>). You can find information on possible reserved words in the online help (F1 help) for the fields physical file name and physical file path when maintaining platform-independent file names with transaction FILE.
If the logical path associated with a logical file name does not specify a physical path for the current operating system (syntax group), the path stored in the profile parameter DIR_GLOBAL of the current system is used for generating a complete platform-specific file name.
Parameters
CLIENT
LOGICAL_FILENAME
OPERATING_SYSTEM
PARAMETER_1
PARAMETER_2
PARAMETER_3
USE_PRESENTATION_SERVER
WITH_FILE_EXTENSION
USE_BUFFER
ELEMINATE_BLANKS
EMERGENCY_FLAG
FILE_FORMAT
FILE_NAME
Exceptions
FILE_NOT_FOUND
Function Group
SFIL
Thanks
mahesh -
Mail to File - how to read the attachment file name from the subject.
I need to use the SHeaderSUBJECT's value in the receiver file adapter's variable substitution.
This is a Mail to File scenario without design part where the attachment file name comes in the subject of the mail.
I see the below in the dynamicconfiguration section. How can i retrive the value from dynamicconfiguration section to the filename.
<SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderSUBJECT">PlainAttachment.txt</SAP:Record>
</SAP:DynamicConfiguration>
Points will be rewarded.Try to use sthg like this in a UDF :
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().getStreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(http://sap.com/xi/XI/System/Mail,SHeaderSUBJECT);
String value = conf.get(key);
or in a JAVA mapping :
DynamicConfiguration dynConf = (DynamicConfiguration) param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey dynKey = DynamicConfigurationKey.create((http://sap.com/xi/XI/System/Mail,SHeaderSUBJECT);
String keyValue = dynConf.get(dynKey);
param is the map object from the execute() method of your mapping ...
Hope this helps
Chris
Edited by: Christophe PFERTZEL on Apr 23, 2008 11:34 AM -
InfoPath 2013: How to find the current file name?
Hello,
Is there any way to find the file name in the rule formulas when an existing xml file in a sharepoint form library is being edited in InfoPath? I am looking for a function that returns the current file name that is being edited.
Thank you,Hi,
According to your post, my understanding is that you want to get the current file name in the InfoPath form.
Here is a similar thread for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/a24f01d5-744c-4b75-b30d-3295311ab054/how-do-i-find-the-file-name-of-the-currently-open-infopath-form?forum=sharepointcustomizationlegacy
Best Regards
Dennis Guo
TechNet Community Support -
How to see the whole file names in finder column view?
Hi guys,
I like to use finder in column view. However, most of the times, the file names get trunked and I have to redim the column to see the whole names. Other day, without wanting to, I must have pressed some key combination, and the column got redim automatically, so I could read the whole file names. So, my question is if does anybody know how to achieve this?I don't know what "redim" means, but if you double-click the column separator, it becomes wide enough for the longest name. If you Option-double-click it, all columns become wide enough for the longest name in each column.
-
I want to show the pdf file name at the right bottow of the page for filing purpose, anybody knows anything?
I know it can be showed at the left bottom through adobe printer, but i need it to be at the right bottom.
thanks.The result is a UIWebView that displays a blank page. No errors occur in the UIWebView delegate method. The thing is that data has the correct length, in bytes, for the PDF I am trying to display, and I also get the pdf file in Library/Application Support/iPhone Simulator/4.3.2/Applications/ Does anyone have an idea as to what might be going wrong here or how I can better debug this problem?
Maybe you are looking for
-
Can't find video taken in photo booth?
I'm using OSX 10.7.5, and I took a video using photobooth last night and cannot find it easily. I was able to see it when I tried to attach it to an email, so I dragged it to the desktop, but now it won't play in quicktime. Any ideas?
-
I forgot the code for my iPhone to access the Home screen I do , please help me try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears
-
I'm wondering if there are any effects that would distort or zig-zag the last frame of a shot for a "passage of time" emulation. Or, is this something I'd have to do in Motion or After Effects? Or, could someone recommend other good effects to emulat
-
I have installed Java, but my computer still won't run it
I have installed Java, but my computer still won't run it
-
Doing JDBC over TCPIP from ICC's DPA system IX1 to any external systems is blocked by the SAP firewall. Due to SAP's internal security code, this type of traffic can't be allowed.