Web dynpro Java + interctaive forms + dorp down list

Hi,
I'm currently trying to display manager names in a drop down list in an interactive forms.
The node binded to the drop down list is filled in by the Java web dynpro application and it's correctly filled, I have check.
My problem is that only the first value is dispalyed in the drop down list. I can't selected other values.
My question is: - which drop down should I uses?
                       - How do I have to do the binding?

Prerequisites:
Add your key-value pairs of the returned managers in a java Map object first, in my example below its the object 'map'
Get the attributeInfo of the field from your node's nodeinfo, in my example its the object 'attrInfo'
F.i. wdContext.node<YourNode>().getNodeInfo().getAttribute(IPrivate<YourView>.I<ViewElement>Element.<YOURATTRIBUTE>
Then it's fairly straightforward:
IModifiableSimpleValueSet svSet = attrInfo.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
svSet.clear();
for (Iterator i = map.entrySet().iterator(); i.hasNext();) {
     Map.Entry entry = (Map.Entry) i.next();
     svSet.put(entry.getKey(), (String)entry.getValue());
Then, in your view, bind the dropdown control to the context value attribute, and it should work
Best regards,
Robin van het Hof

Similar Messages

  • Web dynpro Java, Interactive Forms, Workflow/UWL

    I really wanted to watch this eClass entitled:
    "Integration for Business Workflow and SAP Interactive forms by Adobe (Session 7)"
    However, it didn't pull up in my browser.
    I need to trigger a workflow from WDJ and I need to attach an interactive pdf form to a workflow/workitem from WDJ.
    Would i use the standard "SAP_WAPI*" functions modules via Adaptive RFC model in WDJ?
    Maybe these?  SAP_WAPI_ATTACHMENT_ADD_REF, SAP_WAPI_GET_ATTACHMENTS
    Also I am need to open a WDJ when the user clicks on the task in UWL.  This WDJ will read the pdf attachment on the workitem and display it to the user.

    I solved this problem on my own. Aren't I cool?

  • Web Dynpro Java and Adobe Interactive forms Which Tool Should I Use?

    Hello Experts,
    Can anyone help me with deciding the right technology to use among WDJ and Interactive form by adobe. I want to prepare a presentation to showcase the strong and weak points in order to decide the final technology.
    Thanks in advance for the help.

    I personally prefer Web Dynpro Java without Interactive forms in most cases.
        Interactive forms are developed on top of Web Dynpro, so you are including an extra tier with the complexity it adds.
        PDF files tend to go big and performance tends to go down. In average, my forms weight between 1 - 5 Mb so network traffic is a bottleneck.
        The scripting environment is very poor.
        On the other hand PDFs interfaces are nicer than WDJ, but I think navigation is worst in part because of the performance issues. Considering this, reporting could be a good use of Interactive Forms.
        The best scenario for using Interactive Forms is for off-line applications, which can't be done with WDJ. For example, if you want your customer to fill an order list, you can send automatically an offline pdf file wich he can fill and submit to your company, initiating a bpm.
    Best regards, Aldo.

  • Adobe forms in web dynpro java

    hi
    I am working in adobe interactive forms in web dynpro java .I want to use File upload and Download option in adobe interactive form .Can anyone please help me out.
    The submit button is also not working.Can anyone tell me the right code or pdf's related to above two problems.

    Hi,
    Please have a look at this blog,
    /people/amit.rai4/blog/2008/02/01/demystifying-attachments-with-sap-interactive-forms
    Regards
    Saravanan K

  • Display sapscript form in Web Dynpro Java

    Hi,
    Is it possible to print an existing sapscript form i.e. PO from ECC to my Web Dynpro application? I have successfully created a Web Dynpro Java application to create POs but now have a requirement to display or print the PO?
    Can someone provide me with a sample code? I'm hoping to be able to do this without using Adobe.
    Again, thanks for all your help.
    Best regards,
    Jaypee

    Hi mark,
    Without Adobe also u can display PO order.
    Below is the code to open a HTML window from WDJava, with data from WDJava...
    Inside DoInit()
    IWDAttributeInfo attr1 =
    wdContext.getNodeInfo().getAttribute("htmlfile");
    ISimpleTypeModifiable mtype1 = attr1.getModifiableSimpleType();
    IWDModifiableBinaryType btype1 = (IWDModifiableBinaryType) mtype1;
    btype.setFileName(attr.getName() + ".html");
    btype.setMimeType(WDWebResourceType.HTML);
    _contentType = mtype;
    Where htmlfile is a context attribute of type binary... and do a global declaration like this
    ISimpleTypeModifiable _contentType = null; (This declaration can be done at the end of your view's coding between Begin Others and End Others)
    Now,
    inside on action print
    public void onActionPrintData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String videoName )
    //@@begin onActiondisplayVideo(ServerEvent)
    byte[] content = new byte4028;
    try {
    content = this.displayPrint().getBytes("UTF-8");
    wdContext.currentContextElement().setHtmlfile(content);
    wdContext.currentPrintElement().setAttrUrl(
    _contentType.format(content));
    //Where content is loaded with data from displayPrint() method, which is holding the HTML *page to be displayed to the user *
    IWDWindow win =
    wdThis
    .wdGetAPI()
    .getComponent()
    .getWindowManager()
    .createNonModalExternalWindow(WDWebResource
    .getWebResource(content, WDWebResourceType.HTML)
    .getURL(),"ShowVideo");
    win.setWindowSize(445,460);
    win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    win.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    win.removeWindowFeature(WDWindowFeature.MENU_BAR);
    //win.open();
    win.show();
    // wdComponentAPI.getMessageManager().reportSuccess("444444444444");
    } catch (Exception e) {
    wdComponentAPI.getMessageManager().reportException ("Unable to open window"+e,false);
    //@@end
    Now finally, design your HTML Page inside the method displayPrint() like this
    public java.lang.String displayPrint( java.lang.String strVideoName )
    //@@begin displayPrint()
    String htmlcontent=null;
    htmlcontent="content what you want to show in print window";
    use script inside the html content to do a print... like window.print();
    return htmlcontent;
    //@@end
    Regards,
    Sunaina Reddy T

  • InteractiveForm UI Element in Web Dynpro Java - Image not displayed on form

    Hello Experts,
    Using: NetWeaver Developer Studio 7.0.1_06; Adobe Livecycle Designer 8.1.
    I have an image "image.png" in my src/mimes/components/com.mm.InteractiveFormComp folder within my web dynpro java project.
    I load the image into my context in wdDoInit method in the comp controller:
    wdContext.currentContextElement().setImage("image.png");
    In the interactiveform I have an ImageField on the form and have set its properties as follows:
    Field - URL = http:[host]:[port]/webdynpro/dispatcher/InteractiveFormComp/src/mimes/components/com.mm.InteractiveFormComp/image.png
    Field - Embed Image Data = "checked"
    Binding - Default Binding = Image
    However, no image ever shows up on the form. I have also been through many threads in the forums but havent found a solution. Can anyone please assist me?
    Regards,
    MM.

    Hello,
    I tried using jpg and bmp. Didn't work.
    Any other suggestions?
    Regards,
    MM
    Solved it!
    Edited by: Marshall Mathers on Mar 9, 2011 9:53 PM

  • Adobe interactive forms in web Dynpro java

    Hi Everyone,
    I am new to webDynpro development and as I am working on Interactive forms, I need pdf's and related materials for the same.
    I mean pdf's for how to create Adobe interactive forms in web Dynpro java.
    Thanks in advance.

    Go Through the following document.
    It will give you good overview.
    Interactive Forms-->Functionality
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59
    Cheers
    Satya

  • Problem when generating an non-interactive form in Web Dynpro java.

    Hi,
    I'm trying to create a PDFDocument using a creation context in java. Everything works fine when the Interactive property of the creation context is set to true. When I change it to false however, the Web dynpro application hangs and eventually throws the following exception:
    java.net.SocketTimeoutException: Read timed out
       at java.net.SocketInputStream.socketRead0(Native Method)
       at java.net.SocketInputStream.read(SocketInputStream.java:129)
       at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
       at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
       at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.readLine(HTTPSocket.java:806)
    I'm wondering why this exception occurs when i'm generating a non interactive form and never appears when i'm generating a form with the Interactive property set to true.
    Any ideas?
    Edited by: Arjan Nieuwenhuizen on Feb 25, 2008 3:24 PM

    Yeah I know changing the form properties will solve my problem, but since i'm developing a training for Interactive Forms in Web Dynpro Java, I wanted to figure out why the (static / non-interactive) combination didn't work, turned out to be a template problem, which i still didn't figure out, except the fact that having flowed content on your template is not the problem.
    My ideas about your question:
    When we have the layout of an Interactive Form, its clear if it's meant to be static or dynamic, we don't know however, if it's interactive or non-interactive.
    I don't think we can judge a layout to have an Interactive or non-interactive purpose, can depend on the situation in which the same form is shown/used:
    - One moment it can be interactive, e.g. user is filling in the form, can enter data etc.
    - Next moment it can be non-interactive, e.g. form is shown to another user.
    So it's more the scenario/situation that determines if the form is interactive or non-interactive.

  • Problems with Adobe PDF forms in Web Dynpro Java

    As of now , I have two major issues in developing Adobe PDF forms in Web Dynpro Java .
    1.Text getting wrapped and repeated from the first line :
    Any text field that flows to the next page gets wrapped at the end of the page and is again printed on the next page beginning from the first line .
    For eg:
    If I have 4 lines in a text field that is at the end of the page
    1111111111111111111111
    2222222222222222222222
    3333333333333333333333
    4444444444444444444444
    and the page holds space for only two lines it prints the lines
    1111111111111111111111
    2222222222222222222222
    in the first page and then proceeds to the next page and prints
    1111111111111111111111
    2222222222222222222222
    rather than printing
    3333333333333333333333
    4444444444444444444444
    2.No way to hide a page at runtime:
    It is not possible to hide a page in a PDF form at runtime . If scripting is used , the page turns into a blank page but not hidden .
    Any pointers on this????????
    Helpful answers will be suitably rewarded with points!!!!

    Yes,I am using the versions that you mentioned.
    I have a node called <b>MasterData</b> which is the root node for my PDF Form.I have a node called <b>GenData</b> inside this node whose <b>ctx_Appraisal_Type_Num</b> attribute is bound to a hidden TextField in my form.In the <b>docReady</b> event of this TextField, I am writing the following FormCalc script to hide my SubForm whose Id is <b>MngrCmptnc</b>
    if(MasterData.GenData.ctx_Appraisal_Type_Num == "2")
    then
    MasterData.MngrCmptnc.presence = "visible"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "visible"
    MasterData.StrImp.presence = "visible"
    else
    MasterData.MngrCmptnc.presence = "hidden"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "hidden"
    MasterData.StrImp.presence = "hidden"
    endif

  • SUBMIT(to SAP) Button in Adobe Interactive Forms (Web Dynpro Java)

    Hi ,
    I m using Adobe Interactive Forms with Web Dynpro Java
    But submit to SAP button is not working
    i m using NWDS 7.2 with adobe lifecycledesigner 6.0
    with adobe reader 9.0
    when i click submit to SAP button in interactive form nothing happens and
    data is not transfered into web dynpro Context
    Can anybody help me out................

    Hi Adi,
    The evniorment and versions you posted seems to be quite scattered, make sure all are of compatible and to the lates.
    Anyways this was not the reason for your problem.
    Can you tace if the button click event is triggered ....?
    1) when the PDF is published can you see any of the fields editable...? reason behind is generally when you create a form in ADLC it comes up in static PDF format if its so you need to make it dynamic.
    I dont know if adding the webdynpro script to your form might fix.
    Regards,
    Sai

  • Where Web Dynpro Java version of Adobe Forms are used in ESS MSS

    Hi, SDN Expert.
    I am working on research the use of Adobe Interactive Forms in the current processes of HCM ESS MSS.
    We are on ECC5.0, EP7.0, and ESS MSS SP21. We are in the midst of upgrading to ECC6.0.
    Do you know where Web Dynpro  Java version of Adobe Forms are used in ESS MSS are used? OR are they all in Web DYnpro ABAP version in ECC6.0?
    Thanks,
    KC

    Sergio,
    FYI.
    I am trying to see how the form I design/modify in TCode: SPF are working together to these piece of codes I found in NWDI WD4J pcui_gpisrsap.com --> VcISRShowForm DC --> ShowForm view:
    public void wdDoInit()
        //@@begin wdDoInit()
              InteractiveForm form =
                   (InteractiveForm) ((View) wdThis.wdGetAPI()).getElement("IsrForm");
              form.setDynamicPDF(true);
              form.bindPdfSource((IWDAttributeInfo) null);
        //@@end
    public static void wdDoModifyView(IPrivateShowForm wdThis, IPrivateShowForm.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
              logger.pathT("Entering: wdDoModifyView");
              // Dynamic context generation
              // Bind context
              if (wdContext.nodeNewGenericChildNodes().size() > 0) {
                   if (wdContext.currentContextElement().getContextToBeReset())
                        wdContext.nodeData().getContext().reset();
                   IWDNodeInfo genericNode = wdContext.nodeData().getNodeInfo();
                   IWDNodeInfo origNode =
                        wdThis
                             .wdGetVcISRShowFormController()
                             .wdGetContext()
                             .nodeGenericNode()
                             .getNodeInfo();
                   IWDNodeInfo childNode;
                   IWDNodeInfo deepChildNode;
                   for (int i = 0;
                        i < wdContext.nodeNewGenericChildNodes().size();
                        i++) {
                        childNode =
                             origNode.getChild(
                                  wdContext
                                       .nodeNewGenericChildNodes()
                                       .getElementAt(i)
                                       .getAttributeValue("name")
                                       .toString());
                        deepChildNode = childNode.getChild("DATA");
                        genericNode.addMappedChild(
                             childNode.getName(),
                             null,
                             childNode.isSingleton(),
                             childNode.isMandatorySelection(),
                             childNode.isMultipleSelection(),
                             childNode.getPathDescription(),
                             false,
                             true);
                        genericNode.getChild(childNode.getName()).addMappedChild(
                             deepChildNode.getName(),
                             null,
                             deepChildNode.isSingleton(),
                             deepChildNode.isMandatorySelection(),
                             deepChildNode.isMultipleSelection(),
                             deepChildNode.getPathDescription(),
                             false,
                             true);
                        genericNode
                             .getChild(childNode.getName())
                             .getChild(deepChildNode.getName())
                             .addAttributesFromDataNode();
              // Avoid another context generation - all context have been generated
              wdContext.nodeNewGenericChildNodes().invalidate();
              InteractiveForm form = (InteractiveForm) view.getElement("IsrForm");
              //Set the template source of the form (if necessary)
              if (wdContext
                   .currentIsrParamsElement()
                   .getSetTemplateSourceNecessary()) {
                   form.setTemplateSource(
                        wdContext.currentIsrParamsElement().getTemplateSource());
                   wdContext.currentIsrParamsElement().setSetTemplateSourceNecessary(
                        false);
              logger.pathT("Exiting: wdDoModifyView");
        //@@end

  • About Adobe Form and Web dynpro Java development

    Hello experts,
    We had  a requirement to display different Adboe Forms dynmaticlly in Web dynpro Java application.
    There is only one Web dynpro Java application, but 10 Adobe Forms . If user "a" access the application ,display form 1 ; if user "b" access the application , display form 2 ;  if user "c" access the application , display form 3.... just like this.
    There are about 30 fields in BAPI which Web dynpro Java application called . Form 1 mapping to field 1 to field 3, Form 2 mapping to field 4 to field 6, Form 3 mapping to field 7 to field 9 ....
    Is it possible ? If it is possible , could you please give me a solution ?
    Thank you in advance !
    Best Regards,
    Louis

    Siva,
    I referred to the website, but still having issues with generating tables in Adobe Form. I can get all the table rows in the adove form, but the pdf doee not add new pages to display all the table rows. It just createa one page with the table inside it, display few of the rows and truncates rest of the table data.
    Here is the heirarchy of the page with the properties set
    Master Pages ---
            ||--> Page 1
                     ||--> content area
                     ||--> subfrom (properties:: Content - Flowed / Flow direction - top to bottom...pagination tab is greayed out completly)
                                ||--> Table
                                          ||--> HeaderRows (Object: Row - Type: Header Row)
                                          ||--> Row1 (Object Tab/Binding: Repeat Row for each data item - checked)
    Can't make it wor, not sure what's wrong here
    I am using NDS 7.0 SP18 and Adobe LiveCycle 8.0. Does that could be a problem.
    Appreciate your help
    John

  • HTTP form post from Web Dynpro Java Application without opening new window

    Hi Experts,
    We are trying to submit form data to an external URL from Web Dynpro Java application. We are achieving this with the following piece of code.
      try
       strPrintContent="<html>"+
         "<head>"+
         "<script type=\"text/javascript\">"+   
         "function myfunc () "+
         "{"+
         "var frm = document.getElementById(\"paymentForm\");"+
         "frm.submit();"+
         "}"+
         "</script>"+
         "</head>"+
         "<body onLoad=myfunc()>"+
         "<form id=paymentForm  method=post action=\""+merchantURLPart+"\">"+
         "<INPUT type=hidden name=username value="+userName+">"+
         "<INPUT type=hidden name=pass value="+passWord+">"+
         "<INPUT type=hidden name=senderid value="+senderID+">"+    
         "<INPUT type=hidden name=dest_mobileno value="+mobile+">"+
         "<INPUT type=hidden name=message value='"+msg+"'>"+
         "<INPUT type=hidden name=response value="+response+">"+
         "</form>"+
         "</body>"+
         "</html>";    
      IWDWebResource webResource = WDWebResource.getWebResource(strPrintContent.getBytes(),WDWebResourceType.HTML);
      IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(webResource.getAbsoluteURL(),"WBSEDCL");
      window.show();
      catch(Exception e)
      wdComponentAPI.getMessageManager().reportException("Error : "+e.toString(),false);
    But it opens another window. We dont need that. We have to stay on the same window.  Please suggest what can be done.

    Hi,
    You can create a HTML file with the request post parameters and the external URL something like this:
    public java.lang.String GetRedirecturl( )
    // External URL
    String html = "<html><head></head><body onload=\"load()\"> " +
    "<form id=\"form1\" action=\"https://www.abc.com/xyz.jsp\" method=\"POST\">" +
    // Post Parameters
    "<INPUT TYPE=\"HIDDEN\" NAME=\"Param1\"VALUE=\""+Param1Value+"\">"+
    "<input name=\"sap-wd-resumeurl\" type=\"hidden\"/>" +
    "</form> " +
    "" +
    "<script>" +
    "function load(){" +
    "var loc = window.location.search.substring(1);" +
    "var queryString = loc.split(\"sap-wd-resumeurl=\");" +
    "if(queryString.length > 0)" +
    "{" +
    "var resumeURL = queryString[1].split(\"&\");" +
    "if(resumeURL.length >= 0)" +
    "{" +
    " document.forms['form1'].elements['sap-wd-resumeurl'].value= unescape(resumeURL[0])" +
    "}" +
    "}" +
    "document.getElementById('form1').submit();" +
    "}" +
    "</script>" +
    "</body> </html>";
    String redirectUrl = "";
    byte[] byteArrayHtmlData = null;
    try {
      byteArrayHtmlData = html.getBytes("UTF-8");
    } catch (UnsupportedEncodingException e) {
      wdComponentAPI.getMessageManager().reportException("Internal error occurred. Please try after some time",true);
    IWDResource htmlResource = WDResourceFactory.createCachedResource(new ByteArrayInputStream(byteArrayHtmlData), "Redirect.html", WDWebResourceType.HTML, true);
    redirectUrl = htmlResource.getUrl(WDFileDownloadBehaviour.AUTO.ordinal());
    return redirectUrl;
    Hope this will be helpful.
    Regards,
    Anurag

  • Call a user defined method in web dynpro from interactive forms

    Hi All,
    how to call a user defined method in web dynpro java, when a selecting value from drop down list which is in interactive forms by adobe
    thanks.
    Edited by: venkat99 on May 24, 2010 4:52 PM

    Well, you can use F4 help, of course, check here: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/a1900622ec062be10000000a42189d/frameset.htm
    You need to select the value first and then use the submit button, which is mapped to the WD action submit (you have to set this up in WD designer!!). To use the submit button for more actions, you need to use something like a hidden field, where the value is set according to the action you want to do with your submit button. The submit sends this value back to WD, where you can switch the program code according to the value.
    Otto
    p.s.: and maybe this blog can help: /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view

  • Creating sales order using web dynpro JAVA

    Hello everyone,
    i am new to web dynpro. Can any one tell me how to creating sales order by web dynpro JAVA using BAPI.
    Thanks.
    Vinita Sharma

    Hi...
    you can use Adaptive RFC methodology in web dynpro java to work with BAPIs..... these are standard bapi's provided
    Here are required Bapis... select which one you want....
    BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
    BAPI_ORDER_CHANGE_STATUS_GET Change status for order
    BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
    BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
    BAPI_SALESORDER_GETSTATUS Sales order: Display status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    check this thread SALES ORDER creation using BAPI
    sample java program which will call SAP bapi function sales order create
    PradeeP

Maybe you are looking for

  • After Installing Adobe Muse CC Trial, I Get an Error: 5 when attempting to launch. How do i fix this?

    Hi, I've just downloaded the trial version of Adobe Muse CC to my desktop. I'm using Windows 7. When trying to launch the app, I get asked to uninstall and reinstall Adobe Muse which i have done but still receive an Error:5. How can i fix this?

  • Unable to choose save as feature in pages

    Hello, I have pages for macbook pro and it doesn't give me the save as option to choose from the file menu.  Any suggestions? MacDeven

  • OLE Control, Oracle 8.1.7 Disconnect

    We are using an OLE Custom Control (OCX) to embed a Visual C++ / ActiveX control in a PB 8.0.1 application. When connecting to Oracle 8.1.7, the PB 'Disconnect;' statement causes a PB/Windows memory reference error ('The instruction at "0x77f83a33" r

  • File Saving in Ipod touch

    In my old ipod 5th generation 30gb ipod classic i could go into a file called ipod control and save files therefore using it as an memory key saving word documents and the like. however now on my 2nd gen 32gb ipod touch i cannot find this file or do

  • Now you see it, now you don't

    This is one of the worst kind of problems to solve. I used a program that had a setting to create an SWF file as output. This is the code it created for me. It works fine on most pcs but on others nothing happens! Its baffled me for 2 weeks and I hav