How To display a table as shown below by using a table T1 in Oracle-sql

Hi all,
i am new to database i need to write a query from a table let T1
Doctype MSGTYPE Portcode STATUS Sub_time Response_time
AMF AMFSTS 10 E 7/29/2010 02:44:01 pm 7/29/2010 03:44:01 pm
AMF AMFSTS 10 L 7/29/2010 02:44:01 pm 7/29/2010 02:48:01 pm
AMF AMFSTS 23 E 7/29/2010 02:44:01 pm 7/29/2010 04:44:01 pm
AMF AMFSTS 23 E 7/29/2010 02:44:01 pm 7/30/2010 02:44:01 pm
AMF AMFSTS 34 L 7/30/2010 02:44:01 pm 7/30/2010 04:44:01 pm
AMF AMFSTS 34 L 7/30/2010 02:44:01 pm 7/30/2010 05:44:01 pm
AMF AMFSTS 83 L 8/30/2010 02:44:01 pm 8/31/2010 02:44:01 pm
AMF AMFSTS 83 E 8/30/2010 02:44:01 pm 8/31/2010 02:44:01 pm
from these table E means Accepted, L for Rejected
i need to display like this group by portcode
Doctype Msgtype portcode totalMessages Accepted Rejected
AMF AMFSTS 10 2 1(50%) 1(50%)
AMF AMFSTS 23 2 2(100%) 0(0%)
AMF AMFSTS 34 2 0(0%) 2(100%)
where totalMessages,Accepted and Rejected should be in between 7/29/2010 to 8/6/2010
Edited by: 786825 on Aug 5, 2010 10:58 PM

Or...
WITH my_data AS
SELECT 'AMF '                                               doctype,
        'AMFSTS'                                             msgtype,
        10                                                   portcode,
        'E'                                                  status,
        TO_DATE('7/29/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') sub_time,
        TO_DATE('7/29/2010 03:44:01', 'MM/DD/YYYY HH:MI:SS') response_time
FROM dual
UNION ALL
SELECT 'AMF '                                               doctype,
        'AMFSTS'                                             msgtype,
        10                                                   portcode,
        'L'                                                  status,
        TO_DATE('7/29/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') sub_time,
        TO_DATE('7/29/2010 03:44:01', 'MM/DD/YYYY HH:MI:SS') response_time
FROM dual
UNION ALL
SELECT 'AMF '                                               doctype,
        'AMFSTS'                                             msgtype,
        23                                                   portcode,
        'E'                                                  status,
        TO_DATE('7/29/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') sub_time,
        TO_DATE('7/30/2010 04:44:01', 'MM/DD/YYYY HH:MI:SS') response_time
FROM dual
UNION ALL
SELECT 'AMF '                                               doctype,
        'AMFSTS'                                             msgtype,
        23                                                   portcode,
        'E'                                                  status,
        TO_DATE('7/29/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') sub_time,
        TO_DATE('7/30/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') response_time
FROM dual
UNION ALL
SELECT 'AMF '                                               doctype,
        'AMFSTS'                                             msgtype,
        34                                                   portcode,
        'L'                                                  status,
        TO_DATE('7/30/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') sub_time,
        TO_DATE('7/30/2010 04:44:01', 'MM/DD/YYYY HH:MI:SS') response_time
FROM dual
UNION ALL
SELECT 'AMF '                                               doctype,
        'AMFSTS'                                             msgtype,
        34                                                   portcode,
        'L'                                                  status,
        TO_DATE('7/30/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') sub_time,
        TO_DATE('7/30/2010 05:44:01', 'MM/DD/YYYY HH:MI:SS') response_time
FROM dual
UNION ALL
SELECT 'AMF '                                               doctype,
        'AMFSTS'                                             msgtype,
        83                                                   portcode,
        'L'                                                  status,
        TO_DATE('8/30/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') sub_time,
        TO_DATE('8/31/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') response_time
