How to add file type fiter in FileUpload component in Java Web Dynpro

Hi All,
  In FileUpload UI, i want to set file type filter, for example as *.PDF, *.JPG, is that possibel in Java WebDynpro?
Thanks a lot!
Huang Jia

hi!
you can achieve this filter thing of file type by just taking some strings for diffrent types as extension and assign those to the resource type .
eg.
String extension = ".doc";
WDWebResourceType.getWebResourceTypeForFileExtension(extension));

Similar Messages

  • How to add scroll function in  the applet launched by  Java Web Start?

    I have Java Web Start installed in order for the applet to launch.The applet size: width:700 height:1000
    my compuer resolution:800*600
    the applet launched by Java Web Start can only be seen partly,especially height.How to add scroll function in the applet launched by Java Web Start?
    Thanks for help.
    email:[email protected]

    You can very easily add a JScrollPane manually between the Applet and your content. Perhaps it would be beter if javaws did this automatically. In the browser, an applet can be any size. In Java Web Start an applet is directly contained within a JFrame, so it cannot be smaller than the minimum size of a JFrame, or Larger than the max.

  • How to add button ui element in alv table data in web Dynpro ABAP

    Hi Experts,
    I have one requirement,
    Actually I was devloped normal table in web Dynpro ABAP
    in that i have one column Display as a button .
    when i select that button need to display some data.
    same requirement i need to devlope in alv table.
    i am going to attach file please check.
    Thanks in advance.
    Regards,
    Subba Reddy.

    Hi,
    You can create Button in your ALV table column with below code
    DATA lo_button              TYPE REF TO cl_salv_wd_uie_button.
    CREATE OBJECT lo_button.
        CALL METHOD lv_value->if_salv_wd_column_settings~get_column
          EXPORTING
            id    = <your column name>
          RECEIVING
            value = lo_system_select_hdr.
        lo_button->set_enabled( value = abap_true ).
       lo_button->set_text( value = 'Avaliable List'  ).
        lo_button->set_tooltip( value = 'Avaliable List' ).
        lo_system_select_hdr->set_cell_editor( value = lo_button ).
    And for button click action,
    Create a method (say SHOW_DATA( ) ) with on_click event handler.And when you click button on your ALV table, SHOW_DATA( ) method will trigger.
    Thanks
    KH

  • [CRM 5.0] How to add file attachements to created ticket (transaction)

    Hi!
    I have to do engancement and need to add file attachements to tickets (transaction) documents. I made ticket creation but I don't know how to add file attachements to it.
    Could someone help? Mayby some function module name?
    Thanks for response!
    KK

    class cl_crm_documents has a number of methods which should be of use to you.
    create_with_table will allow the file to be created from data held in a table and attached to the activity.
    create_with_File will allow you to create with reference to an existing file.
    here is an example of the use of create_with_table.
    form create_document  using    p_bus_obj type sibflporb
                                   p_properties type sdokproptys
                                   p_file_access type sdokfilacis
                                   p_file_contents type sdokcntbins
                          changing p_error type skwf_error.
      call method cl_crm_documents=>create_with_table
       exporting
          business_object     = p_bus_obj
          properties          = p_properties
    *                properties_attr     =
                 file_access_info    = p_file_access
    *                file_content_ascii  =
          file_content_binary = p_file_contents
    *                raw_mode            =
    *                text_as_stream      =
    *                parent_folder       =
    *                package_id          =
        importing
    *                loio                =
    *                phio                =
          error               = p_error.
    endform.                    " CREATE_DOCUMENT
    p_bus_obj-typeid needs to be set with guid of transaction
    p_bus_obj-catid = 'BO'.

  • How to add files in a pdf file

    Hello friends,
    This is Siddhartha from India, I want a favour from you, can anyone please tell me how to add files into pdf file, as an attachment ?
    Looking forward for your timely response,
    Thanks & Regards
    Siddhartha

    Dear Bill@VT,
    Thanks for your timely response, by attachment I meant any file that can be added as an attachment, it could be any file, it does not mean to insert pages, it means the same as when you attach a file in your email, while sending the mail to some one, now the thing is that I want the same functionality in Adobe Reader, so do u have any idea, for the same......
    Looking forward for your response
    Regards
    Siddhartha

  • Where is "save as" or how to change file type in Preview in Lion?

    Where is "save as" or how to change file type in Preview in Lion? I used to use Preview to change quickly change a lot of PNGs to either JPEGs or PDFs but with the introduction of versions auto save etc there no "save as" in the File menu. Any suggestions how to get this functionality back or how to get around it within OS X (no Photoshop etc)?

    Just wasted 15 minutes looking for that.  What's wrong with Save As?

  • How to add Material type(MTART) field on Selection screen of MB5B transaction code.

    Hi All,
        Please let me know how to add material type field on selection screen of MB5B transaction
    For that i made copy ZMB5B_COPY of original report RM07MLBD.
    Thanks in adv .
    Samadhan

    Hi,
    Once you copied the standard report to Z report, you can MTART in selection screen like below.
    and in order to inlcude the same in programming logic, we have three option.
    1) Check all related select queries, and include MTART in SELECT query using inner join with MARA.
    2) In START-OF-SELECTION event fill MATNR as shown below.
    3) If user entered any value in MTART, then before displaying the report just check material type of each material in the final internal table(which is used to display report) delete enteries from internal table accordingly.
    START-OF-SELECTION.
    IF MTART[] IS NOT INITIAL AND MATNR[] IS INITIAL.
        SELECT MATNR FROM MARA INTO MATNR-LOW WHERE MTART IN MTART.
          MATNR-OPTION = 'EQ'.
          MATNR-SIGN = 'I'.
          APPEND MATNR.
          CLEAR MATNR.
        ENDSELECT.
    ENDIF.
    The above option has one limitation: The selection screen variables has some restriction, please read the below thread.
    Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S
    Getting Dump in the select query has more than 2000 entries
    Hope this will work for you .
    regards,
    Rajesh Sadula.

  • How to get File type icon for files store on Amazons3

    Hi,
    i want to know about how to get file type icons for files that we store on Amazons3.i am a devloper ,i want to make gui for accessing amazons3.
    so ,i want to know about how to get file type icons for files that we store on Amazons3.
    thanx in advance.

    hi,
    have u heard amazon simple storage service,that provides storage space for
    storing files, i am a devloper,i want to know the files that we store on amazon,how we can get file type icon for that files.
    i want to sample code in java for this.
    thanx in advance.

  • How to add this type of effect in photoshop plugin

    How to add this type of effect in photoshop by plugin

    Well, if that's the best you can do in describing what you consider an "effect" in this image, it will take a mind reader or clairvoyant to figure it out. 
    All I see is a guy that looks a lot like the infamous sex-slave-and-women-trafficker Saban Baran, possibly wearing a rug on his usually bald shaven head.
    http://tinyurl.com/jw5lmzy
    If it's someone else and that is real hair, then someone may have selected the hair in Photoshop and applied a tiny bit of the Oil Filter on it.  The Oil Filter has been removed from the newest versions of Photoshop.

  • How to add an image to an IMAGE control in Java WebDynpro

    hi
    How to add an image to an IMAGE control in Java WebDynpro.
    Please give me the steps to assign an image to an IMAGE control.
    Advanced Thanks
    brahma

    Thank You Mathan MP,
    i tried these steps, but whenever i selected the source property of image UI control, it opens a context window, but this context window does't contain any thing for selection.
    so how to solve this problem ?
    the link whatever u provided is not opened, please send the correct link.
    http://127.0.0.1:1284/help/index.jsp?topic=/com.sap.devmanual.doc.user/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
    Thanks in Advance
    brahma

  • Unable to download file from FileDownload UI Element - Java Web Dynpro

    Hello Experts,
    I am facing a strange issue.Scenario is:
    I created an java web Dynpro application (Please note that it is just a standalone WD app, not integrated in portal) with just one FileUpload UI Element ,one FileDownload UI element and one button (for triggering an action).
    I browse a file (e.g. text,pdf,doc etc.) and click on button. It uploads the file and when I click on download, there are two cases:
         1) Simply click on download does not downloads the file and shows error: "Unable to download <file name> from <server name>.  Unable to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later." Though it is opening the file,showing the content.
         2) I opened that portal URL in a new tab in same session and logged in with a portal user. Now if I click on download link of same WD app opened in different tab of same session, it downloads the file without any error.
    I am using portal 7.0
    Can somebody point what's going wrong with case 1?
    Helpful pointers will be appreciated.
    Thanks,
    Kirtiman

    Hi Sid,
    I did not gave any authentication of WD app as it is anonymous app. There is no parameter set in application properties.
    As I run the app, it is showing the initial screen with UI elemtns and till upload works fine,.It has to be an anonymous app, so cannot ask for credential from user.
    Thanks
    Kirtiman

  • How to use EVS with different data in each row, in a Java Web Dynpro table?

    Hi all,
    I am using EVS in a column of java web dynpro table.
    Let's say the name, and context attribute, of this column is column1.
    It's filled dynamically using an RFC, that uses as input parameter the value of another column, and related context attribute, from the same table (Let's call it column2).  Obviously, from the same row. So, in other words: the values of the EVS in column1 of row1, are dependent of the value of column2 of row1. And the values of the EVS in column1 of row2, are dependent of the value of column2 of row2. And so on... Hope i could explain myself ok.
    The code I'm using works great for filling the EVS dynamically:
    IWDAttributeInfo attrInfo = wdContext.nodeDetail().getNodeInfo().getAttribute(nodeElement.COLUMN1);
    ISimpleTypeModifiable siType = attrInfo.getModifiableSimpleType();
    IModifiableSimpleValueSet<String> value = siType.getSVServices().getModifiableSimpleValueSet();
    value.clear();
    if(this.initRFC_Input(nodeElement.getColumn2())){
         for (int i = 0; i < wdContext.nodeRFCresult().size(); i++){
              value.put(wdContext.nodeRFCresult().getRFCresultElementAt(i).getLgort()
                 , wdContext.nodeRFCresult().getRFCresultElementAt(i).getLgobe());
    In this code, nodeElement is the context row of the table that is passed dynamically to the method when the value of colum2 is changed.
    HOWEVER, the problem I'm having is that after executing this code, EACH NEW ROW that is added to the table has by default the same values as the first row, in the column1 EVS. And, for example, if I refresh the values of the column1 EVS in row 2, all EVS values in the other rows are also refreshed with the same values as the ones of EVS in row 2.
    How can I make sure each row EVS has its own set of independent values, so they don't mess with each other?
    Hope you guys can help me. And please, let me know if I didn't explain myself correctly!
    Thanks!

    I just did as you said (I think), but it's still having the same behaviour as before (same data for all EVS in the table).
    Here´s what I did:
    I
    In node "Detail" (cardinality 0...n, singleton set to true), which is binded to the table, I created a child node named "Column1Values" wth cardinality 1...1 and singleton set to false.
    "Column1Values" node has an attribute called "column1", of type String.
    I did the binding between attribute "column1" and the column1 inputfield celleditor in the table.
    I created an event called Column2Changed and binded it to the column2 celleditor of the table. I added a parameter called nodeElement of type IPrivateCompView.IDetailElement to this event, and mapped it to the column2 editor in the table so that I can dynamically get the nodeElement that is being affected.
    I added the following code to the onActionColumn2Changed(wdEvent, nodeElement) method that gets created in the view:
    IWDAttributeInfo attrInfo = nodeElement.nodeColumn1Values().getNodeInfo().getAttribute("column1");
    ISimpleTypeModifiable siType = attrInfo.getModifiableSimpleType();
    IModifiableSimpleValueSet<String> value = siType.getSVServices().getModifiableSimpleValueSet();
    if(this.initRFC_Input(nodeElement.getColumn2())){
         for(int i =0; i < wdContext.nodeRFCresults().size(); i++){
              value.put(wdContext.nodeRFCresults().getRFCresultsElementAt(i).getId(),
                                  wdContext.nodeRFCresults().getRFCresultsElementAt(i).getDesc());
    And with this, I still get the original problem... When the EVS of one row is updated, ALL other EVS of the table get also updated with the same values.
    What am I missing? Sorry Govardan, I bet I'm not seeing something really obvious... hopefully you can point me in the right direction.
    Thanks!

  • How to create table in interactive form via Java Web Dynpro

    Hi,
    How to create table in interactive form via Java Web Dynpro ?
    Any online tutorial / example ?
    Thank you.
    Regards,
    Eric

    Hi Eric,
    Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
    Hope it will solve your query.
    Regards,
    Vaibhav Tiwari.

  • HT5243 How does one know if they use "java applets"? What do they do? How will I know if I need to 'disable the java web plug-in browser' if I do not use them? ( I'm not very literate in computer-speak.

    How does one know if they use "java applets"? What do they do? How will I know if I need to 'disable the java web plug-in browser' if I do not use them? (Obviously I'm not very literate in computer-speak.)

    Well, when you go to a web page a section of the web page will have a coffee cup picture where the java applet will run. The applet loads then runs. If you are not seeing this behavior then you are not using java. If it make you feel more comfortable then disable the browser java plugin. On my machine I have not disable java- but you
    may what to.

  • I want to edit the application associated with pdf files, but the pdf file type is not available on the Applications tab under edit preferences. How do I add file types?

    I am running Firefox 5.0 (Mozilla Firefox for Ubuntu canonical - 1.0) under Kubuntu 11.04.

    Thanks jscher2000, I tried your suggestion, but no joy (as expected). None of the extensions were .bin, and in fact, I can't find a single listing for handling the .bin extension in the entire (unfiltered) list.
    That's why I'm so confused. Where is Firefox getting the name "VLC.bin (default)" from in the first place?
    cor-el, I checked out the link that you posted.
    I don't have an entry for "browser.download.pluginOverrideTypes" and the entry "plugin.disable_full_page_plugin_for_types" was empty (default setting).
    My bad, but I forgot to mention in my first post that I had also tried renaming the mimetypes.rdf file in my "Application Data\Mozilla\Firefox\Profiles\xxx.default\" to .old to no avail.
    Firefox created a new, almost empty file, but it didn't change the behavior for .bin files. I removed the new file and put the old file back in place after determining that clearing the file did not help, since I am otherwise happy with my current file-type options.
    However, since the option to "Always perform this action" is grayed-out, I am looking into the possibility that the website is sending a misconfigured MIME type or is assigning "Content-Disposition: attachment" to the download. What's odd, though, is that I've never had problems getting binary files from the site in the past, and the problem started when the VLC player was installed.
    I'll post back after I check into the server header data.

Maybe you are looking for

  • Drill Down in a Webi Report via Dashboard Builder

    Hi, I am using BOE XI3.1 SP2 and dashboard buider. When you insert a webi document, you can right click on the report to select/unselect a report part.  When you do it for a crosstab in drill mode, it losses the drilling capabilities.  Is there a pat

  • Will I have the same problems?

    Hello, my current ISP is Virgin Media. I have been a customer for years, and over the past 6-9 months, in the evening the internet service has been appauling.  I have constant high pings and a slow download speed.  (I pay for 60mb/s and at times woul

  • Rss feed won't validate when I use the itunes:order element?

    Hi I'm trying to use the <itunes:order> element - http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/AddingContent/chapte r12_section3.html When I run my feed through the W3C rss validator it won't validate. It says - Undefined item element:

  • CS6 to CC update

    When you download the creavtive cloud app for desktop and I already have the master collection of CS6 does it update it for free or is it only for a trail?

  • RSA3 is extracting fine but in BI site Its extracting only 10000 records

    Hi Experts, h4. I made Generic data-source based on function module. When I am extracting data from this data-source in RSA3 itu2019s fetching all records. Its nearly are 7 lacks records. h4. But after replicating this data-source in BI site when I a