Nested tables and subforms (Web Dynpro Java)

Hi to all you gurus,
my scenario is the following: I have 3 nested nodes in a view context like these
DEFECTS_NODE
|          ACTIONS_NODE
|           |        SUBS_NODE
|           |          |__action value
|           |          |__defect value
|           |          |__sub value
|           |__action value
|           |__defect value
|__defect value
|__ decription
All 3 nodes have cardinality 0...n. These nodes are structured as if we have some actions under the same defect value and some subs under the same action value and defect value and so on. so we can have more defects_node with more nested actions_node (with the same defect value) and more nested subs_node (wiith the same action value).
I hope I was clear...
Now, I have to read these nodes and output them in a pdf with 3 nested subforms (defects, actions, subs). These 3 subfoms must be a mirror of the 3 nested nodes.
can you help me??how can i do this?
thank you very much in advance,
Enrico
Edited by: Enrico Grimaldi on Mar 29, 2010 12:50 PM

hello,
I don´t understand your problem. When you´re in LCD and can see your context data in the data view tab, you can just drag and drop the root of your form context and when placing that on the form layout, the whole structure should be generated by the system for you.
Otto

Similar Messages

  • Create a Table Dynamically in WEB Dynpro Java with diferent type of column

    Hi everyone, I have a question if is possible to create a table dynamically in Web Dynpro Java?, depending of the RFC consults create the rows dynamically, ,this table must have diferent type of columns, for example link column (when the user click this link execute an action and show a adobe interactive form in another view), image column (show an image depending of the information)
    Thank you everyone
    Atte Israel

    Hello,Israel.
    Yes , it is possible through dynamic programming in wdModify of the View.
    You can do this ,for example, using cell variants.
    IWDTable tab = (IWDTable) view.getElement("TABLE_NAME");               
    IWDTableStandardCell cellV= (IWDTableStandardCell) view.createElement(IWDTableStandardCell.class,"TableStandardCell"+i); 
    cellV.setVariantKey("NotEditableVariant");
    cellV.setCellDesign((WDTableCellDesign)wdContext.nodeTableDaysTitle().currentTableDaysTitleElement().getAttributeValue("CellDesign"+i));
    IWDTextView textViewi= (IWDTextView) view.createElement(IWDTextView.class,"TextView"+i);  // -- here you control the type of the object that is displayed in the cell
    textViewi.bindText(dayAttrib);
    cellV.setEditor(textViewi);          
    tabColumn.addCellVariant(cellV);
    tab.addGroupedColumn(tabColumn,tab.numberOfGroupedColumns());     
    Using this code you can control even specific cells in the table and not only columns.
    Hope this helps you,
    Constantine

  • Weblog for Simple way to debug ESS and MSS Web Dynpro Java applications

    Here is the link to the new Weblog topic "Simple way to debug ESS and MSS Web Dynpro Java applications"
    /people/yugandhar.reddy/blog/2011/03/26/simple-way-to-debug-ess-and-mss-web-dynpro-java-based-applications--very-useful-technique

    Thanks Siddharth. I was trying as you suggested, I was trying to add the link to the FAQ's but looks like the wiki is locked or I dont have permission to create a page in it. Is there any other way to do it?
    Edited by: Yugandhar  Reddy on Mar 28, 2011 5:04 PM

  • May I create  a  editable table cell in web dynpro java?

    Hi erveryone:
    i can see the readonly property of table in studio,but i can't input data after deployed view to the portal,can i create table include editable cell?
    best regard
    reefish

    Hi,
    When u create the table, choose apply template option>choose table>select the context node to be bound. In the Table Binding Wizard, choose the editor as Input Field.
    Regards,
    Rachel

  • Date Column not getting sorted in a table in web Dynpro Java

    Hi All,
    I am facing an issue while sorting the date column in a table in my web dynpro java application.
    When the date is displayed in the sql format in tha table, I am able to sort the date column successfully but when we convert the date field from sql format to util format in our table and then sort it does not work.
    Kindly let us know the steps to be followed in this case to sort the date column of a table in Simple Date format as we do not want date in the sql format to be displayed.
    Thanks & Regards,
    Anurag

    Hi,
    You might want to check whether both your browser's language settings are identical. The browser language could also determine the date format.
    As a workaround, you could add an extra attribute to your context, and set the calculated property to 'true'.
    In your table, add a new column and bind to this new attribute, and hide your original date column
    If you sort using the date column that's hidden now, you could use the calculated field to fixed-format your date the way you prefer (by using the SimpleDateFormatter class for instance)
    Cheers,
    Robin

  • ALV table in Web dynpro java

    Hello Experts,
    I have a task to migrate the usage of UI element IWDtable to ALV Table in my application for some features like Sorting and filtering supported in ALV table.
    I searched in Google and SDN about the ALV table, could not find any document about ALV table in Java (Found docs only with ABAP).
    Is ALV table supported in Web dynpro java ? If yes, please pass me the URL for the basics of ALV table.
    Thanks in Advance,
    Regards,
    Harish

    Hello,
    I understand from previous posts in this thread, that the ALV is not yet available for use within WebDynpro. Although it is already documented in the NWDS documentation under:
    SAP NetWeaver CE Developer Studio Documentation > Developer's Guide > Developing and Composing Applications > Developing User Interfaces with Web Dynpro for Java > Reference > UI Element Guide > Tables and Lists > Displaying Lists with SAP List Viewer > Integrating SAP List Viewer into Applications
    Since it is listed under "Developing User Interfaces with Web Dynpro for Java" I would assume that is should be possible. We are on NW CE 7.1 SP5.
    I tried to get a test application running based on the documentation, but the documentation is too thin and I run into an Null-Pointer exception in a SAP class called:
    at com.sap.ip.bi.alv.rendering.ALVGraphicsRenderer.init(ALVGraphicsRenderer.java:117)
    If it is not yet released for use then I wonder why it is already part of the documentation ?
    Take care
       Ingo

  • Question about meta-data of Web Dynpro ABAP / Web Dynpro Java

    Hello together,
    everywhere I can read, that Web Dynpro meta-data is platform independent.
    I´ve read into a book, that the meta-data of Web Dynpro Java is saved as XML and
    that Web-Dynpro Java Runtime generates runnable classes and sourcecode out of this...
    - What about Web-Dynpro ABAP? Is Meta-code in ABAP is saved in XML too?
    - just for theory: is ist possible to take the meta-data of a Web-Dynpro ABAP component and
      generate a Web-Dynpro Java Component out of this?
    I tried to find it out but i failed... In table WDR_RR_LOAD (is this the right one?) I found only the
    field data. But this is a RAWSTRING and I don´t know how to make I "readable".
    I must know this for my thesis for my studies, not for work.
    Thank you very much !!!!
    Greetings,
    Oliver

    Me again,
    I am not sure if I understood it right...
    The meta-data which describes the visual part of a view is saved as XML and
    would be rendered i.e. in the webbrowser... Right?
    What about the meta-data of the Web Dynpro application?
    Is this meta-code into an other structure or XML too?
    Thank you very much.
    Many Greetings,
    Oliver

  • Advantages of web dynpro java

    Hi,
    Can any one tell me what is the difference between web dynpro java and visual composer?
    And how web dynpro java is avantages over the visual composer?
    Regards,
    H.V.Swathi

    Hi,
    Please go through the links
    What is Visual Composer? User Guide
    http://help.sap.com/saphelp_nw04/helpdata/en/01/4b7e40417c6d1de10000000a1550b0/frameset.htm
    SAP NetWeaver Visual Composer - How to Guides
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/16244247-0a01-0010-3294-d81c21e7e86e
    Creating Applications Using SAP NetWeaver Visual Composer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/2456bf8a-0a01-0010-709a-ffc91ade9f42
    How to Model Portal Content Using SAP Visual Composer u2013 No Programming Required!
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ff65b5a2-0a01-0010-5b97-e747192a1d49
    Troubleshooting VC:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8ee70a47-0a01-0010-d198-f94c2d7d320c
    VC e-Learning:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5a35194b-0a01-0010-7598-a4bb10e0c5c9
    VC
    https://www.sdn.sap.com/irj/sdn/visualcomposer
    Webdynpro Tutorials
    http://help.sap.com/saphelp_nw70/helpdata/en/52/4c6c3e58d0d064e10000000a114084/frameset.htm
    What is Web Dynpro? What is Web Dynpro?
    Why WebDynpro ? Why WebDynpro ?
    Benifits of using Webdynpro Benifits of using Webdynpro
    Hope This helps
    Santosh

  • Error Input table in web dynpro java

    Hi expert
    I'm trying to create a service order via web dynpro java, but i can't use the input parameter of type table;
    With this implementation of the method init of the custom controller ,on the table i can insert only an element, because the table have only a row.    wdContext.nodeIt_Input_Items().size() = 1
      public void wdDoInit()
        //@@begin wdDoInit()
         Crm_Wap_Order_Create_Input input = new Crm_Wap_Order_Create_Input();
              wdContext.nodeNode_custom_controller().bind(input);
         Crm_Wap_Input_Items table = new Crm_Wap_Input_Items();
                   wdContext.nodeIt_Input_Items().bind(table); 
              input.setIv_Bp(input.getIv_Bp());
                   input.setIv_Currency(input.getIv_Currency());
                   input.setIv_Description(input.getIv_Description());
                   input.setIv_Offline_Luid_Order(input.getIv_Offline_Luid_Order());
                   input.setIv_Ord_Delivery_Date(input.getIv_Ord_Delivery_Date());
                   input.setIv_Order_Guid(input.getIv_Order_Guid());
                   input.setIv_Pers_Resp(input.getIv_Pers_Resp());
                   input.setIv_Po_Number_Sold(input.getIv_Po_Number_Sold());
                   input.setIv_Proc(input.getIv_Proc());
                   input.setIv_Save(input.getIv_Save());
                   input.setIv_Selected_Prod(input.getIv_Selected_Prod());
                   input.setIv_Ship_To(input.getIv_Ship_To());
              for(int i=0;i<wdContext.nodeIt_Input_Items().size(); i++) {
                   table.setOrder_Qty(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getOrder_Qty());
                   table.setProd(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getProd());
                   table.setDelivery_Date(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getDelivery_Date());
                   table.setSequence(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getSequence());
                   table.setUom(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getUom());
                   table.setLine_Guid(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getLine_Guid());
                   if(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getProd()!= null)
                    input.addIt_Input_Items(table);
        //@@end
    I've tried, with a button, to insert more row, and i do that, but the additionals rows are not passed to the function, but only the row created with the method wdDoInit();
    How can i bind the additional row at the context??
    Somebody know a tutorial for create an order via web dynpro java??
    Please Help me
    Best regards
    Marco

    hi Bhargava
    sorry for the late..
    no in the init method i do the binding of the parametere, because if i'dont it in the init mothod the parameters are not editable..
    Link:[http://img29.imageshack.us/i/56a7250185252a1d06af141.png/]
    in me button metho i execute the BAPI....
      public void wdDoInit()
        //@@begin wdDoInit()
         Crm_Wap_Order_Create_Input input = new Crm_Wap_Order_Create_Input();
        wdContext.nodeNode_custom_controller().bind(input);
             //input.setIt_Input_Items(new AbstractList());
         Crm_Wap_Input_Items table = new Crm_Wap_Input_Items();
         wdContext.nodeIt_Input_Items().bind(table); 
              input.setIv_Bp(input.getIv_Bp());
                   input.setIv_Currency(input.getIv_Currency());
                   input.setIv_Description(input.getIv_Description());
                   input.setIv_Offline_Luid_Order(input.getIv_Offline_Luid_Order());
                   input.setIv_Ord_Delivery_Date(input.getIv_Ord_Delivery_Date());
                   input.setIv_Order_Guid(input.getIv_Order_Guid());
                   input.setIv_Pers_Resp(input.getIv_Pers_Resp());
                   input.setIv_Po_Number_Sold(input.getIv_Po_Number_Sold());
                   input.setIv_Proc(input.getIv_Proc());
                   input.setIv_Save(input.getIv_Save());
                   input.setIv_Selected_Prod(input.getIv_Selected_Prod());
                   input.setIv_Ship_To(input.getIv_Ship_To());
              for(int i=0;i<wdContext.nodeIt_Input_Items().size(); i++) {               
                   //wdContext.nodeIt_Input_Items().ge
                   table.setOrder_Qty(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getOrder_Qty());
                   table.setProd(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getProd());
                   table.setDelivery_Date(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getDelivery_Date());
                   table.setSequence(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getSequence());
                   table.setUom(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getUom());
                   table.setLine_Guid(wdContext.nodeIt_Input_Items().getIt_Input_ItemsElementAt(i).getLine_Guid());
                   input.addIt_Input_Items(table);
        //@@end
    this is the init...
    in the button method
      public void CreateOrder( )
        //@@begin CreateOrder()
         try
              wdContext.currentNode_custom_controllerElement().modelObject().execute();
              wdContext.nodeOutput().invalidate();
              catch (Exception ex)
               ex.printStackTrace();
        //@@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

  • Advantages and dis advantages of web dynpro java

    Hi Guys,
    May i know what are the advantages and dis advantages of web dynpro java?
    Regards,
    Madhu

    Hi Madhu,
    Web Dynpro (WD) is a proprietary web application user interface technology developed by SAP AG and exists in a Java (Web Dynpro for Java, WDJ or WD4J) and an ABAP (Web Dynpro ABAP[1]  , WDA) flavor. Both have in general the same functionality, but usually one flavor is improved after the other, so temporary one flavor is more advanced than the other. Hence, the decision for one of the two flavors shall be based on organizational and business circumstances, but not on functionality.
    WD follows an adapted MVC pattern and a model driven development approach ("minimize coding, maximize design") with a large number of dedicated hooks in generated code to place custom coding. It is intended for business applications that shall follow standardized UI principles, connect to backend systems and be scalable.
    Main advantages of Web Dynpro over other technologies
    typed access for design time checks, e.g. navigation links and messages are accessed via types instead of string keys like in JSF
    diverse services for backend access, like aRFC, JEE and Web Service data models
    integration with SAP Interactive Forms by Adobe, which are interactive PDF forms, during design (same IDE) and run time (data sharing)
    integration with business process management and business rules management (since NetWeaver CE 7.1 EHP 1)
    designed to support development big scale applications by adding multiple grouping layers on top of Java packages (DCs, SCs, products)
    runs on different clients e.g. web browser, mobile device, widget engine
    comes with a big collection of UI elements providing a wealth of functionality and only have to be configured but not programmed
    Main disadvantages
    proprietary, running only on SAP servers
    less flexible due to support for multiple clients (i.e. custom html is not possible). To reduce the limitations, several measures have been taken. For example, WD supports so-called "islands" for e.g. flash applications that enrich the Web Dynpro UI element collection by rich UI elements. This disadvantage doesn't seem so serious but in fact basic features that user expect to receive cannot be implemented (e.g. coloured rows in table, colours in general, advanced aligning of simple UI elements (due to nonexistence of more complicated ones), selecting multiple rows in tree-like tables (this is due to preserving basic concept of WD) and many more). Having the flash feature means that developer completely avoids WD UI (And thus cannot use other features).
    rendering speed in browser for larger tables (>1000 rows)
    The designtime and runtime environment is part of SAP NetWeaver 7.0[2] (also known as Netweaver 2004s) and following releases.
    The name comes after the original Dynpro library, whose name meant "Dynamic Program".
    Regards,
    Pradeep Kumar

  • Reading and displaying Ms.Word document with web dynpro java

    Hi,
    I'm using NetWever developer studio 7..0.21.
    I'm developing web dynpro java application.I'm in difficulty to read and display word document with its original format in web dynpro view. Is it possible?
    If possible , is there a blog etc.?
    Thanks.

    Hello,
    You have to use the Office Integration Library. Please, follow the documentation below:
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/32853febec3c17e10000000a114084/frameset.htm
    I hope this helps you.
    Regards,
    Blanca

  • How to use Web Dynpro Java isChanged and isChangedByClient

    Hello,
    I have read thorugh a lot of documentation, threads, ... --> but the picture is not geting clearer fro me.
    We have Web Dynpro Java Application (on Netweaver 7.0 SP12) running in Enterprise Portal. We need to tell the portal work protect mode, that we have unsaved changes (how to do this is clear).
    I am struggling with figuring out, that my Web Dynpro Context has unsaved changes. I found the two change-indicators isChanged() and isChangedByClient(), which already confuses me a little bit.
    Anyway, this is what I have figured out so far:
    I am calling wdContext.currentContextElement().isChangedByClient() to figure out changes and when a Save operation has been completed sucessfully, I call wdContext.currentContextElement().node().getContext().resetChangedByClient(). This works for some of the changes made by the user.
    I then tried calling wdContext.nodeABC().getElementAt(i).isChanged() for all nodes of my Web Dynpro Context, but this results in detecting changes before the user ha done any interaction.
    Implementing an own change tracking (i.e. by adding a changed-Attribute to each context node) does not seem a viable option for me.
    So these are my questions:
    - Does anyone now a working pattern relying on those chnage indicators ?
    - Does anyone now how to reset the isChanged indicator (or when it is resetted by the framework) ?
    Any help appreciated.
    Thank you,
    Stefan

    Hi
    Check this link
    Re: How to keep isChangedbyClient flag set between roundtrips?
    http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeElement.html
    Thanks

  • Difference between web dynpro java and web dynpro abap

    Hi this is watson maureen,
                 I wnat to know what is  the difference between web dynpro java and web dynpro abap?
    thank
    maureen

    Hi watson,
    Go through these links, you will get the difference between web dynpro java and web dynpro abap
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0e4940c-035c-2b10-0b9d-eb8f99674f4e
    Web Dynpro: ABAP or Java?
    Regards
    Sreedhar.

  • Problem in completing the TASK when using Web Dynpro Java and BPM

    Hi,
    I am using Web Dynpro Java and BPM.
    i see my Web Dynpro View when i run the process.
    Just that the task is not completing.
    when i click on the Web Dynpro button to signal the completion of the event, nothing happens.
    i have appropriately created events in both Component controller and Interface Controller and used the same in creating the Task.
    a method in Component controller fires the event and a button click in the view calls this method.
    i have successfully completed Donka Dimitrova's "SAP Netweaver Business Process Management-End-to-End Process Implementation Sample " but when i tried my own with slight modifications, it is not working !!!
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d07f3e88-554f-2b10-3cbf-ab8afea51b9f
    regards,
    -Amol Gupta

    Hi Amol,
    The way you described the things, I dont see any problems. Just to make sure that you are triggering the right event that you mapped as completion event for the task, try to cross check once again and see if the correct event is getting triggered. Also try to put some messages for debugging to see till where the control goes.
    Regards,
    Arafat

Maybe you are looking for

  • ERROR : OpenDoc CR to PDF - File is too large for attachment.

    We are getting the following error in 3.1 using an OpenDoc call when we call a large Crystal Report to PDF format... Error : 52cf6f8f4bbb6d3.pdf File is too large for attachment. It runs OK from BOE when given parameters that returned 44 pages. (PDF

  • Safari 2.0.4 - Uses a lot of memory  ??

    Hello, I own an Intel iMac MA200. I noticed after Safari's 2.0.4 update that it uses a lot of memory, sometimes even as much as 200MB The cure I found is to restart Safari. Sometimes, I need to even Force Quit it. When I finish using my iMac, and clo

  • How do I GET the 'set text of container' behavior in DW CS3 if it's missing?

    I'm building a site using CSS in DW CS3 (bought in May 2006) that has some photo gallery pages where a large image changes per thumbnails to its right that are clicked. The thumbnails are in their divs and the wished-for big image should appear in a

  • Camera Raw 6.7 does not save XMP files

    I am running Camera Raw 6.7 on a Windows XP machine. In the Preferences under "General" I have the "Save image settings in" set to "Sidecar ".xmp" files. And in the DNG File Handling, I do NOT have the "Ignore sidecar ".xmp." file check-box checked i

  • Best workflow for deinterlacing DV NTSC?

    I've been trying to upload some DV NTSC material to the web, so as a final step I've been deinterlacing the video through compressor. For some reason, I couldn't get frame controls to work successfully, and I also couldn't get it to export as progres