FROM dual
UNION ALL
SELECT 'AMF '                                               doctype,
        'AMFSTS'                                             msgtype,
        83                                                   portcode,
        'E'                                                  status,
        TO_DATE('8/30/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') sub_time,
        TO_DATE('8/31/2010 02:44:01', 'MM/DD/YYYY HH:MI:SS') response_time
FROM dual
SELECT doctype,
       msgtype,
       portcode,
       COUNT(*) totalmessages,
       SUM(
           CASE WHEN status = 'L'
            THEN 1
            ELSE 0
           END
           )  accepted,
       SUM(
           CASE WHEN status = 'E'
                THEN 1
                ELSE 0
           END
          )  rejected
FROM   my_data
-- WHERE  -- add your date logic in here
GROUP BY doctype,
         msgtype,
         portcode
ORDER BY portcodeCheers
Ben

Similar Messages

  • How to display the fields in ALV Output without using Field catalog?

    How to display the fields in ALV Output without using Field catalog?
    Could you pls tell me the coding?
    Akshitha.

    Hi,
    u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
    data: itab type table of mara.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = itab
    CHANGING
    ct_fieldcat = lt_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    *Pass that field catalog into the fillowing FM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_grid_title            = 'REPORTING'
                is_layout              = gt_layout
                it_fieldcat             = lt_fieldcat[]
           tables
                t_outtab                = itab.

  • How to display greek character in adobe digital edition using urf-8

    how to display greek character in adobe digital edition using urf-8

    when i tried to open below link
    https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm
    It's not opening & displaying access denied message as below.
    403 Access denied
    You do not have the permissions to access this resource
    Error is logged with Tag:
    Just want to know, Is it possible to display japanese characters on report using crystal report 8.5?
    We've constraint to use only CR 8.5
    Regds,
    Kaushal

  • How to display the data of CJ2C(T-CODE) using web dynpro abap

    Hi all:
        How to display the data of CJ2C(T-CODE) using web dynpro abap.
        CJ2C used to display a Gantt Chart.
        Thanks.

    Hi,
    Create a Value attribute (resource) of type Resource, bind it with the property of File Upload UI element.
    On action place the code and Deploy the application
    byte[] bytes = new byte[ 1024];
    FileOutputStream out = new FileOutputStream( new File( <path in server>));
    InputStream in = resource.read( true);
    int len;
    while( ( len = in.read( bytes)) > 0)
         out.write( bytes, 0, len);
    in.close();
    out.close();
    Regards
         Vinod V

  • How to read specific lines from a text file using external table or any other method?

    Hi,
    I have a text file with delimited data, I have to pick only odd number rows and load into a table...
    Ex:
    row1:  1,2,2,3,3,34,4,4,4,5,5,5,,,5  ( have to load only this row)
    row2:   8,9,878,78,657,575,7,5,,,7,7
    Hope this is enough..
    I am using Oracle 11.2.0 version...
    Thanks

    There are various ways to do this.  I would be inclined to use SQL*Loader.  That way you can load it from the client or the server and you can use a SQL*Loader sequence to preserve the row order in the text file.  I would load the whole row as a varray into a staging table, then use the TABLE and MOD functions to load the individual numbers from only the odd rows.  Please see the demonstration below.
    SCOTT@orcl12c> HOST TYPE text_file.csv
    1,2,2,3,3,34,4,4,4,5,5,5,,,5
    8,9,878,78,657,575,7,5,,,7,7
    101,201
    102,202
    SCOTT@orcl12c> HOST TYPE test.ctl
    LOAD DATA
    INFILE text_file.csv
    INTO TABLE staging
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    (whole_row VARRAY TERMINATED BY '/n' (x INTEGER EXTERNAL),
    rn SEQUENCE)
    SCOTT@orcl12c> CREATE TABLE staging
      2    (rn         NUMBER,
      3     whole_row  SYS.OdciNumberList)
      4  /
    Table created.
    SCOTT@orcl12c> HOST SQLLDR scott/tiger CONTROL=test.ctl LOG=test.log
    SQL*Loader: Release 12.1.0.1.0 - Production on Tue Aug 27 13:48:37 2013
    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.
    Path used:      Conventional
    Commit point reached - logical record count 4
    Table STAGING:
      4 Rows successfully loaded.
    Check the log file:
      test.log
    for more information about the load.
    SCOTT@orcl12c> CREATE TABLE a_table
      2    (rn       NUMBER,
      3     data  NUMBER)
      4  /
    Table created.
    SCOTT@orcl12c> INSERT INTO a_table (rn, data)
      2  SELECT s.rn,
      3         t.COLUMN_VALUE data
      4  FROM   staging s,
      5         TABLE (s.whole_row) t
      6  WHERE  MOD (rn, 2) != 0
      7  /
    17 rows created.
    SCOTT@orcl12c> SELECT * FROM a_table
      2  /
            RN       DATA
             1          1
             1          2
             1          2
             1          3
             1          3
             1         34
             1          4
             1          4
             1          4
             1          5
             1          5
             1          5
             1
             1
             1          5
             3        101
             3        201
    17 rows selected.

  • How To Display Value In inputText When List Is Used

    Hello,
    I have a question regarding how to display value from List in a jsf page?
    From a Map, i could display like
    <ice:inputText  id="plantno" value="#{bean.detailedRowData['plantno']}"So if I am using a List instead of Map, how can I refer value in List so that I could display my plantno?
    <ice:inputText  id="plantno" value="#{bean.?????}"Thanks

    Create a backing bean method that fetches the value from the list for you.
    <ice:inputText  id="plantno" value="#{bean.plantNo}"/>
    public class MyFunkyBean {
      private List<String> rowdata;
      public String getPlantNo(){
        return rowdata.get(INDEX_AT_WHICH_THE_PLANTNO_IS_STORED);
    }It really isn't possible to turn the list into a regular bean/entity?

  • How to display the image which in KM folder using url iview

    Hi Friends
    How to display the image, which is under KM folder structur using the url iview.
    i trying using url iview url as  \document\testfolder\abc.jpg as url for the iview.
    but its now working .. so please help me how to slove this problem
    If is not the correct way then please suggest me best way to achive this.
    Thanks
    Mukesh

    Hi Mukesh,
    I think this may work,
    1, Create a HTML Layout.
        You can put your image wherever  u want with HTML Codes.
        Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
        With this, u can use the standard KM commands also.
    2, U need to use KM Navigation iView for this rather than KM Doc iView.
    3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
    Regards
    BP

  • How to display the message along with a value using BBP_CHECK_BADI

    Hi Gurus,
    I need to display a message dynamically when the user create's a shopping cart. I am using Check_badi for this. i.e., I need to display the buyer number and amount left for him dynamically. I am storing both of them in variables and don't know how to display the messages laong with some message " the amount left for <XXXXXX> is <$$$$$$$$>". Can you help me out.
    Thanks,
    Neelima

    Hi,
    you can use the function module 'BBP_PD_MSG_ADD'. This is the function module normally used for the displaying the error messages in SRM.
    See wether you can use already available error messages , use the transaction SE91 , and the message class being BBP_PD

  • How to display data from 2 different groups in a single table

    Hi,
    Following is the requirement:
    The XML Content is below
    ListOf_ssAssetMgmtAsset>
    -<ssAssetMgmtAsset>
    <ssAccountName>1-1D09-83031</ssAccountName>
    <ssAccountPrimaryCountry>USA</ssAccountPrimaryCountry>
    <ssAssetNumber>13111027</ssAssetNumber>
    <ssNaiAssetNumber>123</ssNaiAssetNumber>
    <ssNaiGrantNumber>ABC</ssNaiGrantNumber>
    <ssNaiProductType>System Security Software</ssNaiProductType>
    <ssNaiSuperceded>123</ssNaiSuperceded>
    <ssProductDescription>Upgrade extract local DB</ssProductDescription>
    <ssProductName>1-1M5H-296</ssProductName>
    <ssStatus>ABC</ssStatus>
    <ssId>1X-ZY</ssId>
    <ssCreated>01/01/1980</ssCreated>
    <ssUpdated>01/01/1980</ssUpdated>
    <ssCreatedBy>1X-ZY</ssCreatedBy>
    <ssUpdatedBy>1X-ZY</ssUpdatedBy>
    -<ListOf_ssAgreementEntitlement>
    -<ssAgreementEntitlement>
    <ssEntitlementEndDate>16/12/2009</ssEntitlementEndDate>
    <ssEntitlementStartDate>16/11/2009</ssEntitlementStartDate>
    <ssEntitlementType>Services</ssEntitlementType>
    <ssNaiQuantity>2</ssNaiQuantity>
    </ssAgreementEntitlement>
    </ListOf_ssAgreementEntitlement>
    -<ListOf_ssAgreementEntitlement>
    -<ssAgreementEntitlement>
    <ssEntitlementEndDate>10/12/2009</ssEntitlementEndDate>
    <ssEntitlementStartDate>10/11/2009</ssEntitlementStartDate>
    <ssEntitlementType>ServicePortal</ssEntitlementType>
    <ssNaiQuantity>1</ssNaiQuantity>
    </ssAgreementEntitlement>
    </ListOf_ssAgreementEntitlement>
    </ssAssetMgmtAsset>
    </ListOf_ssAssetMgmtAsset>
    The data needs to be displayed in the below manner where first grouping is by Account Country, then by Account Name. Then the table with 9 columns where in the first 5 columns are from first group and the next 4 are from second group.
    Account Country
    Account Name
         ProductType     Grant #     Asset #     Product SKU Product Name Entitlement Type Quantity /Nodes     EntitlementStart Date     Entitlement EndDate
    I have the coding as
    first for loop: <?for-each-group:ssAssetMgmtAsset;./ssAccountPrimaryCountry?>
    second for loop: <?for-each-group:current-group();./ssAccountName?>
    third which is for the table : <?for-each:current-group()?>
    I close the above grp after product description.
    One table with the first 5 columns and below second table is placed adjacent to the first to display the 4 columns with the grp <?for-each:ssAgreementEntitlement?>
    how do I get all the 9 columns in a single row in a single table.
    Any help is appreciated.
    thanks

    What is the lnk between the two
    ssAssetMgmtAsset and ssAgreementEntitlement ?
    you want to display all the ssAgreementEntitlement for every ssAssetMgmtAsset group ?
    there shud be a link between them, you have link them and display.

  • How to display rows from index 1 to all in a table

    Hi,
    I am facing a problem please help me.
    I created a node in context with cardinality 1..n so that there will always be a element present for that node.
    From one view i am providing data to this node and adding new blank element to this node.
    I binded a table from view to this node so that it is displaying all the rows with a blank row at the start.
    Now  i want to display all the elements of that node except that blank first element in to a table

    Hi Amol,
    You can invalidate the node before and then add the elements from the second table or you can remove the blank element from the node.
    you can use the following code to remove an element
    int listSize = wdContext.node<Node Name>().size();
    if(listSize > 0)
    for(int i = listSize - 1; i >= 0; --i)
    wdContext.node<Node Name>().removeElement(wdContext.node<Node Name>().getElementAt(i));
    or use the following code to invalidate the node.
    wdContext.node<Node Name>().invalidate();

  • How to display the path of selected node of a tree table.

    Hi,
    I have one use case where I have to display the path of node of tree table which is selected one.
    e.g.
    Suppose the tree table is like this.
    Folder1(root)
              ->folder2
              ->folder3
                        ->folder4
    Now when I select this folder1 then path display should be "/folder1(root)"
    when i select the folder4 then path should be "/folder1(root)/folder3/folder4"
    Hope this one will help to understand my use case..
    Thanks

    Hello,
    try this:
    jsp page:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:tree value="#{bindings.RootNodes.treeModel}" var="node"
                     rowSelection="single" id="t1" expandAllEnabled="true"
                     rowDisclosureListener="#{Test.testDisclosureListener}"
                     selectionListener="#{Test.SelectionListener}">
              <f:facet name="nodeStamp">
                <af:panelGroupLayout id="pgl0">
                  <af:outputText rendered="#{empty node.Link}" value="#{node.Edesc}"
                                 id="ot1"/>
                  <af:goLink rendered="#{!empty node.Link}" targetFrame="_blank" text="#{node.Edesc}" destination="#{node.Link}"  id="gl1"/>
                </af:panelGroupLayout>
              </f:facet>
            </af:tree>
            <af:outputText value="#{bindings.Id.inputValue}" id="ot2"
                           partialTriggers="t1">
              <af:convertNumber groupingUsed="false"
                                pattern="#{bindings.Id.format}"/>
            </af:outputText>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    code:
    package testing;
    import java.util.Iterator;
    import java.util.List;
    import model.businessObjects.view.ZamerTreeMenuViewRowImpl;
    import oracle.adf.view.rich.component.rich.data.RichTree;
    import oracle.jbo.Row;
    import oracle.jbo.uicli.binding.JUCtrlHierBinding;
    import oracle.jbo.uicli.binding.JUCtrlHierNodeBinding;
    import org.apache.myfaces.trinidad.event.RowDisclosureEvent;
    import org.apache.myfaces.trinidad.event.SelectionEvent;
    import org.apache.myfaces.trinidad.model.CollectionModel;
    import org.apache.myfaces.trinidad.model.RowKeySet;
    public class Test{
        public Test(){
        public void testDisclosureListener(RowDisclosureEvent rowDisclosureEvent){
            RichTree tree1=(RichTree)rowDisclosureEvent.getSource();
            CollectionModel model = (CollectionModel)tree1.getValue();
            JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
            JUCtrlHierNodeBinding start = null;
            List focus = (List)tree1.getFocusRowKey();
            tree1.setRowKey(rowDisclosureEvent.getAddedSet().iterator().next());
            System.out.println("testing.Test.testDisclosureListener>>"+treeBinding.getPath());
            start = (JUCtrlHierNodeBinding)tree1.getRowData();
    //        ZamerTreeMenuViewRowImpl temp = (ZamerTreeMenuViewRowImpl)start.getRow();
            JUCtrlHierNodeBinding parent=start.getParent();
            String path="";
            ZamerTreeMenuViewRowImpl  r = (ZamerTreeMenuViewRowImpl)start.getRow();
            path+="/"+r.getAdesc();
            while(parent!=null){
                r = (ZamerTreeMenuViewRowImpl)parent.getRow();
                if(r==null){
                    break;
            System.out.println("testing.Test.testDisclosureListener>>"+path);

  • How to read xml file as shown below.

    Hello,
    I am using flash builder 4 and currently working on implementing AIR application.
    I need to read xml file data.
    Normal xml files are easy to read and i am much more aware of it.
    But can any one have idea how to read XML file which is given below.
    <node>
    <key>ID</key>
    <integer>1</integer>
    <key>Name</key>
    <string>Dhwani</string>
    <key>Postno</key>
    <integer>20</integer>
    <key>deskname</key>
    <string>flex</string>
    <key>empid</key>
    <integer>25</integer>
    <key>projectname</key>
    <string>abc</string>
    </node>
    Here i have xml file in form of key value pair. <key> node shows name of the key and after that <integer> or <string> node are the value for that specific key.
    if i select node.key then it shows me all the keys. and from that i cant make out what is the value for key ID.
    Is there any way to take first node and then second. i mean first i ll take value of key and store it into some arraycollection. and then value will be stored.
    Any help is appreciated.. Looking for positive reply.
    Thanks
    Dhwani

    There are different methods to access XML data which have pro's and cons. Let us know more about what you want to do and we can help you.

  • Given the table and data below, without joining the table to itself, how do

    Hi
    could you please help me about following?
    create table units
    ( report_date date
    , company_id number
    , units number );
    insert into units values ('1-jan-2010', 1, 28);
    insert into units values ('3-jan-2010', 2, 20);
    insert into units values ('7-jan-2010', 2, 10);
    insert into units values ('1-jan-2010', 2, 10);
    insert into units values ('2-jan-2010', 1, 30);
    insert into units values ('3-jan-2010', 1, 49);
    insert into units values ('4-jan-2010', 2, 40);
    I want the report to look like this:
    Company_id | report_date | daily_units | month_to_date_units
    1 | 1/1/2010 | 28 | 28
    1 | 1/2/2010 | 30 | 58
    1 | 1/3/2010 | 49 | 107
    2 | 1/1/2010 | 10 | 10
    2 | 1/3/2010 | 20 | 30
    2 | 1/4/2010 | 40 | 70
    2 | 1/7/2010 | 10 | 80
    Regards

    Hi,
    Try this:
    SQL> ed
    Wrote file afiedt.buf
      1  select report_date,company_id,units ,
      2* SUM(units) OVER ( PARTITION BY company_id,TO_CHAR(report_date,'MON-YY') ORD
    ER BY company_id,report_date) FROM units
    SQL> /
    REPORT_DA COMPANY_ID      UNITS
    SUM(UNITS)OVER(PARTITIONBYCOMPANY_ID,TO_CHAR(REPORT_DATE,'MON-YY')ORDERBYCOMPANY
    01-JAN-10          1         28
                                                                                  28
    02-JAN-10          1         30
                                                                                  58
    03-JAN-10          1         49
                                                                                 107
    01-JAN-10          2         10
                                                                                  10
    03-JAN-10          2         20
                                                                                  30
    04-JAN-10          2         40
                                                                                  70
    07-JAN-10          2         10
                                                                                  80
    7 rows selected.

  • How to display 3 alv with top-of-page using splitter container

    Hi,
    I want to display 3 different alv in a single container corresponding to the 3 check boxes on selection screen.
    i.e.
    If user selects 1 check box only one alv should be displayed, if 2 checkboxes selected by user 2 alv should be displayed and same for 3.
    I cannot use 3 different containers bcoz if second checkbox is not selected then that place remains blank. So I am using single container and using splitter container dividing it into the no of rows corresponding to the no. of checkboxs selected by user.
    Now I also want to display top-of-page for each alv. Please guide me how to achieve this.
    Thanks & regards,
    Harshada

    create with some IF_ELSE conditions as i have done below. in my case the same things are required. if error table is there only then it will be displayed, else only output will be displayed.
    * First Main Container
      CREATE OBJECT obj_main1
        EXPORTING
          container_name = 'CC_CONTAINER'
          style          = cl_gui_custom_container=>ws_maximizebox.
    * create top-document
      CREATE OBJECT obj_dyndoc_id
        EXPORTING
          style = 'ALV_GRID'.
      IF pr_view EQ c_x OR pr_stat EQ c_x.
    * First Splitter Container
        CREATE OBJECT obj_splitter1
          EXPORTING
            parent  = obj_main1
            rows    = 2
            columns = 1.
    * Place obj_parent_html in First row First column
    * for Top_of_page
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 1
            column    = 1
          RECEIVING
            container = obj_parent_html.
    * Place obj_container1 in Second row First column
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 2
            column    = 1
          RECEIVING
            container = obj_container1.
    * Set the height of Top of page
        CALL METHOD obj_splitter1->set_row_height
          EXPORTING
            id     = 1
            height = 24.
      ELSEIF pr_email EQ c_x.
    * First Splitter Container
        CREATE OBJECT obj_splitter1
          EXPORTING
            parent  = obj_main1
            rows    = 3
            columns = 1.
    * Place obj_parent_html in First row First column
    * for Top_of_page
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 1
            column    = 1
          RECEIVING
            container = obj_parent_html.
    * Place obj_container1 in First row First column
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 2
            column    = 1
          RECEIVING
            container = obj_container1.
    * Place obj_container2 in Second row First column
        CALL METHOD obj_splitter1->get_container
          EXPORTING
            row       = 3
            column    = 1
          RECEIVING
            container = obj_container2.
    * Set the height of Top of page
        CALL METHOD obj_splitter1->set_row_height
          EXPORTING
            id     = 1
            height = 24.
      ENDIF.
    Please note there is no need to create a hEADER in the container, but create it for the 1st table only which is always displayed
    ags.
    Edited by: ags on Nov 4, 2009 4:49 PM
    Edited by: ags on Nov 4, 2009 4:50 PM

  • Need to display only leaf and not the node using tree table

    Hi,
    Am using Jdeveloper 11.1.2.0.0 . As per requirement , am having Department - Employee View wherein Department is the parent considered as node and Employee as a child which is considered as a leaf. Having dragged and dropped the DepartmentView as a tree table -> shuttle department id and department name to be displayed -> added EmployeeView to the same and shuttled employee id along with the first and last name. so this works as it has to be in the below structure...
    10 ADF
    256 A
    257 B
    258 C
    20 JAVA
    259 D
    260 E
    Code for the same ..
    <af:treeTable value="#{bindings.DepartmentsView.treeModel}" var="node"
    selectionListener="#{bindings.DepartmentsView.treeModel.makeCurrent}" rowSelection="single" id="tt1">
    <f:facet name="nodeStamp">
    <af:column id="c1">
    <af:outputText value="#{node}" id="ot1"/>
    </af:column>
    </f:facet>
    <f:facet name="pathStamp">
    <af:outputText value="#{node}" id="ot2"/>
    </f:facet>
    </af:treeTable>
    *Here comes my requirement , need to display only the leaf nodes which has employee name [Employees] and need to hide the node [Department] in the below structure....*
    256 A
    257 B
    258 C
    259 D
    260 E
    Things tried to achieve the requirement....
    1. Got only the EmployeeName in the nodeStamp facet as below. Hence am getting only Employee name but the issue is am getting the icon for the node [Parent - Department]. Now how do i hide the same.
    <af:treeTable value="#{bindings.DepartmentsView.treeModel}" var="node"
    selectionListener="#{bindings.DepartmentsView.treeModel.makeCurrent}" rowSelection="single" id="tt1">
    <f:facet name="nodeStamp">
    <af:column id="c1">
    <af:outputText *value="#{node.FirstName}"* id="ot1"/>
    </af:column>
    </f:facet>
    <f:facet name="pathStamp">
    <af:outputText value="#{node}" id="ot2"/>
    </f:facet>
    </af:treeTable>
    Please do suggest some solution....
    Thanks and Regards,
    Vinitha G

    Hi,
    Thanks for the reply. As the project has already implemented tree table they do not wanna change any logic written for the same. So they wanted to just display only the leaf node data using treetable component. Can you please suggest.
    Thanks and Regards,
    Vinitha G

Maybe you are looking for

  • Romaji yen sign in Terminal in the UTF-8 encoding

    Hello all, I have a MacBook Pro with a Japanese keyboard running Mac OS X 10.6.2. In Romaji mode, the Japanese keyboard has a dedicated yen sign (¥) key, and Option-¥ produces a backslash (\). In Terminal, for some reason, the ¥ key produces \ withou

  • Modifying the data type of existing field in CC&B

    Hi , In log tab of Customer Contact page in CC&B there is a field (Trigger Date) which stores only date.I want to modify it so that it can store date and time also. Can anybody guide me how can i do this ?? Thanks sunil

  • Grid Control on Windows 64bit

    Hi all, I very new on Grid Control because actual I only have one database to administrate so the Enterprise Manger is very fine. But in the future this will be expanded to 4 or 5 databases on different machines so I think the Grid Control will "help

  • Business Graphics - Download/Email

    Hello, I would like to download the graph generated using the Graphics FM to presentation server/send the graph as an email attachment. Is there any standard FM to do this. Any input is highly appreciated. Thank you.

  • Need actionlistener to wait for another evenlistener to complete

    Hi, I have a jtable set up with a selectionListener that fires when a user clicks on a different cell. Based on the row/column the new cell in a JcomboBox is enabled or disabled and if enabled populated with options relating to that cell. On the Jcom