Ho to create fileupload ui element dynimically?

Hi,
Experts,
I want to create fileupload ui element dynamically in web dynpro for abap and how to pass parameters.
please suggest me on that.
Thanks in advance.
Shabeer ahmed.

Hi Shabeer,
Please let us know your complete requirement.
Thanks,
Anand

Similar Messages

  • Create Dynamic UI element

    Hi Experts,
            i want to create fileupload,dropdown,inputfield,checkbox,,...etc , my requirement is ,when i click one button that time only i want to create  dynamically one ui element,then when i click the second button that time second ui element is created
    Please tell me how can i do that,its urgent
    Regards,
    Sundaresan

    hi,
       Create the Ui elements Dybamically in the Domodify Method of the view as
    IWDGroup group = (IWDGroup) View.getElement("ID of the Group") ;
    IWDInputField input = view.createElement(IWDInputField.class);
           input.setLength(20);
           input.bindValue("DynamicNode.input");
    group.addElement(input);
    In the Similar way u can create all the Ui elements .
      create a Context Attributr of type WDVisibilty.
    Bind the Visible Property of ythe Ui element to this Context Attribute.
    finally in the doinit ,method set the First ui element to WDVisibilty.Visible.
    and set the visible property of others ui elements to WDVisibilty.none.
    finally in the Action of first ui element set the second Second Ui element to WdVisibility.Visisble. and so on.
    Thanks and regards,
    Fistae

  • Problem in FileUpload UI element

    Hi All,
           I have done all the operations that are there in this lilnk of FileUpload UI element and I am giving the link also
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5d3c40a-0801-0010-55b7-9e3b01745a40
    Here, Web Dynpro runtime automatically transports different types of MIME files between the client-side user interface or UI element and the server-side controller context.
      Now I have to take that file from server-side conroller
    context and I have to place that file into my desired server path.
      please help me regarding this issue.
    Thanks All

    Hi,
    When u create FileOutputStream object, u can specify the location where u want to place the file in the server. If the file is already in the server, create a FileInputStream object of that file and copy that file in a new location in the server.
    Regards,
    Piyush.

  • Sample code on Creation of Fileupload UI element in Dialog boxes

    Hi all
    i have a requirement like when i click on the button then i need to generate one dialogbox where i create the UI elements like FileUpload.
    can anybody send the sample code on the same?
    Regards
    Sunil

    Hi,
    Below is the sample procedure to save text to .txt file, where you can get dialog box like Fileupload
    You can simply create a button on click of which you can write the following code and test your application. It will be saved as text file.
    String abc = "what ever you want to save to text file save it in the string format";
    try
    IWDCachedWebResource resource = WDWebResource.getWebResource
    abc.getBytes("UTF-8"), WDWebResourceType.UNKNOWN
    resource.setResourceName("Doke.txt");
    IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(
    resource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal()),
    resource.getResourceName());
    window.show();
    catch(Exception ex)
    wdComponentAPI.getMessageManager().reportException( new WDNonFatalException(ex), false );
    or else go for creating confirmation window.
    Regards
    Raghu

  • FileUpload UI element -"browse"label is not coming in Hungrian for Hungrian

    Folks,
    We are using FileUpload ui element in our application, our application supports English , Hugrian languages, Problem is here , label on browse button coming in English for hungrian users.
    I believe  no need to add any translation to browse label in .xlf file,
    can any one tell me how to add Hungrian translation to Browse label, how to check standard translations of file upload ui element?
    Thanks & Regards,
    Veera.

    Hi Anup,
    portal User language is already hungray and rest of the labels in page are coming in hungrian as we maintained in -hu.xlf file.but for FileUpload ui element there is no option to map label of  "browse"  button with a message pool attribute.
    Thanks & Regards,
    Veera.

  • Sending an email with attachments in Java using FileUpload UI Element

    Hello Experts,
    I'm using NWDS 7.01 SP6.
    I have an application that has a FileUpload ui element. The elements resource property is bound to a context node of type Resource from the Local Dictionary from uielementsdefinitions.
    The question I have is, how can I take the uploaded file from the context, and attach it to an email using the javax.mail.* api?
    Do I need to store it somewhere first or can it be taken directly from the context attribute? If I need to store it, where do I store it? 
    Any help or suggestions are appreciated.
    Thanks
    MM

    Hello Experts,
    I'm using NWDS 7.01 SP6.
    I have an application that has a FileUpload ui element. The elements resource property is bound to a context node of type Resource from the Local Dictionary from uielementsdefinitions.
    The question I have is, how can I take the uploaded file from the context, and attach it to an email using the javax.mail.* api?
    Do I need to store it somewhere first or can it be taken directly from the context attribute? If I need to store it, where do I store it? 
    Any help or suggestions are appreciated.
    Thanks
    MM

  • I have tried to view videos created in premiere elements 10 and I get the following message: "this file type is not supported, or the required codec is  not installed.  When it opens there is a red screen in the monitor panel with Korean writing which als

    I have tried to view videos created in premiere elements 10 and I get the following message: "this file type is not supported, or the required codec is  not installed.  When it opens there is a red screen in the monitor panel with Korean writing which also appears in the place of each clip in the video.  I tried uninstalling and reinstalling premiere elements 10, but that did not have any effect on the video.  Do you have any suggestions?  I researched codec, but do not understand them at all.

    gloucester
    In case you did not find it, the following is a copy/paste of the Announcement on Premiere Elements 19/NVIDIA GeForce
    that appears at the top of this forum.
    Premiere Elements 10 NVIDIA Video Card Driver Roll Back
    If you are a Premiere Elements 10 user whose Windows computer uses a NVIDIA GeForce video card and you are experiencing
    Premiere Elements 10 display and/or unexplained program behavior, then your first line of troubleshooting needs to be rolling
    back the video card driver version instead of assuring that it is up to date.
    Since October 2013 to the present, there have been a growing number of reports about display and unexplained workflow
    glitches specific to the Premiere Elements 10 user whose Windows computer has a NVIDIA GeForce video card. If this applies
    to you, then the “user to user” remedy is to roll back the NVIDIA GeForce video card driver as far as is necessary to get rid of
    the problems. The typical driver roll back has gone back as far as March – July 2013 in order to get a working Premiere
    Elements 10. Neither NVIDIA nor Adobe has taken any corrective action in this regard to date, and none is expected moving forward.
    Since October 2013, the following thread has tried to keep up with the Premiere Elements 10 NVIDIA reports
    http://forums.adobe.com/thread/1317675
    Older NVIDIA GeForce drivers can be found
    http://www.nvidia.com/Download/Find.aspx?lang=en-us
    A February 2014 overview of the situation as well as how to use the older NVIDIA GeForce drivers for the driver roll back can be found
    http://atr935.blogspot.com/2014/02/pe10-nvidia-video-card-roll-back.html
    ATR

  • CO-PA: COGS accounts created as cost elements

    hello,
    I have a question regarding COGS accounts, being created as cost elements. This was not causing problems, because client was using real internal orders for profit analysis. In the next phase of project, during implementation of costing based CO-PA, now I have problem, because of this situation, because I can not delete created cost elements  (only possible at the beginning of the new fiscal year) , and the system asks for cost object assignment during GI creation. I was considering OKB9 assignment, but I think this will cause double values in CO-PA. Maybe temporary solution, by using real internal orders till the end of the year, and then deleting existing cost elements for COGS accounts, could work?
    Please, advise what to do to solve this situation.
    Thanks in advance,
    Dusko

    Hope you are not using account based COPA
    To avoid double values in COPA, you can do one of two things,
    1) after the costs are transferred to the internal order, you can just keep them there without doing settlement, let the users know that there will be under absorption for the internal order.
    2) If the users are not willing to have under absorption in the internal order, you can transfer the costs to a value feild in COPA which is not reflected in the report in KE30 (Remember that you may loose one value feild in COPA this way)
    Both make no effect on KE30 report as data will be transfered to COPA at the time of billing
    Br Naveen

  • Fileupload  UI element in WD ABAP

    Hi ,
    Any one have worked using fileupload UI element in Webdynpro ABAP.
    Regards
    Usha

    Hi usha...
    try this tutorial....
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f5d3c40a-0801-0010-55b7-9e3b01745a40">upload/download file in WD</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/39tutwd_fileupdownload.zip">File upload/download project</a>
    regards,
    Vijay

  • Are .mov files usable in PE 13?  If not, can PE 13 convert them to a usable format?  Will the result be usable in a slide show created with Photoshop Elements 13?

    Are .mov files usable in PE 13?  If not, can PE 13 convert them to a usable format?  Will the result be usable in a slide show created with Photoshop Elements 13?

    jayarl
    Please do not duplicate thread. It gets confusing for you as well as for those trying to respond to your question.
    I have replied to your question in your other thread.
    https://forums.adobe.com/thread/1662961
    Please continue the discussions there.
    A moderator will probably delete or close one of the duplicates as soon as seen.
    Just a note...Photoshop Elements 13 and Premiere Elements 13 are standalone products. Each comes with the
    Elements Organizer 13. When both are on the same computer, they share the same Elements Organizer 13.
    ATR

  • Upload / Save file via FileUpload UI Element under predefined path

    Hi,
    I am pretty new to this topic and need some help.
    I need a Web Dynpro App where I can select a file via FileUpload UI Element and save this file to a predefined path e.g. to a server. I already found [this help|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71?quicklink=index&overridelayout=true] but in this example the file is stored at the SAP Server!
    How can I achieve this? May you give me a sample code?
    I appreciate your help.
    Regards

    Hi Martni, Above answer was incomplete
    try{                         
         File fp = new File(relativePath+ fileName);
         fp.createNewFile();
         FileOutputStream fos = new FileOutputStream(fp);
         BufferedOutputStream bos = new BufferedOutputStream(fos);
         InputStream l_is_FileStream = elAttachmentsElement.getVa_Resource().read(false);
         int l_int_NoOfBytes = l_is_FileStream.available();
         byte[] byteArray = new byte[l_int_NoOfBytes];
         l_is_FileStream.read(byteArray, 0, l_int_NoOfBytes);
         bos.write(byteArray);
         bos.flush();
    catch (Exception e) {
         wdComponentAPI.getMessageManager().reportException("Cannot save the file: "+fileName);
    In the above snippet "relativePath" is the path to the folder in WAS and  "filename" is the name of the file along with its extn Ex. test.doc, or image.jpg
    InputStream l_is_FileStream = elAttachmentsElement.getVa_Resource().read(false)
    The above line of code is the sixth line in the snippet and here "elAttachmentsElement" is the element of the node having "Va_Resource" context attribute, which is bound to FileUpload UI element.
    Regards,
    Vishweshwara P.K.M
    Edited by: Vishweshwara P.K.M on Jun 28, 2010 1:31 PM

  • Problem in Dynamically create Group ui element

    Hi everyone,
    I was trying to create group UI element  dynamically in Webdynpro ABAP. I was getting Error :Access via 'NULL' object reference not possible.
    I have gone through the following procedure
    Create component with window and view
    In view layout Method: WDDOMODIFYVIEW and done the following code
      Source Code
    if first_time  = ABAP_TRUE.
    data:lr_container type REF TO CL_WD_UIELEMENT_CONTAINER,
          lr_flowdata TYPE REF TO cl_wd_flow_data,
          lr_group TYPE REF TO cl_wd_group,
          object type REF TO IF_WD_VIEW_ELEMENT.
    CALL METHOD view->get_root_element
       receiving
         root_view_element = object.
    lr_container ?= object.
    CALL METHOD cl_wd_group=>new_group
       EXPORTING
         design                   = 01
         enabled                  = ABAP_TRUE
         has_content_padding      = ABAP_TRUE
         id                       = 'GRP1'
         view                     = VIEW
         visible                  = 02
       receiving
         control                  = lr_group.
    CALL METHOD lr_container->add_child
       EXPORTING
         the_child = lr_group.
    CALL METHOD cl_wd_flow_data=>new_flow_data
       EXPORTING
         element     = lr_group
       receiving
         control     = lr_flowdata.
    endif.
    To get Group ui element dynamically what i have to do rather than the above code
    Thanks in Advance
    Sreenivas P

    Hi Sreenivas,
    Try to debug and find what line the error occurs and return it to us.
    If the error occurs in
    CALL METHOD view->get_root_element
       receiving
         root_view_element = object.
    or in
    lr_container ?= object.
    you will need to check content of object.
    Best regards

  • How to create a context element

    Hai,
    How can i create a context element for a view dynamically.
    regards,

    Hi,
    Context element or context attribute?
    For context element use appropriate method in your IWDNode implementation and after creation call add method of node.
    For context attribute - see appropriate tutorial :  https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on dynamic programming of web dynpro applications - 17.htm
    Best regards, Maksim Rashchynski.

  • How to create an UI element dynamically on action in drop down?

    Hi,
    How to create an UI element dynamically on action of selecting a value from the  drop down?
    help out with the steps i need to follow..

    Hi,
    <u><i><b>Dynamic UI Element creation</b></i></u>
    We can create it only in the WD Modify View.
    Get the instance for the Root UI Element Container.
    Create the UI element Ex: Input Field, Text View etc.
    Bind the UI Element to the Attribute Value.
    Now bind the UI Element to the Root UI Element Container.
              IWDTransparentContainer root =(IWDTransparentContainer)view.getRootElement();
              IWDDropdownByIndex DdbName = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbName");
              IWDDropdownByIndex DdbAge = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbAge");
              IWDDropdownByIndex DdbGender = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbGender");
              IWDNode Mad =wdContext.getChildNode("Person",0);
              IWDAttributeInfo NameAtt = Mad.getNodeInfo().getAttribute("Name");
              IWDAttributeInfo AgeAtt = Mad.getNodeInfo().getAttribute("Age");
              IWDAttributeInfo GenderAtt = Mad.getNodeInfo().getAttribute("Gender");
              DdbName.bindValue(NameAtt);
              DdbAge.bindValue(AgeAtt);
              DdbGender.bindValue(GenderAtt);
              root.addChild(DdbName);     
              root.addChild(DdbAge);
              root.addChild(DdbGender);
    <u><i><b>Dynamic Action Creation</b></i></u>
    Create the Action in the Action tab.
    Create a Button.
    Get the reference for the created action (Through the Event Handler).
    Bind the Action to the Button.
    Bind the Button to the Root UI element Container.
    IWDButton ButGo = (IWDButton)view.createElement(IWDButton.class,"ButGo");
    IWDAction ActGo = wdThis.wdCreateAction(IPrivateStartView.WDActionEventHandler.GO,"Click");
    ButGo.setOnAction(ActGo);
    root.addChild(ButGo);
    Now write the required code for the Event Handler that is associated with the Action.
    //@@begin onActionGo(ServerEvent)
        IWDNode Mad = wdContext.getChildNode("Person",0);
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Name"));
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Age"));
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Gender"));
    //@@end
    Regards
    SURYA

  • Can I back up individual image files to a slideshow DVD created in Premiere Elements 4.0?

    I created a Premiere Elements 4.0 Project including 3 separate photo slideshows. The slideshows were created in Photoshop Elements 6.0 and imported into my Premiere Elements project. I was hoping that when burning the project to DVD, my image files would also be individually backed up.
    When I give the DVD to family members I would like them to have access to the image files so they can print or use them individually. I would like to do this in 1 single DVD rather than giving them a DVD with the slideshows and a DVD with the image files. I was able to do this with a previous DVD authoring program I was using, but I cannot figure it out with Premiere Elements 4.0.
    Any ideas if this is do-able with Premiere Elements 4? (I am running Windows Vista Home premium SP1 - 64bit - 3GB RAM)

    Thanks for your help. I tried this. I burned the project to a folder (4.7GB) then to that folder I added a folder with my photos. So in the folder there was "Photos", "OpenDVD" and "Video_TS". I had 3 separate folders within the "Photos" folder, to keep the 3 slideshow photos grouped.
    I burned the entire folder to a DVD using my burn tool. I don't even know the name of the software I used, but I think it was just the Toshiba burn tool. I dragged and dropped the folder into my new disc folder, then at the top of my screen clicked "burn to disc", I named the disc and chose from the formating options "Mastered: disc can be read on other computers and some CD/DVD... no new data can be added..."
    Once burned I checked it on my DVD player and now it recognizes only the individual jpg files so it does a generic slideshow of these images rather than my slideshow project. (no menu, music...) Putting the disc in my computer I could access either the files or the slideshow project, but not on my home DVD player.
    I burned the folders to 2 separate discs, once dragging the whole folder to the disc and once opening the folder and dragging only the individual folders to the disc.
    Please tell me what I'm doing wrong. thanks.

Maybe you are looking for

  • Sp4 strange error: Browser goes for a spin

    We have an application developed in iAS SP1. We installed SP4 recently and ported the application to SP4. We are facing a strange problem, which I'm describing below, We have a login page named "home.jsp" which submits uid/password to a "LoginServlet

  • My iTunes won't open. I recently added RAM to my computer. Other than that, nothing is different. Help!

    My iTunes won't open. I recently added RAM to my computer. Other than that, nothing is different. Help!

  • IChat video refresh rate

    Hi. I am currently deployed to Iraq and am trying to use iChat to webcam with my wife and son back in the US. The audio portion seems to work okay, but the video is grainy and I can actually watch as the frame refreshes, little portions of the image

  • I need populate sales office.

    Dear Experts,   i need to populat the sales office in zzsale_off fiels in fi document.when i m saving the data in vf01 i want to populate the sales office in fi document. i found the userexit and i found the one sturcture xaccit where sale office exi

  • Can't shift restore to iOS 7.1 in iTunes iPhone 4

    Got this log from event viewer. Faulting application name: iTunes.exe, version: 11.1.1.11, time stamp: 0x524a8521 Faulting module name: iDeviceEx.dll_unloaded, version: 0.0.0.0, time stamp: 0x4cde567f Exception code: 0xc0000005 Fault offset: 0x06a01a