How to let user download multi files at the same time in WebDynpro ABAP?

hi all:
As you know, WeyDynpor has provided upload/download UI element, but it seems that it only support one file upload/downlaod at the same time.The following is the API method to download one file in Webdynpro:
    cl_wd_runtime_services=>attach_file_to_response(
     EXPORTING
       i_filename      = lv_filename
       i_content       = lv_content
       i_mime_type     = lv_mine_type
       i_in_new_window = abap_true
       i_inplace       = abap_false
*      EXCEPTIONS
*        others          = 1
but if when use click one button, we want to provide user a html file plus 2 icons files which are used as this html file's resource file, then how to let user download these 3 files together at the same time?
one simple way is calling the download api (cl_wd_runtime_services=>attach_file_to_response) 3 times,
but it is very ugly that three popup windows are shown to let user select every file's download path, which is unaccepted.
So anyone know more convienient way to handle it?
thanks.

Hi,
I suggest you to zip the files and attach it to the response. Do the add file part for each of your files
     "References
     DATA lr_zip TYPE REF TO cl_abap_zip.
     "Variables
     DATA lv_zip_xstring TYPE xstring.
     DATA lv_zip_name TYPE string.
     DATA lv_file_content TYPE xstring.
     DATA lv_file_name  TYPE string.
     "Create instance
     CREATE OBJECT lr_zip.
     "Add file
     lr_zip_attachments->add(
       EXPORTING name = lv_file_name
              content = lv_file_content ).
     lr_zip_attachments->save( RECEIVING zip = lv_zip_xstring ).
     "Attach zip file to response
     cl_wd_runtime_services=>attach_file_to_response(
       EXPORTING i_filename      = lv_zip_name
                 i_mime_type     = 'ZIP/APPLICATION'
                 i_content       = lv_zip_xstring ).

Similar Messages

  • Please help me out -How to share a single indd. file at the same time?

    Is there any any option for two users to work on a single indd. file at the same time. (Just like working on a shared file in Microsoft Excel).
    Note both make changes at the time on different pages.
    To save time...

    Another option, if the file is a large mupltiple page design, is to divide the document into chapters or sections. Save each section as a separate InDesign file and then combine them using a book (.indb). File > New > Book...
    Different users could edit the individual sections or chapters, and then when all is ready to go, the book can be used to package the documents, export to PDF, etc.
    Not very efficient for small documents, but it can make life easier for long documents.
    HTH
    -mt

  • How do I interpret multiple footage files at the same time in AME CC?

    I have about 50 ProRes QT files that I need to transcode. But AME CC is seeing them as Square and I need to set them all as D1. When I select all my files in the Qeue and go to interpret footage, the option is grayed out.
    I'm running on Mac OS X 10.7 if that helps at all.

    Look in the Files panel
    Click here

  • How to let user download a file from server.

    Hello everyone!!!
    I am developing a website.I want users to download file(say mp3) from my website.
    How can I do this?
    I am using jsp with Tomcat server.
    Is this possible using only html?
    Pls reply immediately.
    Looking forward for help.
    Thanks in advance.

    Actually it s is working only for default directory.if the file is in another directory,is is not working. Then you must have messed up something.
    (I hope the clarity, the usefulness and the level of details of my answer match those in the question.)

  • How do I "Put" multiple html files at the same time?

    I did a global find and replace for a broken link.  But I don't see how to "publish" all the changed pages using the "Put" command?
    Dreamweaver MX 2004.

    Look in the Files panel
    Click here

  • Two users open same file at the same time... how is this possible?

    I am the Creative Director for a magazine. All the people in my team are using Macs with Leopard and Indesign CS3. I didn't know this was possible, but it is happening to us. Two people can open the same Indesign file at the same time. When this happens, the file becomes corrupt and we can't work on it again. We don't use Version Cue. We probably should, as well as In Copy, but we just haven't had the time to learn to use them. This problem started about three months ago and we have not been able to determine how this is possibe or find any information why it is happening, or how to stop it from happening. Help! If anyone out there has any idea... we are desperate.

    My hunch would be to suspect the server - it's probably not handling file locking correctly.
    Here's what I'd image I'd try - but be aware, I am writing down stuff from memory, and I cannot guarantee the info is completely accurate - but I hope it might give you some pointers.
    - If the server is currently providing the AppleShare Filing Protocol (or whatever it is called - acronym is AFP), you could try to connect using that.
    Go to the Finder, and use the Go - Connect to Server... menu item and enter the server's IP address, prefixed with afp:// - e.g. if the server is on IP address, say '192.168.1.120'
    In that case, I'd try connecting to
    afp://192.168.1.120
    (I am inventing this IP address for the sake of argument - don't simply copy this number. Ask the IT guy what the server's IP actual address is. There are other ways to connect, and using the IP address is very crude and 'primitive' but it also cuts a few complexities out of the picture).
    If this does not work, it might mean that the server is not providing the AFP protocol - in that case, ask the IT guy if he can turn it on for you.
    I don't know much about what Microsoft's various product names mean (e.g. what exactly is included in a 'Microsoft small business server' - no idea), but there's a good chance there is a module available that is probably called 'Services for Macintosh' which can be installed.
    I've worked around Microsoft servers before, and if I remember correctly, 'Services for Macintosh' is not typically installed by default - it's part of the product, but it is not installed unless explicitly requested during install.
    The IT guy will need to get out the Microsoft server's install disks and install the optional Services for Macintosh, then turn it on. Once that is done, the above 'magical incantation' afp://yadiyadi... should work.
    If it does, make sure _everyone_ in the team uses the same method to connect to the server, and then try again - there's a good chance the server will now honor the file locking and warn the second user who attempts to open the document.
    - If the server is already using the AppleShare Filing Protocol, and you're already doing some variation of the above, and the whole point I made above is moot, try connecting using the SMB protocol instead. So, in the finder use 'Go - Connect to Server...' then use
    smb://192.168.1.120
    (replacing 192.168.1.120 by your server's real IP address).
    Again - make sure _everyone_ is using the same method to connect before trying whether the files are now locked properly.
    The AFP and SMB protocols are the two most common protocols that Macs can use to connect to a Microsoft file server.
    Now, the third possible cause: often people don't realize there are possibly multiple ways to connect to an MS server, and so people go browsing the network from their Macs and 'grab' whatever entry they see first.
    So what often happens is that user 'A' is actually connecting using SMB, and user 'B' is connecting using 'AFP' and in theory that should all work, but in practice sometimes things go wrong.
    My recommendation is to make sure that all users in the Mac workgroup connect in the exact same way - so there's no mix of SMB and AFP protocols being used.
    To verify which protocol is used, right-click or control-click on the volume name after it has been mounted on the Mac, and use the Get Info... menu item - the info dialog should tell you which protocol is being used. The easiest to see the mounted volumes is to go into the Finder Preferences, and under 'General' make sure it shows mounted volumes on your desktop. Then you can simply right-click the volume on the desktop to do Get Info...
    Hope that helps!
    Cheers,
    Kris

  • How to upload multiple .CSV files in the same time.

    Hi Legends,
    Can anyone please help me to resolve my issue?
    This is very urgent and critical.
    Description:
    We have two users.1)edw_user_dump
    2)prd_udm.
    We need to upload the xx.csv file at the same time for these two users in oracle forms.
    we have differentiated .csv file name based on the user names.
    the main problem is in the sql loader command the xx.csv file name is created but the data is not captured in the server (kentucky) .
    Below is my code for the upload.
    -- To delete the Part_Mast.log file from the client
    DECLARE
    pid WEBUTIL_HOST.PROCESS_ID;
    v_result PLS_INTEGER;
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    BEGIN
    v_result := WEBUTIL_HOST.Get_return_Code(pid ) ;
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    END;
    DECLARE
    l_success boolean:=FALSE;
    l_bare_filename varchar2(100):=NULL;
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    BEGIN
    -- Delete the content of the log and bad file
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    --host('cat /dev/null > /tmp/Part_Mast.bad');
    -- Upload the data file to Application Server
    l_bare_filename := v_username||'_'||substr(:FIC_SOURCE,instr(:FIC_SOURCE,'\',-1)+1);
    l_success := webutil_file_transfer.Client_To_AS_with_progress
    (clientFile => :FIC_SOURCE
    ,serverFile => '/tmp/'||l_bare_filename
    ,progressTitle => 'Upload to Application Server in progress'
    ,progressSubTitle => 'Please wait'
    ,asynchronous => false
    ,callbackTrigger => null
    IF l_success THEN
    NULL;
    ELSE
    null;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log');
    host('cat /dev/null > /tmp/EDW_CF_IO_UPLOAD.bad');
    end;
    BEGIN
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    v_password varchar2(30) := GET_APPLICATION_PROPERTY(PASSWORD);
    v_connect_string varchar2(30) := GET_APPLICATION_PROPERTY(CONNECT_STRING);
    a_host varchar2(500);
    BEGIN
    a_host :='/tmp/'||v_username||'_'||'"CF615 IO Upload.csv"';
    host('sqlldr '||v_username||'/'||v_password||'@'||v_connect_string||' '|| 'control=/home/edw_bis/ctl/GLB_CF_IO_UPLOAD.CTL'||' '|| 'DATA=a_host'||' '|| 'LOG=/tmp/'||v_username||'_'||'EDW_CF_IO_UPLOAD.log SKIP=1 errors=200000 DIRECT=FALSE');
    dbms_output.put_line(a_host);
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    EXCEPTION
    WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    end;
    DECLARE
    al_id3 ALERT;
    al_button Number;
    BEGIN
    edw_user_dump.SANM_PRC_MERGE_CF_IO_UPLOAD(:global.v_plsql_res,:global.v_ins_rec,:global.v_upd_rec);
    IF NVL(:global.v_plsql_res,0) = 0 and (:global.v_ins_rec !=0 OR :global.v_upd_rec != 0 ) then
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Completed Successfully!'||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
    al_button := SHOW_ALERT( al_id3 );
    ELSIF (:global.v_plsql_res IN(-1,0) or :global.v_plsql_res > 0) and (:global.v_ins_rec =0 and :global.v_upd_rec = 0 and :global.v_del_rec =0 ) then
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,' Process Failed. Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec);
    al_button := SHOW_ALERT( al_id3 );
    ELSE
    al_id3 :=FIND_ALERT('ROWINS');
    SET_ALERT_PROPERTY(al_id3,alert_message_text,'Please Download the Log File '||CHR(10)||' Rows Failed : '||:global.v_plsql_res||CHR(10)||' Rows Inserted : '||:global.v_ins_rec ||CHR(10)||' Rows Updated : '||:global.v_upd_rec );
    al_button := SHOW_ALERT( al_id3 );
    END IF;
    EXCEPTION WHEN OTHERS THEN
    RAISE Form_Trigger_Failure;
    END;
    DECLARE
    v_username varchar2(30) := GET_APPLICATION_PROPERTY(USERNAME);
    begin
    host('cat /dev/null > /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    host('rm -rf /tmp/'||v_username||'_'||'"CF615 IO Upload.csv"');
    end;
    Thanks in advance!
    Thanks,
    Madhusudhanan

    Madhusudhanan,
    A couple of observations. First; always list your exact Forms version (eg; 10.1.2.0.2 not 10g R2). In most cases, the solution is different depending on the Forms version. Second; why must you use Forms to kick off a SQL Loader process? This is a server-side process and should be initiated by a server side process. If you absolutely must use Forms to kick off the process, again we need your Forms version in order to offer any solutions. Based on your code sample, I can asusme you are at least using Forms 9i becuase you are using WebUtil.
    Is your Database and Application Server the same physical computer? If they are not, this would explain why your HOST command isn't working because HOST runs against the Application Server not the Database server.
    Third; have you considered using and External Table (if your RDBMS version supports them) for each of the files you are attempting to upload? In this instance, it would be helpful to know your RDBMS version as well. External Tables can be a little frustrating to set up the first time, but as with any new construct you use - it gets easier the more you use it.
    Fourth; are you getting any errors in your log file(s)? If so, what are the errors? Please list the full error message if you have one.
    Finally, with respects to your statement:
    Posted: Mar 18, 2011 2:30 PM - Madhu This is very urgent and critical.>
    You have to understand that forum contributers are all volunteers - this is not our full-time job. If your issue is truely urgent I suggest you open a Service Request (SR) with Oracle Support! ;-)
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How can  I  restrain the user login portal once, in the same time ???

    Hi
    I need to restrain the user can't repeat to login portal ....
    to reduce portal loading
    How can I restrain the user login portal once, in the same time???
    Which attributs in Identity Manager or amconsole I can do it to restrain the user ??
    tks

    Does your portal support anonymous access? If so, make sure you are using the authlessanonymous mode. This mode only creates one session that is shared for all anonymous users. This is much more efficient than anonymous access, which creates a session for each anonymous user.
    I have no other recommendation for limiting users to a single login. In general, web applications do not behave like this. What if a user closes their browser without logging out? Does the user have to wait until the session times out in order to log back in again?
    The same thing is true for users that are mobile. If a user leaves their office without logging out and then attempts to log in with a laptop in the conference room, then access will be denied in your implementation. Users do not expect this type of limitation being built into the system.
    If you are having problems scaling, then you need to look at your architecture and perhaps add some more resources. Also, make sure you are making efficient use of the authlessanonymous access mode as stated above.
    - Jim

  • How to  restrain the user login portal once, in the same time??

    Hi
    I need to restrain the user can't repeat to login portal ....
    to reduce portal loading
    How can I restrain the user login portal once, in the same time???
    Which attributs in Identity Manager or amconsole I can do it to restrain the user ??
    tks

    Does your portal support anonymous access? If so, make sure you are using the authlessanonymous mode. This mode only creates one session that is shared for all anonymous users. This is much more efficient than anonymous access, which creates a session for each anonymous user.
    I have no other recommendation for limiting users to a single login. In general, web applications do not behave like this. What if a user closes their browser without logging out? Does the user have to wait until the session times out in order to log back in again?
    The same thing is true for users that are mobile. If a user leaves their office without logging out and then attempts to log in with a laptop in the conference room, then access will be denied in your implementation. Users do not expect this type of limitation being built into the system.
    If you are having problems scaling, then you need to look at your architecture and perhaps add some more resources. Also, make sure you are making efficient use of the authlessanonymous access mode as stated above.
    - Jim

  • How do i go about deleting a large number of files at the same time?  where's the easiest place to do it?

    how do i go about deleting a large number of files at the same time?  where's the easiest place to do it?

    A bit vague as to what you intend, but the simple answer is to select all the files you want to delete then either drag to the Trash or CTRL- or RIGHT-click on the selection and choose Move to Trash from the contextual menu.

  • How do I get an SVG file to the same color profile as my illustrator file (U.S. Web Coated (SWOP) v2 and what would be the correct color profile for printing on a shirt?

    How do I get an SVG file to the same color profile as my illustrator file (U.S. Web Coated (SWOP) v2 and what would be the correct color profile for printing on a shirt?
    Thank you.

    dadanas wrote:
    Hi Simcah, I have a similar problem. Have you found out any solution?
    thanks, dan
    You need to ask the printing service provider. Dealing with color totally depends on the printing process involved and of course the machines used.

  • How to Set JFilechooser to show file with the same extension in the filetyp

    How to Set JFilechooser to show file with the same extension in the filetypes??
    help

    I also don't understand, but if you mean how to display only files with a certain extension in your JFileChooser then you should have a look at the JFileChooser API:
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFileChooser.html
    The introduction shows an example of how to do that.

  • How can I open multiple files as Photoshop Raw files at the same time for Photoshop CS6 extended on a PC?

    I am trying to open 20-25 files at the same time as Photoshop Raw [*.RAW] files.
    The only way I can open multiple files is if i leave the file type as All Formats. When I change it to  Photoshop Raw [*.RAW], the files a deselected.

    Use bridge. Select all the files then press ctrl-r or cmd-r to load the selected files into camera raw.
    If you try this in Photoshop use File>Open As then for file type choose camera raw. (I have not tested open as for opening multiple files)

  • How can I unlock numerous files at the same time (i.e. photos) so I can make changes (rotate etc)?

    Im using Lion on a MacBook Pro 15in (just under two years old) and I would like to know if I can lock numerous photo files at the same time so I can make changes to them. At the moment when I select an entire folder to go through and make changes, ie rotate in Preview, I am told with each photo that I have to unlock it. I am going through photos I took of archival material and have nearly 5000 photos to adjust and make changes to. This small step is taking up a lot of time.
    I realise there will probably be a common 'sense' answer to this but it alludes me at the moment so any help would be appreciated.
    Thanks

    Try this: https://addons.mozilla.org/en-US/firefox/addon/fox-splitter/?src=ss
    OR, open a second Firefox window (''Firefox button > New tab > New Window'' or ''Ctrl+N''), load the second site, resize windows side by side.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *'''''Shockwave Flash''''' (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How to play more than 2 audio at the same time in a page

    I worked for interactivity book's page in Hype and I inserted two audio in a page
    One is background music played when page opend, Other is effect audio that played when touch the object.
    i added this widget in ibooks author.
    In ibooks-author on mac, i can hear two sound well. but in ibooks on ipad i got the problem..
    When i touch the object and play effect sound, background audio is stopped.
    Moreover, after effect sound ended then bgm is not played.
    i hope to hear two sound at the same time on ibooks, if not, play bgm continue after effect audio over.
    plz answer this problem.. T.T

    I got the same problems! I can't play multi audio at the same time. Would you mind letting me know the detail of how to deal with this problems.
    Regards,

Maybe you are looking for

  • String lenght of a multy-byte string

    Hi Friends, I am working with multy-byte(Korea) Strings. What I am doing is I am looking for the presence of an english substring in a multybyte string, find out the position of this substring using java indexof ()method.I am facing a problem here. F

  • Outlook Connector User DN Pattern Syntax

    Hi, Please let me know if I have posted this in the wrong place. We have recently setup Comm Suite 5 and are in the process of testing the Sun Java System Connector for Microsoft Outlook. We are trying to use the option in the Deployment Configurator

  • Recommenadation for small external drive

    I travel a fair bit, and am looking for a small (100-160 GB) drive that I can use for editing movies when on the road. I do have a larger external 250 GB firewire drive at home, but it's a bit cumbersome for travel purposes. Is there a small external

  • ASM instance deletion and converting to RAC

    My RAC setup is little complex, i created 2 RAC servers, after that i created 2 new RAC servers, but the shared disk is same, in old RAC i created RAC ASM, which is running fine, in new i make want to create new RAC ASM instance, but when i got to db

  • Version management in scripts

    Hello experts,       can any body tell me how can we see the previous versions in scripts like in se38> utilities> versionmanagement.        in se71 utilities--> versions is there but when click on that one im not getting any previos versions.