Nested table in webdynpro java

Hi Experts,
I have a requirement where i need to display nested table. I am using NWDS 7.0.14.
Is it possible to design grouped rows?
Thanks in advance,
Vinay

Hi Vinay,
It is not possible in NWDS 7.0 to create nested tables.
Thanks & Regards,
Bhargava.

Similar Messages

  • How to insert a button on the column header of a table in webdynpro java

    Hi
    Can anyone tell me how to insert a button on the column header of a table in webdynpro java?
    regards
    sunit

    Hi sunit,
    Instead of adding button in the column header , in the column
    add a fixed top cell.
        right click on the column
        Insert FixedTopCell
        Right click on the fixedTopCell
        insert Editor.
       select button.
    then button will be only in the top most row.
    Hope it will satisfy ur requirement
    Regards
    Smitha

  • Binding and displaying data to table in webdynpro java

    hi all,
    i want to know how to bind the output values to table in webdynpro java.
    i know how to bind values in context to table,but if we want to display the values from database(back end ) and display in table present in the view.
    eg: i have table in view and want to get values from backend(SQL server) and display it in that table.
    plz help me to know ..
    thanks
    sirisha

    Hi Saisirisha,
    Try this.
    1> Take a Value Node(Employee) cardinality 0..n.
    Employee Structure
    Employee
    |------Surname(Attribute)
    |------FirstName(Attribute)
    |------Category(Attribute)
    2> Bind this value node(Employee) in the View datasource of table.
    3> Try the code inside wdDoInit method.
    try {
         // Load the JDBC-ODBC bridge
         Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
         // specify the ODBC data source's URL
         String url = "jdbc:odbc:SSPer";
         // connect
         Connection con = DriverManager.getConnection(url,"North","Ken");
         // create and execute a SELECT
         Statement stmt = con.createStatement();
         ResultSet rs = stmt.executeQuery
         ("SELECT Surname,FirstName,Category FROM Per");
         while (rs.next()) {
         // get current row values
         String Surname = rs.getString(1);
         String FirstName = rs.getString(2);
         int Category = rs.getInt(3);
         //create table row and add the value in the table
         IPrivate<Put View Name>.IEmployeeElement empElm = wdContext.createEmployeeElement();
            empElm.setSurname(Surname);
         empElm.setFirstName(FirstName);
         empElm.setCategory(Category);
         wdContext.nodeEmployee().addElement(empElm);
         // close statement and connection
         stmt.close();
         con.close();
    } catch (java.lang.Exception ex) {
         wdComponentAPI.getMessageManager().reportException("Exception : "ex.getMessage()+,true);
    http://www.developer.com/java/data/article.php/3417381
    Regards,
    Mithu

  • Providing sorting filters for a table in webdynpro java application

    ho to provide sorting  , filters , for a table in webdynpro java application .

    Hi Pradeep,
    Please go through the following article on implementation of filtering and sorting:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f024364b-3086-2b10-b2be-c0ed7d33fe65
    The article contains a link to a sample application using the TableSorter and TableFilter Class.
    The same classes can be used by any other web dynpro application. Download the sample application and copy the classes. In case of a specific requirement, modify the TableSorter and TableFilter classes.
    Regards,
    Kartikaye

  • Access ABAP table in Webdynpro Java application

    Hi All
    Is it possible to access ABAP table in Webdynpro Java application
    Please provide your input
    Thanks
    Karthi D.

    Hi you will connect to the remote SAP system, the
    backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
    of your Web Dynpro project
    In WebDynpro java you RFC by using Model :
    Adaptive RFC Model
    1. automatically adapts to changes in function module signature
    2 provides support for data types and extensibility
    3.support for different structure definitions in different backend
    systems (release dependent structures, custom adaptation)
    Basic principles and guidelines
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
    See this blog
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
    http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks,
    Tulasi

  • Can we access PI tables from WebDynpro Java via PI 7.1?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi Neha,
    You can access PI tables from Webdynpro Java application using RFC or Webservices. Create RFC or Webservices which will fetch data from the PI tables.Create the required JCO's and the Webdynpro java application which uses the Adaptive RFC model or Adaptive Webservice Model to connect to the ECC system.
    I found a document that speaks about fetching data from SXMB_MONI Standard Table https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050ff4f-84c3-2b10-3d99-8f9c44f57a17
    Hope this is useful.
    Regards,
    Seema Rane.

  • Enhancing Tables in WebDynpro Java using Table Utilities

    hi all,
        I want to export  table date into excel2003.I go through a blog
               /people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities
    but I am export my table data into excel.Can anybody send tutorial of this project.?
    Thanks&Regards
    Suresh Kumar T.

    Hi Suresh,
    You can download the project from the following link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#58
    Hope it helps.
    Regards
    Nikhil

  • Dynamic table in Webdynpro Java

    Hi Colleagues,
    I need to develop a table dynamically in webdynpro(Java), the table should not contain scrollbar, header, lines and border...Actual requirement is to group 12 elements in the from of a table
    could anyone please help me here?
    Thanks & Regards
    Swetha

    Hi Armin,
    In a window i have to develop a part of window which looks like this
    Image             URL                      Description
    Image             URL                      Description
    Image             URL                      Description
    Image             URL                      Description
    I have tried doing this using Flow layout for each line
    But when i follwed that the last column "description" is not alligned in a straight line(for all rows)
    structure is not even as shown above
    (varying depending upon the length of the URL)
    Here i have attached the piece of code i  used
    IWDTransparentContainer MainContainer1 = (IWDTransparentContainer)view.createElement(IWDTransparentContainer.class);
           IWDFlowLayout flowlayout1 =  (IWDFlowLayout)MainContainer1.createLayout(IWDFlowLayout.class);
    ////For adding Image 
           IWDImage image = (IWDImage)view.createElement(IWDImage.class);
           image.createLayoutData(IWDFlowData.class);      
           image.setSource("~sapicons/s_b_alet.gif");
    /////for Adding URL
           IWDLinkToAction link1 = (IWDLinkToAction)view.createElement(IWDLinkToAction.class);     
           IWDTextAccessor link1text = wdComponentAPI.getTextAccessor();
           link1.setText("Collaboration Window");
           IWDAction Action1  = (IWDAction)view.getAction("Openlink");
           link1.setOnAction(Action1);
           IWDFlowData linkdata1 = link1.createLayoutData(IWDFlowData.class);
           WDLayoutCellDesign rightpad = WDLayoutCellDesign.R_PAD;
           WDLayoutCellSeparator seperator = WDLayoutCellSeparator.LARGE;
           linkdata1.setCellDesign(rightpad);
           linkdata1.setVGutter(seperator);
    ///for adding description      
           IWDTextView text1 = (IWDTextView)view.createElement(IWDTextView.class);
           text1.setText("Testing");
           IWDFlowData textdata1 = text1.createLayoutData(IWDFlowData.class);
           textdata1.setCellDesign(rightpad);
           textdata1.setVGutter(seperator);
           MainContainer1.addChild(image);
           MainContainer1.addChild(link1);
           MainContainer1.addChild(text1);
           IWDGridData maincont1 = MainContainer1.createLayoutData(IWDGridData.class);
           maincont1.setPaddingLeft("10px");
           maincont1.setPaddingTop("20px");
    I found that this static way of adding rows is not the right way( Keeping in mind the future enhancements)
    So thought of trying it through table
    i have used IWDtable ...but the look does'nt meets the requirement at all(it has header....border..scrollbar..rows and colums are seperated by lines---> which are not needed)
    Could you please let me know is there a approach to do this?
    Thanks & Regards
    Swetha
    Edited by: Swetha Nellore on Feb 18, 2009 12:32 PM
    Edited by: Swetha Nellore on Feb 18, 2009 12:33 PM
    Edited by: Swetha Nellore on Feb 18, 2009 12:34 PM

  • Build gui for existing oracle database tables with webdynpro java?

    hi
    i want to build a GUI to maintain existing oracle tables
    so far we used oracleFORMS to do so
    is there a good approach for webdynpro java? or do you recommend other sap tools?
    can we generate the gui with a wizard based on the fields in the table?
    do we have to generate sql statements or type in manually?
    regards
    joerg

    Hi Joerg,
    generally that is possible, but you'll have to implement the data access by yourself, by means of EJB or another Java persistance framework such as JDO, SQLMaps, Hibernate, whatever...
    Web Dynpro allows to build a GUI based upon a model - in this case this could be some POJOs (DTOs) representing your database tables, which are communicated to the GUI by your data access layer. Consider a model as a simple Java bean representing database data.
    This approach would require to build a data access layer which incorporates manually generated sql statements, so you'll have to have expert database and java knowledge.
    There might be other approaches, this is just to demonstrate one working possibility.
    regards,
    Christian

  • Formatting dates in a table in webdynpro java for mutliple entries.

    Hi all,
    I have a requirement to format date values in a table for multiple entries to dd/MM/yyyy format in webdynpro java for mutiple line items in that table.
    Please help me out with the technique for the same.
    Thanks and Regards,
    Soumyadeep.

    Hi,
    here is the code for changing the formatting the date.
    Date currentDate = new Date ();
                DateFormat df =  DateFormat.getDateInstance(DateFormat.SHORT);
                String today = df.format(currentDate);
                SimpleDateFormat sdfInput = new SimpleDateFormat("dd/mm/yyyy");
                SimpleDateFormat sdfOutput = new SimpleDateFormat ("mm/dd/yyyy");
    try {
                      String dateft = sdfOutput.format((Date) sdfInput.parse(df.format(currentDate)));
                } catch (ParseException e) {

  • Calling a Function returing(Out parameter) Nested Table Rows in Java

    Hi,
    I am trying to call a Function which returns Nested Table rows (as Out Parameter) in Java .
    When I am trying to use
    pstmt.registerOutParameter(3, OracleTypes.OTHER);
    to capture the Out parameter in Java code , I get the follwoing error :
    java.sql.SQLException: Invalid column type
    I have even tried using OracleTypes.JAVA_OBJECT ,but I get the same error.
    If I use OracleTypes.JAVA_STRUCT I get
    java.sql.SQLException: Parameter Type Conflict: sqlType=2008
    error.
    Please help .
    Am I doing the right thing ?
    Thanks in advance.
    Ninad

    Ninad,
    Search this forum's archives for STRUCT and ARRAY and peruse the "Collections" examples on this Web page:
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/jdbc20/jdbc20.html
    Good Luck,
    Avi.

  • Data population in a dropdown inside a Table in WebDynpro Java

    Hi All ,
    I have a table inside which there is a dropdown in a ZCI Form. I am using enumerated dropdown list.
    The issue is binding of this dropdown is not woking as it works for normal dropdown.
    I am getting pdfdocumentcreation exception if trying to bind this dropdown using dynamic binding.
    Anybody help me out to solve this issue.
    regards
    Ravindra

    Hi,
      Refer the below link you will get useful information
    Dropdownlist to display r3 table
    Re: DropdownList box to display R/3 table
    see this link for when to use DropDownByIndex (DDI) vs DDK (DropDownByKey) and how populate data from R/3.
    Re: webdynpro populating dropdown values programmatically
    create context value attribute and bind to drop down by key
    not getting value from DropDownByKey
    Dynamically adding values to dropdown by key thread
    Dynamicaly adding values to DropDownByKey
    Dropdown by key
    dynamic DropDownByKey
    http://help.sap.com/saphelp_nw04/helpdata/en/4a/8613e41629344194e4f40393740d51/content.htm
    Regards,
    Saraswathi.
    Pls reward points for useful info
    Message was edited by: Saraswathi D

  • Can we access PI tables from WebDynpro Java via PI 7.1 to display inPortal?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi
    For that tables any if RFC are created if created it's possible with WD for Java technology.
    Suggestable is backend is R/3 right, advisable is use all SAP standard tech
    Regards
    -SS
    Edited by: Sridhar S on Apr 14, 2009 11:12 AM

  • How to call nested table type from Java

    I needed a 2 dimensional array and asked the questuion here.
    [Original thread| http://forums.oracle.com/forums/message.jspa?messageID=3419944#3419944]
    I have my program working correctly in pl/sql.
    The java guys are building this array and passing it in to me, but they don't know how.
    A small example of this would be appreciated.
    Heres an example of the procedure prototype and the type definitions in use
    create or replace
    type csn_array_obj
    as object
    (csn varchar2(20 char),
    box_id varchar2(10)
    create or replace
    type csn_array_type is table of csn_array_obj;
    procedure populate_stock(
    p_csn_array in csn_array_type
    added in example of object and type definition.

    There's an orl Oramag article by Tom Kyte rounding up [some Java tips|http://asktom.oracle.com/tkyte/omag/00-nov/o60tom.html] which includes an example of how to do this. You'll need to replace Tom's SIMPLARRAY with your own type.
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • RE:Creating  Table in Webdynpro Java

    Dear all,
    We are creating a medical claim in which we have to enter multiple values as input into a table.We have created a function module and imported  into model,binding to context is done .
    We are have to things in the application
    1.cltyp(dropdown box)
    2. Table
    i am writing  the following code to initilize the dropdown as
    input.setCltyp(wdContext.currentZhrg_Ep_Med_InputElement().getCltyp());
    but when we are trying to initilize the table its giving as error.
    we are not able to give inputs as the table is in disable mode.
    Please treat as Urget and reply asap
    ravi.s

    hi Ravi,
    I was faced the same problem previously, the solution for this problem is
    1. first check the Cardinality of context binding
    2. and then check the Object intialization(like create object for that particular BAPI elements(root nodes and sub nodes) in COmponent controller init() mentod)
      for Example find out the below code:
       "   Bapi_Catimesheetmgr_Insert_Input in = new  Bapi_Catimesheetmgr_Insert_Input();
    wdContext.nodeBapi_Catimesheetmgr_Insert_Input().bind(in);
    in.addCatsrecords_In(new Bapicats1());  "
    in the above code
    Bapi_Catimesheetmgr_Insert_Input  is root node and sub node is "Catsrecords_In is a sructure for the Bapicats1".
    then only ur table will be in enable mode.
    try above code once using ur BAPIs
    I hope it will helpful to u
    "Please award points for helpful answers"
    Thanks
    Anu

Maybe you are looking for