File Download - Resource Type

Hi All,
            My requirement is to choose a file of a specifc type only say xml . Only xml files should be visible others should not be visible.
I searched in forums but i didnot get apt solution.
Please anyone help me to solve this problem.
Regards,
Jude.

Hi,
Try this solution
IPrivateUserDataView.IUploadFileInformationElement element = wdContext.currentUploadFileInformationElement();
          if (element.getFileResource() != null)
               IWDResource resource = element.getFileResource();
               if (resource.getResourceType().getFileExtension().equals("xls"))
                            //Put your condition here
                    //allowed operations

Similar Messages

  • File Downloading unKnow type

    Hi All
    i have written an application in webdynpro for upload and download
    if i download .zip and .exe files it is saving as unknow type
    user has to choose the open with option then select the file type.
    How to avoid  this
    Pls provide me with your inputs
    Thanks & Regards
    Karthi D.

    >
    Tony Isaac wrote:
    > Hi,
    >
    > If you are trying with IWDResource Class , then you can try with this piece of code to download.
    >
    > In this example I have used CSV , instead you can try with any other types as mentioned.
    >
    >
    > FileInputStream fis=new FileInputStream(F);
    > IWDResource res=WDResourceFactory.createCachedResource(fis,"File_Name",WDWebResourceType.getWebResourceType("CSV","CSV"),true);//correct
    > fis.close();
    > fos.flush();
    > res.download();
    >
    > Thanks and Regards,
    > Tony Isaac.
    Hi Tony Isaac,
    One question:
    I use NWDS Version: 7.01.05 and I tried to use your code in webdynpro java but method download() for object res doesn't exist.. is deprecated?
    thank you!
    Roberto

  • Custom File(Eclipse Resource) Types

    In FlashBuilder you can create new files of types:
    - ActionScript File
    - ActionScript Class
    - ActionScript Interface
    - etc
    Is there a way to create a custom file-type, so i can attach a custom template to it?
    in example:
    - File -> new -> ActionScript Singleton
    which shows the default 'new actionscript class' wizard, except that when the file is created it does not use the 'ActionScript Class File Template' but my own 'ActionScript Singleton File Template'
    If this is possible, i might also be possible to create custom project types as well?

    Hi,
    We could not block file types based on size by using FSRM. As a workaround you could use disk quotas on NTFS Volumes which are tracked on a per-user. 
    To apply disk quotas to existing volume users, add new quota entries in the Quota Entries window. Please understand that it will take you some time to add all users into the list. 
    It will allow administrators to control the amount of data that each user can store on an NTFS file system volume.
    For more detailed information about disk quotas on NTFS Volumes, you could refer to the article below:
    File Systems
    http://technet.microsoft.com/en-us/library/cc938945.aspx
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • File download uielement resource attribute

    Hello,
    I am following the blog [link|http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproforJava-+FileDownloadUIElement]
    this works fine except for the fact that resource attribute is indeed needed for filedownload element coz it otherwise gives a dump
    so how should I populate the resource ? if i just simple keep a resource type attribute then the dump is gone but there is no file.
    thanks in advance
    B

    Hi,
    If you are using 7.0 then you need to bind the file download ui to an attribute of type binary and if you are using CE 7.1 then ui must be binded to an attribute of type Resource.
    The best way to set the binary attribute is
    wdContext.currentContextElement().setBinary(str.getBytes());
    And for CE 7.1, set the Resource attribute like
    IWDResource resource = WDResourceFactory.createResource(str.getBytes(), "MyFile", WDWebResourceType.TXT);
    wdContext.currentContextElement().setResource(resource);
    Regards,
    Amol

  • How to  download any type files in safari

    I HAVE iphone 4s .the8.1.1 version is installedMy question is chosen a safari to throw any safflower about if the performer will be downloaded

    Hi,
    use this for file download.
    For file down load u have to use a UI element as "File download".
    u just create context attribute as setdownload_res and file data.
    setdownload_res as of type "com.sap.ide.webdynpro.uielementdefinitions.Resource" then bound it to the ui element "resource".
    file data as of type "com.sap.tc.webdynpro.progmodel.api.IWDInputStream"
    and set calcuclated as true and read only as true.
    then in doinit method u just write this code
    IWDAttributePointer attr = wdContext.currentContextElement().getAttributePointer("fileData");
    IWDResource res = WDResourceFactory.createResource(attr,null,WDWebResourceType.UNKNOWN);
    wdContext.currentContextElement().setDownload_res(res);
    wdComponentAPI.getMessageManager().reportSuccess(""+c);
    after this in the getter method u write this code
    IWDInputStream stream = null;
    try
    stream = WDResourceFactory.createInputStream(new FileInputStream(new File("<pathof the file to be download>")));
    catch(Exception e)
    e.printStackTrace();
    return stream;

  • SBO Mailer Error - The specified resource type cannot be found in the image file

    Hi Experts,
    I have created an alert in SBO and selected email and internal option for same. I get internal message however email is not getting delivered, I checked the Event Viewer of Windows and below error is shown for SBOMail.
    The description for Event ID 62 from source SBOMail cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    Failed to mark records error [-1]
    The specified resource type cannot be found in the image file
    I can send email from sbo for other documents but the alert is not delivering email.
    Please advise.
    Thanks
    Deepak

    Hi Deepak..
    Check with these threads...
    http://scn.sap.com/thread/966957
    http://scn.sap.com/thread/1295818
    SBOMail Application log error
    SBOMail error in event log
    Hope Helpful
    Regards
    Kennedy

  • Download  resources that are not listed in the JNLP file

    There is some way to download resources that are not listed in the JNLP file, and then
    ask for them with DownloadService ? (isResourceCached)
    thanks.

    currently, the jnlp spec requires DownloadService to access only resources specified in the jnlp file..
    changing this is a proposed RFE for the next spec version:
    4908304: JWS DownloadService should not require mention in JNLP file
    /Dietz

  • My iOS customers cannot download the video clips I send via Adobe Send "Safari cannot download this type of file"

    My customers who use iOS cannot download the video files I send by Adobe Send "Safari cannot download this type of file" is the report they get. I have tried created a zip file of the clip but get the same result. Please help

    This error seems to point at a problem not directly related to the encoding. The message might be misleading but I read "Safari cannot download this type of file" as relating to the file type - the end of the name (perhaps MIME type setup, but let's start with the file type).
    But... some web searching finds others say that iOS cannot download files AT ALL because it has no filing system you can access. Clearly (?) you just want it to show the movie, but I don't know any more than that.
    Perhaps someone else has worked in this area. Also worth trying suitable iOS forum.

  • File Download (Type: Firefox Document) message box appears every time I send an e-mail on Outlook

    I use Outlook as my email service. When in Outlook, almost every time I send an email or delete an email I get a popup box Titled "File Download". It says "DO you want to open or save this file?" "NAME'' Is a long string of alpha-numeric characters such as "{53BDCB52-F771-4692-B039-55C62COD6390}.html". Then "Type: Firefox Document, 6.66kB", Then "From: C:\Users\Neil\AppData\Local\Microsoft\Windows.....", Then "Open" "Save" "Cancel". There is a box with a check mark "Always ask before opening this type of file".
    Question---How do I stop this box from appearing?

    Windows 7 - Outlook has a file download box that will not go away.,please help
    go to this website and the solution is there...
    http://www.sevenforums.com/microsoft-office/176965-outlook-has-file-download-box-will-not-go-away-please-help.html

  • File server resource manager. Block file types based on size

    I have a site where our users appear to be saving some pretty huge TV quality video files (usually .MOV, and usually over 900MB in size) to our file storage server.  The
    concern I have is that such large files are going to fill up our server we will run out of space .
    I don't want to blanket block smaller (less than 30MB) .MOV video files from being saved
    to the drive, so would like to know if there's any feature in the File server resource manager that can block file type based on size.
    If it's not possible, then could someone please suggest this as a future feature of FSRM as I'm sure there are plenty of companies out there who face the same problem as me.
    thanks,
    Mike Geileskey
    Infrastructure manager, PIAS UK Limited 

    Hi,
    We could not block file types based on size by using FSRM. As a workaround you could use disk quotas on NTFS Volumes which are tracked on a per-user. 
    To apply disk quotas to existing volume users, add new quota entries in the Quota Entries window. Please understand that it will take you some time to add all users into the list. 
    It will allow administrators to control the amount of data that each user can store on an NTFS file system volume.
    For more detailed information about disk quotas on NTFS Volumes, you could refer to the article below:
    File Systems
    http://technet.microsoft.com/en-us/library/cc938945.aspx
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Error: cannot find bundle file or key for resource type

    Hello,
    Please help in finding out the cause & resolving the below errors.
    Logs from the default trace:
    Error Log Message:  cannot find bundle file or key for resource type http://sap.com/xmlns/ciphotocomp, use fallback
    Error Location: com.sapportals.wcm.service.resourceTypeRegistry.ResourceType.getDescription( Locale )
    Thanks & Regards
    Maha,

    << Do not post the same question across a number of forums >>

  • Applet question, how to download resource files from server

    hi,
    i am new at applet world.
    i have an applet that reads some resource, data and configuration files. so i need to download these files from server to client. i did some resarch and could not find how to download files from server in an applet application.
    how can i do this task?
    thank you for your answers.

    You may want to distinguish between 'resources' and data/configuration files.
    'Resources' are non-class files that are part of your application, i.e without them the application would simply not work, just like class files.
    Those are typically images, sounds or resource bundles (GUI elements translated to different languages) that nobody except you, the developer, would touch (when releasing an upgrade or a patch).
    Those should just go into the applet jar or additional jars named in the applet tag.
    Data/configuration files, that may be changed by others than the developers, should be made available through HTTP, just like the applet jar itself. The applet will have (read) access to them using java.net.URLConnection.

  • My firefox 17.0.1 on Win 7 64 bit SP1 still crashes when I download ANY type of file EVEN browser.download.manager.scanWhenDone is false ... WHY ???

    my firefox 17.0.1 on Win 7 64 bit SP1 still crashes when I download ANY type of file EVEN browser.download.manager.scanWhenDone is false ... WHY ???

    If that plugin isn't working properly then its developer needs to fix this via an update.
    Try to ask advice at the Free Download Manager forum
    *http://www.freedownloadmanager.org/board/

  • I can not resume any type file downloading process.how can i do this?

    firefox starts file downloading nicely but when the system is restarted or after load shedding when the computer is re-open,the downloading process can not be resumed and get the information to retry or to contact to server administrator.what can i do now?

    If it fails using WiFi, try using iTunes on your computer to update the iPad or use another WiFi network at a friends house or a library, Starbucks, anywhere where you can connect to the Internet.
    Or try rebooting your router and the iPad. Unplug your router from power for about 30 seconds, plug. It back in and the reboot the iPad and try again over WiFi.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Problem in XML file download

    types: begin of type_s_data,
             record(65000) type c,
           end of type_s_data.
    data: w_xml_out type string.
    data: t_xml_tab type table of type_s_data with header line,
    Source code
          t_code    type table of type_s_data with header line,
    After populating t_code table,
    convert internal table data into XML document
      call transformation id
           source code = t_code[]
           result xml w_xml_out.
    append XML docu to internal table
      append w_xml_out to t_xml_tab.
    Download to XML file
      call function 'GUI_DOWNLOAD'
        exporting
      BIN_FILESIZE                    =
         filename                        = filename
         filetype                        = 'BIN'
        append                        =
      write_field_separator           = sep
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
      WK1_N_FORMAT                    = ' '
      WK1_N_SIZE                      = ' '
      WK1_T_FORMAT                    = ' '
      WK1_T_SIZE                      = ' '
      WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
      SHOW_TRANSFER_STATUS            = ABAP_TRUE
    IMPORTING
      FILELENGTH                      =
        tables
         data_tab                        = t_xml_tab
      FIELDNAMES                      =
        exceptions
         file_write_error                = 1
         no_batch                        = 2
         gui_refuse_filetransfer         = 3
         invalid_type                    = 4
         no_authority                    = 5
         unknown_error                   = 6
         header_not_allowed              = 7
         separator_not_allowed           = 8
         filesize_not_allowed            = 9
         header_too_long                 = 10
         dp_error_create                 = 11
         dp_error_send                   = 12
         dp_error_write                  = 13
         unknown_dp_error                = 14
         access_denied                   = 15
         dp_out_of_memory                = 16
         disk_full                       = 17
         dp_timeout                      = 18
         file_not_found                  = 19
         dataprovider_exception          = 20
         control_flush_error             = 21
         others                          = 22.
      if sy-subrc <> 0.
        message e016 with 'Error during file download'(002).
      endif.
    Problem here is when intrernal table data/size is large, only part of the data is getting displayed in the file and at the bottom of the file showing an error message
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    End element was missing the character '>'. Error processing resource 'file:///C:/Documents and Settings/sowjanya.suggula/De...
    RECORD
    ^
    >RECORD>
      </item>
    wehn i change data  declaration as
    data: t_xml_tab type table of string with header line.
    when i execute the program, giving me a short dump.please suggest me a soluion for this.
    Regards,
    Sowjanya

    Hi Sowjanya,
    Kindly go through this link below:
    It Uploads XML to internal table and vice versa :
    Upload XML to internal table and vice versa in SAP 4.6C
    Hope it helps
    Regrds
    Mansi

Maybe you are looking for

  • Upgrading ram in Macbook pro 2 Model 8,3

    I want to upgrade the RAM in my Early 2011 macbook Pro. I already purchased it. I bought CORSAIR 16GB (2 x 8GB) DDR3 1333 (PC3 10600). When I go to Apple's site to see how to install it says I can't put more than 8GB in this machine.I went to Corsair

  • Can any one help me to sign a application ??

    can any one help me to sign rotate me for n73

  • Ethernet Connection and Receive Airtunes?

    Hi Here is my set up: - iMac connected wirelessly (g) to router - router connected by ethernet (via Homeplugs) to Apple TV My problem: I want to keep the ethernet connection to the Apple TV because syncing is quicker (I guess the distance between the

  • Delivery shouold not create only with Materail A

    Hi All, My requiment is: I have created one Sales Order with Four Materails (A,B,C,D). Now I want to create delivery - here the delivery should not be created only with Materail A. that means to create a delivery i have to enter materail B or C or D

  • Corrupted Music?

    I was just trying to play some music that I had in my iTunes library when the error message saying the file or directory was corrupt. I had to delete the entire CD from the library because the same message appeared if I tried to play any of the track