Export of applicationfiles - filename

Hello,
We want to export applicationfiles from DMS. This can be done easily with CV04N, and then use Distribution function. Applicationfiles are then written to the folder that is configured.
Problem is, the filenames generated by the system are meaningless (running number). The recipient of the files needs to know the relation between applicationfile and metadata (DIR data).
We would like to have the filename to be built up like this:
DOKNR_DOKAR_DOKTL_DOKVR_DAPPL_ddmmyyyy_nnnn (where nnnn is running number). We are aware there is no standard functionality for this.
How to achieve this (FM, BAPI etc)?
Will reward points.

Hi,
use BAPI_DOCUMENT_CHECKOUTVIEW2 to checkout the files. In table DocumentFiles you get a list of files (path and filename) back, which are checked out. Then you can rename the filename as you need.
regards
Iring

Similar Messages

  • Export to pdf filename (can of worms?)

    I know this is probably a perenial post, but I'm trying to unserstand the logic of not picking up the filename in PDF exports.
    Anyone know if this behaviour can be changed in CS4.
    Adobe: Can you please give us a button in the export dialogue to chose to export to the filename?  Its a small thing, a bit like my brain, when I'm trying to remember the filename of the document and trying to keep my exports in sync with my files.

    If it's really a thorn in your side, 4 quick keystrokes can serve as a workaround:
    When you're ready to export, press Ctrl+Shift+S to bring up the Save As dialog box, which will contain the current filename, preselected for you. Press Ctrl+C to copy it, then Esc to cancel the Save As operation and dismiss the dialog box.
    Now press Ctrl+E invoke the Export dialog box, and paste the filename in using Ctrl+V.
    Sounds like more than it is...only takes an extra 2 or 3 seconds:
    Ctrl+Shift+S
    Ctrl+C
    Esc
    Ctrl+E
    Ctrl+V

  • Adding zeros to filenames when exporting in Lightroom "Filename-001" "Fliename-002" etc?

    Hi, does anyone know if it is possible to add zeros before numbers when exporting files eg: "Filename-001" "Fliename-002" etc? The default setting is "Filename-1" "Filename-2" ect. The reason I want to have zeros in the number sequence is that certain software will display files in the wrong numerical sequence eg: "Filename-1" "Filename-10" Filename-11" etc and then "Filename-2" after "Filename-19". If zeros are added the files will always be displayed in the correct sequence "Filename-001" "Filename-002"... "Filename-009" "Filename-010" "Filename-011" etc.

    Just customize the filename using the template editor, and use the Sequence token set to the number of leading zeroes you want, as shown.

  • Csv-export with dynamic filename or include a report footer?

    Hi All,
    I have a question regarding the exported csv file contains a variable value as part of the file name.
    I read the following thread and example from Denes here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:39:2021865942697087
    How to generate Excel file name
    I created a test page per instruction and I could successfully duplicate the effort and verified the csv file contains the variable value if I click on 'export to CSV' from the link.
    However, the application I am working on is slightly different. Basically in page 1, there is a 'download' button which branches to the page 2. And in page 2, in Layout and Pagination section, the value for the Report Template is set to Export CSV. In REport Export session, I set enable CSV output to Yes and file name is: &P20_REPORT_DATE..csv. Of course, I also have a hidden item &P20_REPORT_DATE whose value gets set in page process before header. Note: in this case, the user never really see the search results on screen when they click on the 'download' button which is different from the above example.
    When I run the application, the file name simply doesn't show up correctly, instead it is &P20_REPORT_DATE.csv. It appears that the value of the P20_REPORT_DATE is never set.
    Also, is there any way I could include a report header or footer to indicate when the report is generated?
    Your help is greatly appreciated.
    Thanks,

    Hi all,
    I'm using Application Express 3.1.1.00.09.
    What I want to do is include the current date in the report filename. I created an item on Page 0 called P0_CURR_DATE, which is the value of "select current_date from dual". So, the filename I attempted to create is Vendor_&P0_CURR_DATE._report (notice the & and the . are included).
    When I click the report csv report link, the popup window shows file name as Vendor__report.csv (that's two underscore characters with no characters in-between).
    I think that I have figured out my problem. I originally created the item on Page 0, as "Display as Text (does not save state)". So, after I change the item to "Display as Text (saves state)", the csv report filename becomes Vendor_28-JUL-08_report.csv .
    I guess that's the pitfalls of being a newbie!
    Thanks to all who offered help and suggestions.
    Bryan
    Message was edited by:
    BryanG

  • Export Multi-artboard filename without prefix slash

    My mac OS version is OS X 10.10.2.
    Since i update the Illustrator from cc to cc2014,
    when i export multi-artboard images,
    the artboard image filename will be automatic added a slash mark in the first character position,
    like "/someprefix_artboardname.png"
    The correct filename should be"someprefix_artboardname.png".
    It won't happened in Illustrator CC.

    I have been using this method successfully for quite some time with these exact files, only in the last few days has this problem shown up.
    When I originally made the template in indesign, I imported the pdf, showed import options, and linked the pages to the same page number in the pdf. 1 to 1, 2 to 2, etc. My original thought was that this setting had been lost, so deleted the linked pdf and imported it again to try to get the 1 to 1 link. However, that did not change anything and I noticed that the page that shows up by itself in the pdf is almost always page 2, not page 1. If the page-to-page connection had been lost, all of the pages in indesign would be linking to page 1 as is the default behavior for linked pdfs.
    Also, I thought that the save issue would be on the illustrator side too, so I tried resaving it but that didn't work either. The only way that I can get the file to work is if I remake it completely and save over the old file.
    Now, I know that you're most likely thinking that this is an illustrator issue, but I don't think that it is one or the other, but rather both of them. The screenshots that I attached above are not the only way this error manifests itself. Sometimes the pdf looks right in acrobat, but once it is linked it displays with a transparency, shows only a few of the pages, or shows none at all.
    I'm probably going in circles here, but I cannot figure out which program is the cause of the error or if there are two different issues that are happening at the same time.

  • Aperture 2 - Project Export shows wrong filenames.

    Help!!! I have a big Problem. I have about 2000 Pictures in 3 Projects, which I like to transfer from my MacBook to my IMAC. The pictures are saved as seperates files and are not included in the project. When I imported the pictures from the camera in my MacBook, I choosed wrong filenames "NAME1 Date Counter". I changed those in Aperture on my Macbook in "NAME2 Date Counter". The Counternumber isn't the same like in the NAME1-Filenames.
    After that I did like everytime:
    - Copy the files to the IMAC
    - Export the projects to an external disk
    - Import the projects on me IMAC
    Normally, after that, I can connect the workcopys to the files on my IMAC. Has worked every time before.
    This time, I have the problem, that in the imported project, I have for each workcopy on my MacBook 2 workcopy's. One with NAME1 and one with NAME2, witch is the right one with all my work done. If I try to connect the NAME2-workcopy's to the files, the show'n filename in the workcopy is NAME1, which I can't connect with the NAME2-file on my disk. Sound's crazy, I know. On my MacBook all the filenames and the workcopys are OK. The problem only exists in the exported and imported projects.

    Yes it's a double back-up but there are some differences.
    The vault is easier as you don't have to think. Masters, versions and everything else are backed up.
    However to restore from the vault you have to restore your ENTIRE library you cannot restore projects.
    The vault does not back up referenced Masters. You have to do that yourself though it will back up any versions, book, web galleries etc that you make from those Masters.
    Export project will back up referenced Masters IF you select the consolidate Masters option.
    Personally I use the vault for back-up and the export project feature for moving from machine to machine.
    Hope this helps.
    M.

  • Export contacts as filename

    Hey guys,
    I wonder if someone is clever enough to suggest an applescript or an automator workflow to create a script file for each contact that I have. I have a script file that parses the filename and number to automate dialling through phoneamego:
    tell application "System Events"
              set myname to name of (path to me)
              set extension to name extension of (path to me)
    end tell
    if length of extension > 0 then
      # Make sure that `text item delimiters` has its default value here.
              set myname to items 1 through -(2 + (length of extension)) of myname as text
    end if
    #tell application "PhoneAmego" to dial number myname name "Test"
    #display dialog myname
    set contactname to text 1 thru ((offset of "-" in myname) - 2) of myname
    set contactnumber to text ((offset of "-" in myname) + 1) thru -1 of myname
    #display dialog contactname
    #display dialog contactnumber
    tell application "PhoneAmego" to dial number contactnumber name contactname
    I need an applescript grab the list of contacts and duplicate this file for each contact and name it by the contact name and number.  eg.Filename 1:  Bob Smith mobile -012345678, Filename2: Sarah Smit mobile -0123457800 etc.
    Thanks.

    Hello James,
    How to Export Your Mac OS X Mail Address Book Contacts to a CSV File...
    Export Your Mac OS X Mail Address Book Contacts to a CSV File
    To save your contacts from the Mac OS X Address Book to a CSV (comma-separated values) file, which lets you import the data to many other address books:
    • Download and install AB2CSV.
    • Open AB2CSV.
    • Select Mode | CSV from the menu.
    • To configure which fields will be exported, you can select AB2CSV | Preferences… from the menu and go to the CSV tab.
    • Now select File | Export from the menu.
    • Go to your Documents folder.
    • Click Choose.
    The exported address book contacts are saved to a file called "everyone.csv" in your Documents folder.
    http://email.about.com/od/macosxmailtips/qt/How-To-Export-Your-Mac-Os-X-Mail-Add ress-Book-Contacts-To-A-Csv-File.htm

  • Csv-export with dynamic filename ?

    I'm using the report template "export: CSV" to export data to a csv-file. It works fine with a static file name. Now, I would like to have a dynamic file name for the csv-file, e.g. "ExportData_20070209.csv".
    Any ideas ?

    Ran,
    This is a procedure, which will export result of any query into a flat file in your directory:
    PROCEDURE export_rep_to_bfile (
          p_query       IN   VARCHAR2,
          p_directory   IN   VARCHAR2,
          p_filename    IN   VARCHAR2 DEFAULT 'export_csv.csv',
          p_delimiter   IN   VARCHAR2 DEFAULT ';',
          p_coll_name   IN   VARCHAR2 DEFAULT 'MY_EXP_COLL'
       IS
          v_file            UTL_FILE.file_type;
          v_column_list     DBMS_SQL.desc_tab;
          v_column_cursor   PLS_INTEGER;
          v_number_of_col   PLS_INTEGER;
          v_col_names       VARCHAR2 (4000);
          v_line            VARCHAR2 (4000);
          v_delimiter       VARCHAR2 (100);
          v_error           VARCHAR2 (4000);
          v_code            VARCHAR2 (4000);
       BEGIN
          -- Get the Source Table Columns
          v_column_cursor := DBMS_SQL.open_cursor;
          DBMS_SQL.parse (v_column_cursor, p_query, DBMS_SQL.native);
          DBMS_SQL.describe_columns (v_column_cursor,
                                     v_number_of_col,
                                     v_column_list
          DBMS_SQL.close_cursor (v_column_cursor);
          FOR i IN v_column_list.FIRST .. v_column_list.LAST
          LOOP
             v_col_names :=
                       v_col_names || p_delimiter
                       || (v_column_list (i).col_name);
          END LOOP;
          v_col_names := LTRIM (v_col_names, ';');
          v_file := UTL_FILE.fopen (p_directory, p_filename, 'W');
          UTL_FILE.put_line (v_file, v_col_names);
          --for ApEx when used outside of ApEx
          IF htmldb_collection.collection_exists (p_collection_name      => p_coll_name)
          THEN
             htmldb_collection.delete_collection
                                                (p_collection_name      => p_coll_name);
          END IF;
          htmldb_collection.create_collection_from_query
                                                (p_collection_name      => p_coll_name,
                                                 p_query                => p_query
          COMMIT;
          v_number_of_col := 50 - v_number_of_col;
          FOR i IN 1 .. v_number_of_col
          LOOP
             v_delimiter := v_delimiter || p_delimiter;
          END LOOP;
          FOR c IN (SELECT c001, c002, c003, c004, c005, c006, c007, c008, c009,
                           c010, c011, c012, c013, c014, c015, c016, c017, c018,
                           c019, c020, c021, c022, c023, c024, c025, c026, c027,
                           c028, c029, c030, c031, c032, c033, c034, c035, c036,
                           c037, c038, c039, c040, c041, c042, c043, c044, c045,
                           c046, c047, c048, c049, c050
                      FROM htmldb_collections
                     WHERE collection_name = p_coll_name)
          LOOP
             v_line :=
                RTRIM (   c.c001
                       || p_delimiter
                       || c.c002
                       || p_delimiter
                       || c.c003
                       || p_delimiter
                       || c.c004
                       || p_delimiter
                       || c.c005
                       || p_delimiter
                       || c.c006
                       || p_delimiter
                       || c.c007
                       || p_delimiter
                       || c.c008
                       || p_delimiter
                       || c.c009
                       || p_delimiter
                       || c.c010
                       || p_delimiter
                       || c.c011
                       || p_delimiter
                       || c.c012
                       || p_delimiter
                       || c.c013
                       || p_delimiter
                       || c.c014
                       || p_delimiter
                       || c.c015
                       || p_delimiter
                       || c.c016
                       || p_delimiter
                       || c.c017
                       || p_delimiter
                       || c.c018
                       || p_delimiter
                       || c.c019
                       || p_delimiter
                       || c.c020
                       || p_delimiter
                       || c.c021
                       || p_delimiter
                       || c.c022
                       || p_delimiter
                       || c.c023
                       || p_delimiter
                       || c.c024
                       || p_delimiter
                       || c.c025
                       || p_delimiter
                       || c.c026
                       || p_delimiter
                       || c.c027
                       || p_delimiter
                       || c.c028
                       || p_delimiter
                       || c.c029
                       || p_delimiter
                       || c.c030
                       || p_delimiter
                       || c.c031
                       || p_delimiter
                       || c.c032
                       || p_delimiter
                       || c.c033
                       || p_delimiter
                       || c.c034
                       || p_delimiter
                       || c.c035
                       || p_delimiter
                       || c.c036
                       || p_delimiter
                       || c.c037
                       || p_delimiter
                       || c.c038
                       || p_delimiter
                       || c.c039
                       || p_delimiter
                       || c.c040
                       || p_delimiter
                       || c.c041
                       || p_delimiter
                       || c.c042
                       || p_delimiter
                       || c.c043
                       || p_delimiter
                       || c.c044
                       || p_delimiter
                       || c.c045
                       || p_delimiter
                       || c.c046
                       || p_delimiter
                       || c.c047
                       || p_delimiter
                       || c.c048
                       || p_delimiter
                       || c.c049
                       || p_delimiter
                       || c.c050,
                       v_delimiter
             UTL_FILE.put_line (v_file, v_line);
          END LOOP;
          UTL_FILE.fclose (v_file);
          IF htmldb_collection.collection_exists (p_collection_name      => p_coll_name)
          THEN
             htmldb_collection.delete_collection
                                                (p_collection_name      => p_coll_name);
          END IF;
          COMMIT;
       EXCEPTION
          WHEN OTHERS
          THEN
             IF DBMS_SQL.is_open (v_column_cursor)
             THEN
                DBMS_SQL.close_cursor (v_column_cursor);
             END IF;
             v_error := SQLERRM;
             v_code := SQLCODE;
             raise_application_error (-20001,
                                         'Your query is invalid!'
                                      || CHR (10)
                                      || 'SQL_ERROR: '
                                      || v_error
                                      || CHR (10)
                                      || 'SQL_CODE: '
                                      || v_code
                                      || CHR (10)
                                      || 'Please correct and try again.'
                                      || CHR (10)
       END export_rep_to_bfile;You may adjust this to get a report query, by doing the following:
    DECLARE
       x   VARCHAR2 (4000);
    BEGIN
       SELECT region_source
         INTO x
         FROM apex_application_page_regions
        WHERE region_id = TO_NUMBER (LTRIM (p_region, 'R'))
          AND page_id = p_page_id
          AND application_id = p_app_id;
    END;which will get your region query.
    ...and there you go.
    Denes Kubicek

  • Export - date in filename

    hi all,
    i need to export some tables in several days and i'd like to have file like common_date.dmp
    i'm in windows env
    any idea??

    type them in by hand.
    Sorry but that's what happens when you choose to use obsolete and deprecated tools.
    On the other hand if you use DataPump via the built-in DBMS_DATAPUMP package you can do anything you want.
    http://www.morganslibrary.org/reference/dbms_datapump.html
    There are export and import demos at page bottom.

  • Can the filename be printed on exported images?

    I'm using LR 3.5, and am wondering if I can have the filenames show on the images when I export them.  If so, how do I make that happen?  I am already watermarking a copyright script, which I suppose I could change to include the image name, but that would be pretty tiresome to do.  I assume there is an easy way to do this that I just haven't found.  Thanks!

    There is one native sort of alternative: You do not literally export the images, but print them to jpg in the Print module.
    Select "Single image / Contact Sheet", set a watermark, maybe also an identity plate, plus tick the Photo Info and choose "Filename" (or "Caption" or "Title" instead for a slightly different use case).
    Don't get confused: you need to choose a file name for the print-export, but the filename printed on each image will be the original one.
    Cornelia

  • Adding sysdate to filename  when exporting to csv in Apex V3.0.1 using IE6

    Hi,
    I have created an application item (AI_DTTIME), together with an application computation that fires on before-header that is set-up as follows:
    TO_CHAR(sysdate, 'DDMMYYYY HH24:MI') ||'.'
    Within the report addtributes on a page under "Report Export", within the filename, I assigned &AI_DTTIME.
    When I go to test it by clicking on the link label, it seems to assign a number to the filename, such as 40.csv. Each time I clink on the link label, the filename value simply increments to the next value, i.e 41.csv
    Can anyone see what I may be doing wrong or how to apply the sysdate to a filename under "Report Export".
    Thanks.
    Tony.

    Hi Tony, Hi Andy
    I have a similar functionality to achieve by adding sysdate of filename when exporting to csv, adding wthr this csv is in dev or prod,URL of this report and it is powered by xyz company
    I have created an application item same as andy did and the application computation with computation item AI_DTTIME, computation point - Before Header, computation type - static assignment and computation - TO_CHAR(sysdate, 'DDMMYYYY HH24MI') ||'.'
    After that in report-export filename i added the address of my application item i.e &AI_DTTIME
    but when i am trying to export my report to csv the header is coming with " TO_CHAR(sysdate,'DDMMYYYY HH24MI')_' "
    Can you suggest where i am wrong?
    Regards
    Adi

  • Changing the actual filename in iPhoto library?

    I am now finally starting to sift through the largest of my iPhoto libraries - tagging them by company and town, etc.
    When I was in the initial tagging phase (using a smart album showing me all those that had no tags), I noticed one picture with Greenbush in the filename seemed out of place in the date order and a check against the map showed that it should have been named Neche instead. I changed the title accordingly, added the proper tags, and went on to the next picture.
    Now, with all the pictures tagged, I am going back through them all, using a smart album to show the tags one by one, so I can weed out duplicates, flag ones needing retakes, deleting those "why?" pictures, etc.
    I typed in Green expecting to pull up Green Valley (and Greenbush in the process) and iPhoto pulled up the picture I expected to see AND the picture whose title I changed - there was nothing that I could see that would cause it to come up under Greenbush instead of Neche, but it still was. I had to export the picture to see that changing the title does NOT change the filename. ¿håå?
    Is there a way to safely change the actual filename within iPhoto without having to export, change the filename, and reimport? (which is what I did to fix the picture)

    I had to export the picture to see that changing the title does NOT change the filename. ¿håå?
    That is correct - it is the way it works
    Is there a way to safely change the actual filename within iPhoto without having to export, change the filename, and reimport? (which is what I did to fix the picture)
    No - the file names are immaterial while your photos are in the iPhoto database - you have no need to look at the files and should not be - only when you take them out (export does it matter or can you change them)
    LN

  • Af:fileDownloadActionListener picks wrong filename for the first time after row selection.

    Hi,
    I am using Oracle Jdeveloper 11g release 1. In one of my jspx pages i have a table, i can select one of the row and click on a button which invokes fileDownloadActionListener. The code of jspx is as below:
    <af:commandMenuItem text="#{coregccomplianceuiBundle.MENU_EXPORT}"
                                        id="CS19" partialSubmit="true"
                                        actionListener="#{viewScope.core_gccompliance_cs_librarybean.validateExport}"
                                        partialTriggers="CSftLib"
                                        disabled="#{viewScope.core_gccompliance_cs_librarybean.exportDisabled}">
    </af:commandMenuItem>
    <!--This button is set hidden, which is used to deal with the download job.
        The Export button on the page only does the validation. (whether it's a system defined standard)-->
      <af:commandButton text="#{coregccomplianceuiBundle.BTNEXPORTHIDDEN}" id="csl_csExportHidden"
                                          clientComponent="true" visible="false"
                                          partialSubmit="false">
    <af:fileDownloadActionListener contentType="application/x-download" 
                                          method="#{viewScope.core_gccompliance_cs_librarybean.handleExport}"
                                          filename="#{viewScope.core_gccompliance_cs_librarybean.fileName}"/> 
    </af:commandButton>
      /** force the ExportHidden Button to do export */
        function csExportHandler(event) {
            var exportCmd = AdfPage.PAGE.findComponent("emT:CS4:csl_csExportHidden");
            var actionEvent = new AdfActionEvent(exportCmd);
            actionEvent.forceFullSubmit();
            actionEvent.noResponseExpected();
            actionEvent.queue();
    The bean methods used in above block are as below:
    public void validateExport(ActionEvent actionEvent) {
           // checks if entity is system defined and shows error popup if it is .
            if (checkIsSystem())
                return;
            //Handle the export    
            AdfUtil.addScript("csExportHandler()");
    public void handleExport(FacesContext context, OutputStream out) {
            ComplianceLibraryAMImpl am = getDataController();
            HttpServletRequest request =
                (HttpServletRequest)context.getExternalContext().getRequest();
            Locale locale = NLSUtil.getClientLocale(request);
            ResourceBundle rb =
                ResourceBundle.getBundle("oracle.sysman.core.gccompliance.view.CoreGccomplianceUiMsg",
                                         locale);
            PreparedStatement st =
                am.getDBTransaction().createPreparedStatement("commit", 1);
            Connection conn = null;
            boolean isAgentSideCs = false;
            try {
                conn = st.getConnection();
                RichTable oTable = getCsTable();
                fileName = "ComplianceStandard.xml";
                List<Raw> exportGuids = new ArrayList<Raw>();
                for (Object opaqueFacesRowKey : oTable.getSelectedRowKeys()) {
                    oTable.setRowKey(opaqueFacesRowKey);
                    Object o = oTable.getRowData();
                    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)o;
                    exportGuids.add((Raw)rowData.getRow().getAttribute("CsGuid"));
                    int csType = ((oracle.jbo.domain.Number)rowData.getRow().getAttribute("CsType")).intValue();
                    if(csType == 4)
                        fileName =
                                (String)rowData.getRow().getAttribute("CsDname") + ".zip";
                        isAgentSideCs = true;
                    else
                        fileName =
                                (String)rowData.getRow().getAttribute("CsDname") + ".xml";
                    if(((Integer)rowData.getRow().getAttribute("IsSystem")).intValue() == 1){
                        throw(new ParseException(50));
                if (exportGuids.size() > 1)
                    fileName = "Compliancestandard_list.xml";
                RAW guid = new RAW(exportGuids.get(0).toString());
                if(isAgentSideCs)
                    getDataController().exportStandardContent(conn, out, guid);
                else
                    CsExport csexport = new CsExport(false);
                    csexport.doCsExport(conn, guid, false, out);
            } catch (ParseException e) {
                String errMsg = "";
                String errHdr = "";
                if(e.getStatus() == 50){
                    errMsg = rb.getString("ERRMSG_ISSYSTEMENTITY_EXPORT");
                    errHdr = rb.getString("ERRHDR_ISSYSTEMENTITY_EXPORT");
                else{
                    errMsg = rb.getString("ERRMSG_EXPORT_CS");
                    errHdr = rb.getString("ERRHDR_EXPORT_CS");
                AdfUtil.showMessageDialog(null, AdfUtil.MESSAGE_TYPE.ERROR, errHdr,
                                          errMsg, false, null);
                throw new RuntimeException(e);
            } catch (SQLException e) {
                throw new RuntimeException(e);
            } finally {
                JDBCUtil.close(st);
            MimeUtil mimeUtil = new MimeUtil();
            mimeUtil.downloadFile(context, fileName);
            try {
                out.flush();
                out.close();
            } catch (IOException e) {
                throw new RuntimeException(e);
    Class MimeUtil:
    public void downloadFile(FacesContext context, String fileName) {
            HttpServletResponse httpServletResponse =
                (HttpServletResponse)context.getExternalContext().getResponse();
            HttpServletRequest httpServletRequest =
                (HttpServletRequest) context.getExternalContext().getRequest();
            String unicodeFileName = fileName;
            String agent = httpServletRequest.getHeader("USER-AGENT").toLowerCase(Locale.US);
            boolean isIE = false;
            if (null != agent && -1 != agent.indexOf("msie"))
                isIE = true;
            //encode the output file name to support NLS
            unicodeFileName = MimeUtil.encodeFileName(fileName, isIE);
            httpServletResponse.setHeader("Content-disposition",
                                          "attachment;filename=\"" + unicodeFileName +
    httpServletResponse.setContentType("application/x-download");
            context.responseComplete();
            httpServletResponse.setContentType("application/x-download");
            context.responseComplete();
    Now when i come to the page for first time and select a row and click on Export then the filename that gets shown in save file dialog is incorrect (it shows partial adf taskflow name) , but when i select the row again by clicking on any other row and click export it shows correct filename i.e. selectedRowName.zip or .xml according to type of row selected.
    Can anybody suggest what am i missing?

    difficult to tell like this.but better you debug your code then you can get where you getting filename wrong.

  • Want to change filename

    Recently switched to Mac & iPhoto and discovered that the new photos I've been importing and renaming (or so I thought) in iPhoto are not really changing the filename. I wish to change the filename (not just the title via iPhoto) so that my photo naming system is consistent for the new photos I'm managing in iPhoto with the thousands of photos/files I have well organized from my PC days.
    I read the following on one of the forums:
    "Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    "You can add a title to the photos in iPhoto, but there is no way to rename a file in iPhoto. What you can do is export the file - (Share -> Export) and use the Title as filename. It's an option on the Export dialogue.
    "Filenames mean nothing in iPhoto. They simply don't matter. The key to using the app is to remember that you do all your work in the iPhoto Window and don't access the files in the iPhoto Library Folder ever."
    So, I haven't made any changes yet, but am concerned because I really don't want my new photos' filenames NOT to be the DSCN or IMG_ style nomenclature but rather something more descriptive as in my former naming system. Can anyone tell me how to safely change the filename so that iPhoto doesn't get confused. Ideally, this would also be some kind of batch process.
    Message was edited by: Valerie Courtney

    Welcome to the Apple Discussions.
    inding a photo to upload via the finder requires first locating the photo, viewing the info, writing down the file name and then searching via the Finder.
    That's totally unnecessary. There is no reason one needs to use the Finder to get a photo for use outside of iPhoto. The following is from one of Terence Devlin’s posts on file access for use outside of iPhoto. It’s the definitive treatise on the subject.
    Since iPhoto 7 (iLife 08) the old iPhoto Library Folder is now a Package File. This is simply a folder that looks like a file in the Finder. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    Accessing the iPhoto Library Folder directly has never been supported in any version of iPhoto.
    There are many, many ways to access your files in iPhoto:
    For Users of 10.5 and later
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    For users of 10.4 and later ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and later:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. Show File: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    All of the above are a: faster and b: Safer than rooting around in the old Library Folder.

  • Export Internal Table to XML in Background

    Hi
    I need to export a internal table into xml file in background using open dataset. The file is getting created but i am not able to open the file using IE/XML editor . When i open the file uisng wordpad i can see some charcters at the end of file which prevents it from opening in xml editor. if i delete the characters(box like) and save the file. i am able to open the file
    When i downalod the same internal table via frontend using ws_downlod it works pefectly. no junk charcters are appended in the end. and hence files opens perfectly
    below is the extract of program
    START-OF-SELECTION.
       PERFORM get_data.
       PERFORM create_xml.
    FORM get_data.
       REFRESH accesos.
       CLEAR accesos.
       MOVE: '45050' TO accesos-socio-numero,
                     'MOISES MORENO' TO accesos-socio-nombre,
                     '0' TO accesos-socio-reposicion.
       APPEND accesos.
    ENDFORM.
    i am using the following function modules
    CALL FUNCTION 'SDIXML_DATA_TO_DOM'
            EXPORTING
                 name         = 'ACCESOS'
                 dataobject   = accesos[]
            IMPORTING
                 data_as_dom  = l_dom
    CHANGING
                 document     = m_document
            EXCEPTIONS
                 illegal_name = 1
                 OTHERS       = 2.
           CHECK NOT l_dom IS INITIAL.
    w_rc = m_document->append_child( new_child = l_dom ).
    CALL FUNCTION 'SDIXML_DOM_TO_XML'
    EXPORTING
    document      = m_document
    IMPORTING
    xml_as_string = w_string
    size          = w_size
    TABLES
    xml_as_table  = it_xml
    EXCEPTIONS
    no_document   = 1
    OTHERS        = 2.
    LOOP AT it_xml INTO xml_tab-d.
         APPEND xml_tab.
       ENDLOOP.
    The following syntax for open datset which does not work
      lv_physcial_file = '
    hdat03\test.xml'.
    OPEN DATASET lv_physcial_file IN BINARY MODE   FOR OUTPUT MESSAGE l_msg.
       LOOP AT xml_tab.
         TRANSFER xml_tab TO lv_physcial_file.
       ENDLOOP.
    The ws_download function works
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
                   BIN_FILESIZE = W_SIZE
                   FILENAME = GK_RUTA
                   FILETYPE = 'BIN'
    TABLES
                   DATA_TAB = XML_TAB
    EXCEPTIONS
                   OTHERS = 10.
    many thnaks

    Hi Chetan,
    Can you just try changing the syntax to the following, I not sure if that will help but just try and see.
    OPEN DATASET  lv_physcial_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    Regards
    Mohamed

Maybe you are looking for

  • Text getting cleared after throwing OAException message

    Hi, I have a message text input item and a drop down if user does not enter anything in either and hits button then I am throwing a OAException with a message. The problem is each time the user enters let us say some text in the drop down and does no

  • Updating data outside a foor loop

    I hope someone can help me with the following problem. I collect data into an array with a for loop. The data is visualized in an intensity graph. All this works fine. I would like to update the graph line by line as the for loop runs. I managed this

  • Laserjet 3050 with MacBook Pro

    I saw another support message say that the HP laserjet 3050 is no longer supported on the Mac. Is this true? After a recent Mac update I have been unable to print. The printer dialog just says "Waiting for printer to become available." And it never b

  • Balance Sheet template as per Profit Centers

    Hi, Is it possible to create a Balance Sheet template as per profit centers? Just like we have th cost center hierarchy.... Please comment. Regards

  • How do I set up wireless printing of my Officejet Pro 8500 on a laptop with Windows 8?

    How do I set up wireless printing from my all in one Officejet Pro 8500 printer to my laptop with Windows 8?