Displaying output in table format

hi experts, 
data in my z table is like this.
                      01.06.2006   02.06.2006       03.06.2006      04.06.2006
  01    
001                  23                  32                   90                     43
002                  32                  09                   48                     43
004                  42                  34                   34                     23
005                  76                  45                   67                     93
now i want to generate a classical report to get the output in the same table format.
01.06.2006 is the date field
01 is the group field
001 - 004 is the subgroup field
23,32---- is the data
please help me regarding this issue.

hi ,  you can achieve this by using AT NEW key word, for every day u calculating the data  so
AT NEW date field name .
write : / group field name.
ENDAT.
AT NEW groupname.
write : +sub groupname,
           datafield+.
ENDAT.
hope this will help you.
regards
chinnaiya

Similar Messages

  • Need to display in a table format

    Hi,
    From my database i need to get the values for , UserName and Password and display in a table format .
    I could get the values from the database using
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("select * from Login");
    while(rs.next()){
    out.println(" <br> ");
    out.println(rs.getString("username");
    out.println(rs.getString("password");
    }it works fine and displays like below......
    user1  pwd1
    user2 pwd2
    .....    ...May i know how to get it in a tabular format as an output
    pls provide sample code for it.
    I would be thankful to u guys,
    Thanks & Regards,
    Raghu.

    From my database i need to get the values for ,
    UserName and Password and display in a table format
    .Really, really bad idea.
    There is never any need, in any implementation to display or even keep actual passwords.
    >
    May i know how to get it in a tabular format as an
    outputAs in a GUI? Then that is a GUI question not a JDBC one.
    Something else? Then you need to explain exactly what the destination is and what defines it as 'tabular'.

  • How to display output only sort format in alv

    Hi Experts,
    I have one problem in alv output display. I'm developing alv report for orders raised during the period.I want to display each order wise value(netwr) and order quatity (kwmeng) . i set 8 radio buttons one radio btn click then i want output ex.in grid display click on sort then each order wise calculate the value and quantity . that particular data to display when click on radio button.
    ex:click on sort in grid display.
    (branch) (order no)     (quantity)   (value)                        (BSTNK)
    AMUM     0000003354     2             10                                    3,271
    AMUM     0000003354     1              10                                    6,542
                                                       (above qty sum 2+1=3)  
    (SUM) =   AMUM       0000003354            3                       20            9,813
    HIP2         0000003362     2           5     17,810
    HIP2             0000003362     1          5     23,075
    (sum) = HIP2          0000003362                 10           40,885
    i display output in alv griddisplay.client asking one rb put in selection screen i want output like above only sum col.
    when i click one radio button output is come like (sum) above.
    Please help me.
    Thanks & Regards,
    Balakrishna Gajula

    hi you need to use sortinfo for your requirement.
    ie see the below code.
    "declare sortinfo at data declaration
    data:   wa_sort     type slis_sortinfo_alv,      "''' add this
                layout      type slis_layout_alv.          "add this
    ""make the below changes in your fieldcat
      wa_fieldcat-tabname   = 'FINAL'.
      wa_fieldcat-seltext_m = 'Td - Rvdt'.
      wa_fieldcat-fieldname = 'QUANTITY'.
      wa_fieldcat-do_sum    = 'X'.          """"""add this to your  *QUANTITY field*
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname   = 'FINAL'.
      wa_fieldcat-seltext_m = 'temp''.
      wa_fieldcat-fieldname = 'VALUE'.
      wa_fieldcat-do_sum    = 'X'.             """"""add this to your  *VALUE field*
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
    """"" you need to add this after workarea of fieldcat
      wa_sort-fieldname =  'BRANCH'.  " Here Branch indicates the fieldname
      wa_sort-subtot    = 'X'.
      append wa_sort to it_sort.
      clear wa_sort.
      wa_sort-fieldname = 'ORDERNO'.
      append wa_sort to it_sort.
      clear wa_sort.
    " in your alv fm add sortinfo
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = it_fieldcat
          it_sort            = it_sort                   """""""""add this
        tables
          t_outtab           = final                   " your internal table name
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    This solves your purpose.
    Regards,
    koolspy.

  • Could not display output in PDF format from a RDF file

    Hi all,
    I'm calling a report file (.RDF) from the browser using RWCGI.EXE, and specified the output in PDF format, but it always asking me to download the active-X for the PDF file generated by the report. I have Adobe Acrobat Reader installed on my machine, what could be the problem?
    thanks in advance.

    I had the same problem.
    As a quick fix, what I enventually did, if you are using WebDB and CGI, is to create an alias in the cgicmd.dat file.
    It worked after.
    Example of line:
    ===============
    web41pdf: report=web_41.rdf server=Rep60_Z11734 userid=DEMO6I/DEMO6I@PERSOEM destype=cache desformat=PDF tolerance=1440
    Then you call the URL http://<web site>/rw60cgi?web41pdf
    Yet I would be glad to understand why I also get this message.
    Philippe Dalmas.

  • Concurrent request submission displays Output in xml format ?

    Hi ,
    I am submitting a concurrent request from workflow which is an xml publisher report . my problem when the program is run individually it displays the output correctly in rtf format but when the same request is submitted from worklfow the output comes in xml format ?
    What could be the problem ?
    I am using the standard submission "FND_WF_STANDARD.SUBMITCONCPROGRAM " program and assigning the values directly to it . the submission activity is working fine but the output comes as mentioned above.
    Regards,
    Skg

    Kiran ,
    I am not using fnd_request.submit request coc I don't need to capture the user information for my workflow .
    I am only using the standard " FND_WF_STANDARD.SUBMITCONCPROGRAM " . this Package only submits the concurrent program through workflow in a function.
    no need of backend programming.
    My job is to submit and move to the next function . the output will be determined via custom profile option.
    now, for this package I am directly assigning the values like appshort name , prog shrt name , and parameter.
    there is no mention of layouts anywhere in the standard workflow package .
    its very urgent for me friend.
    Regards,
    Shashank.

  • Output in table format

    i created a procedure as
    create or replace procedure emp_output (v_empno in number)
    as
    cursor c1 is select ename,job,mgr,hiredate,sal,comm,deptno from emp where empno = v_empno;
    ENAME scott.emp.ename%type;
    JOB scott.emp.job%type;
    MGR scott.emp.mgr%type;
    HIREDATE scott.emp.hiredate%type;
    SAL scott.emp.sal%type;
    COMM scott.emp.comm%type;          
    DEPTNO scott.emp.deptno%type;
    begin
    open c1;
    loop
    fetch c1 into ename,job,mgr,hiredate,sal,comm,deptno;
    exit when c1%notfound;
    dbms_output.put_line(v_empno||','||ename||','||job||','||mgr);
    end loop;
    close c1;
    end;
    Its output will look like this
    7521,WARD,SALESMAN,7698
    i want my procedure to retur me the output similar the way it looks when we do select * from emp where empno = 7521
    table format

    Hi,
    Example:
    Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
    Connected as hr
    SQL> SELECT employee_id, first_name, last_name FROM employees where rownum < 2;
    EMPLOYEE_ID FIRST_NAME           LAST_NAME
            100 Steven               King
    SQL>
    SQL> SET SERVEROUTPUT ON
    SQL> BEGIN
      2     DBMS_OUTPUT.put_line('EMPLOYEE_ID FIRST_NAME           LAST_NAME');
      3     DBMS_OUTPUT.put_line('----------- -------------------- -------------------------');
      4     FOR reg IN (SELECT employee_id,
      5                        first_name,
      6                        last_name
      7                   FROM employees
      8                  WHERE rownum < 2) LOOP
      9        dbms_output.put_line(LPAD(reg.employee_id,
    10                                  11) || ' ' || RPAD(reg.first_name,
    11                                                     20) || ' ' ||
    12                             RPAD(reg.last_name,
    13                                  20));
    14     END LOOP;
    15  END;
    16  /
    EMPLOYEE_ID FIRST_NAME           LAST_NAME
            100 Steven               King               
    PL/SQL procedure successfully completed
    SQL> Regards,

  • Displaying output in PDF format

    Hi
    I have a requirement .
    I have a button in a page , when i click on the button output should be opened in PDF format.
    In a Standard Page i have 4 radio buttons , initially i can select only one radio button on the standard page, but my requirement is i have to select 2 radio buttons as an option .
    Thanks

    Hi ,
    For PDF output refer this link
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
    Keerthi

  • I want to show database output in table format by using javafx 1.2

    this code is running in javafx 1.1,but this code is not running in javafx 1.2 . i don't know about the differrence between javafx 1.1 and javafx 1.2.so plz change the code in javafx 1.2 . Iam struggling to create in javafx 1.2
    * Main.fx
    * Created on Sep 27, 2007, 9:37:26 AM
    package tablesample;
    * @author Radhika Gehant
    import javafx.ui.*;
    import javafx.ui.*;
    import java.lang.Thread;
    import java.lang.Exception;
    import java.sql.*;
    class Customer {
    attribute Name: String;
    attribute Addressline1: String;
    attribute Addressline2: String;
    attribute City: String;
    attribute Phone: String;
    attribute Email: String;
    class customerOperations {
    attribute customer : Customer*;
    public
    operation getCustomer();
    attribute datasource : DatabaseAccess;
    customerOperations.datasource = null;
    operation customerOperations.getCustomer() {
    var rs = this.datasource.processDBQuery("SELECT * FROM CUSTOMER");
    while(rs.next()) {
    println("City: {rs.getString('City')} Name: {rs.getString('Name')}");
    insert Customer{City: rs.getString('City') Name: rs.getString('Name') Addressline1: rs.getString('Addressline1') Addressline2: rs.getString('Addressline2') Phone: rs.getString('Phone')} into this.customer;
    }// getCustomer
    var db : DatabaseAccess = null;
    var rs : ResultSet = null;
    /*//Using JavaDB
    db = DatabaseAccess{driverName: 'org.apache.derby.jdbc.ClientDriver'
    jdbcUrl   : 'jdbc:derby://localhost:1527/sample'
    user      : 'app'
    password  : 'app'};
    //Using MySQL
    db = DatabaseAccess{driverName: 'com.mysql.jdbc.Driver'
    jdbcUrl   : 'jdbc:mysql://localhost:3306/MyNewDatabase'
    user      : 'root'
    password  : 'nbuser'};
    try {
    // Connect to database
    db.connect();
    var Allcustomers = customerOperations {
    datasource: bind lazy db
    Allcustomers.getCustomer();
    println("Name: {Allcustomers.customer.Name} ");
    //Begin Frame code
    Frame {
    height: 120
    width: 500
    title: "Populating Table From Database"
    onClose: function() {
    return db.shutdown();
    content: Table {
    columns:
    [TableColumn {
                    text: "Name"
    TableColumn {
    text: "Addressline1"
    TableColumn {
    text: "Addressline2"
    width: 100
    TableColumn {
    text: "City"
    alignment: TRAILING
    TableColumn {
    text: "Phone"
    alignment: CENTER
    cells: bind foreach(p in Allcustomers.customer)
    [TableCell {
                    text:bind p.Name
    TableCell {
    text:bind p.Addressline1
    TableCell {
    text: bind p.Addressline2
    TableCell {
    text: bind p.City
    TableCell {
    text: bind p.Phone
    visible: true
    }//end Frame code
    } catch(e:SQLException) {
    e.printStackTrace();
    * DataAccess.fx
    * Created on Sep 27, 2007, 9:46:04 AM
    package tablesample;
    * @author Radhika Gehant
    import javafx.ui.*;
    import java.lang.Thread;
    import java.lang.Exception;
    import java.sql.*;
    public class DatabaseAccess {
    private attribute driverName: String;
    private attribute jdbcUrl : String;
    private attribute user : String;
    private attribute password : String;
    public attribute driver : Driver;
    public attribute conn : Connection;
    private attribute rs : ResultSet;
    private attribute stmt : Statement;
    public
    operation connect();
    public
    operation shutdown();
    public
    operation tableExists(table: String);
    public
    operation processDBQuery(qry: String): ResultSet;
    }// Database
    attribute DatabaseAccess.conn = null;
    attribute DatabaseAccess.stmt = null;
    attribute DatabaseAccess.rs = null;
    operation DatabaseAccess.connect() {
    // Load driver class using context class loader
    var thread = Thread.currentThread();
    var classLoader = thread.getContextClassLoader();
    var driverClass = classLoader.loadClass(this.driverName);
    // Instantiate and register JDBC driver
    this.driver = (Driver) driverClass.instantiate();
    // JavaFX Class
    DriverManager.registerDriver(driver);
    // Connect to database
    this.conn = DriverManager.getConnection(this.jdbcUrl, this.user, this.password);
    }// Database.connect
    operation DatabaseAccess.processDBQuery(qry: String) :ResultSet {
    // process the query string
    try{
    if(null <> this.conn) { 
    if (this.stmt <> null) {
    this.stmt.close();
    this.stmt = null;
    if (this.rs <> null) {
    this.rs.close();
    this.rs = null;
    stmt = this.conn.createStatement();
    rs = stmt.executeQuery(qry);
    catch(e:SQLException) {
    e.printStackTrace();
    return rs;
    }//processDB

    Do you really need to post three messages with identical topic?
    You have an edit button, you know? That's the icon with a pencil, next to the envelope icon, on the top-right corner of your message (only for the last message of a thread).
    You also have a CODE button above your edit area, it will make code you post much more readable, as asterisks and plus signs are interpreted by the forum...
    i don't know about the differrence between javafx 1.1 and javafx 1.2See [JavaFX 1.2: Features and Enhancements|http://javafx.com/docs/articles/javafx1-2.jsp] for a good start.
    (Funny, I just noticed they write "Java FX" (with a space) in all the titles of the site. Bad for consistency...)

  • Query on report display in table format on 7970G

    Hi,
    I know how to use the xml objects to display data on Cisco IP Phone using Ip Phone services. Now I want to generate report in table format on the phone.But in the xml objects available there is no option display data in table format .
    Should I have to use BTXML for that ?
    or do I have to diaplay it as an image ?
    I want to keep the first row as heading and the rest of rows I should scroll and view.
    Please let me know how to do that .Please also provide any sample documents or links.
    Thanks,
    Peter

    I've never really seen btxml in the wild.. it may be used in environments where people use Cisco phones but connected to SIP proxies, and not callmanagers. I don't think this is the place to discuss btxml.. I've never seen a single mention.. you might find people in Asterisk or similar forums though.
    Now, your screenshot shows a CiscoIPPhoneImage.. behind it is a simple PNG image, at a resolution of 298x168 and at 24bits (the shot looks like from an IP Communicator). Depending on the phone type, the resolution varies (IP Communicator and 797x phones have the same resolution but different bit depths, the 7965/54 have a lower res and 16bit, the 7921 supports a resolution of 176x140 at 16 bit).
    It's probably easier for you if you stick to the CiscoIPPhoneImageFile instead of the CiscoIPPhoneImage because PNG is a standard, whereas with CIP you either write your own library, or you create a GIF in your code then use Cisco's code to convert that to a CIP file.
    For your reference, here's the latest IP Phone services developer guide: http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/all_models/xsi/6_0/english/programming/guide/XSIbook.html. It contains detailed information about every CiscoIPPhone element, including samples.
    Creating a PNG file pro grammatically is a bit out of scope of this forum.. you need to figure that one out on your own but there are tons of other boards on the web that deal with that kind stuff. Once you have the PNG, creating the appropriate CiscoIPPhoneImageFile object will be a piece of cake. Once you have your PNG generation in order and still have trouble getting the object to the phone, it would be appropriate to continue here.

  • Output in a Table format

    Hi,
    In PL/SQL,I am having a requirement send a mail.
    That mail has the message in table format.
    How to have output in table format.
    Please help me out.

    Create the html mail body using HTML tags. There are numerous posts on internet, try searching. Basic is you create the HTML body using HTML syntax and the mail shoudl support HTML format.
    v_htmlbody VARCHAR2(32767);
    -- Header and Body
    v_htmlbody := '<HTML> <BODY>'
    -- Prepare HTML Table Header
    v_htmlbody := v_htmlbody  || '<table border="1" cellpadding="1">';
    v_htmlbody := v_htmlbody|| '<tr>'
                                                    || '<th>' || 'Company'      || '</th>'
                                                    || '<th>' || 'Name'           || '</th>'
                                                    || '<th>' ||'Amount'          || '</th>'
                                              || '</tr>' ;
    -- Prepare HTML Table Body
    FOR rec in <cursor> LOOP
    v_htmlbody := v_htmlbody|| '<tr>'
                                                    || '<td">' || rec.company     || '</th>'
                                                    || '<td>' ||  rec.name          || '</th>'
                                                    || '<td>' ||  rec.amount       || '</th>'
                                              || '</tr>' ;
    END LOOP;
    -- End HTML Table
    v_htmlbody := v_htmlbody|| '</table>'
    -- End Header
    v_htmlbody :=v_htmlbody ||  '</BODY> </HTML>'
    -- Finally sent the v_htmlbody using mail
    {code}
    Edited by: Himanshu Binjola on Apr 25, 2012 11:27 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • WD Compoenent - Non -Interactive form- Not displaying output

    Hi,
    I am practicing this adobe form session [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/a3e2f018-0b01-0010-c7a8-89deb6e63e97] from SDN.Unfortunately this session was not complete so I am trying to complete it.
    In brief : this WD component accepts CARRID and displays output in PDF format.
    I was able to capture selection and get respective entries for that selection in my internal table but my display is blank.Here is what I coded in Search Button..
    method ONACTIONSEARCH .
        data: isflight type table of sflight.
        DATA lo_nd_adobe_data TYPE REF TO if_wd_context_node.
        DATA lo_el_adobe_data TYPE REF TO if_wd_context_element.
        DATA lo_nd_data_selections TYPE REF TO if_wd_context_node.
        DATA lo_el_data_selections TYPE REF TO if_wd_context_element.
        DATA ls_data_selections TYPE wd_this->element_data_selections.
    * navigate from <CONTEXT> to <DATA_SELECTIONS> via lead selection
        lo_nd_data_selections = wd_context->get_child_node( name = wd_this->wdctx_data_selections ).
    * get element via lead selection
        lo_el_data_selections = lo_nd_data_selections->get_element(  ).
    * get all declared attributes
        lo_el_data_selections->get_static_attributes(
          IMPORTING
            static_attributes = ls_data_selections ).
    * Retrieve that data from the database. Normally it is suggested to
    * encapsulate the data retrieval in a separate class.
    * For simplicity, the SELECT statement has been implemented here.
        clear isflight. refresh isflight.
        select * into corresponding fields of table isflight from sflight
        where carrid =  ls_data_selections.
    * navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
        lo_nd_adobe_data = wd_context->get_child_node( name = `ADOBE_DATA` ).
        lo_nd_adobe_data->bind_elements( isflight ).
    endmethod.
    endclass.
    Anything wrong with my code..I am getting my data in  isflight internal table.
    FYI..I am throwing output as text field in adobe form.
    rgds
    vara
    Edited by: Vara K on Jan 19, 2009 9:51 PM
    Edited by: Vara K on Jan 19, 2009 10:02 PM

    Hi Vara,
    Try this:
    method ONACTIONSEARCH .
        data: isflight type table of sflight.
        DATA lo_nd_adobe_data TYPE REF TO if_wd_context_node.
        DATA lo_el_adobe_data TYPE REF TO if_wd_context_element.
        DATA lo_nd_data_selections TYPE REF TO if_wd_context_node.
        DATA lo_el_data_selections TYPE REF TO if_wd_context_element.
        DATA ls_data_selections TYPE wd_this->element_data_selections.
    * navigate from <CONTEXT> to <DATA_SELECTIONS> via lead selection
        lo_nd_data_selections = wd_context->get_child_node( name = wd_this->wdctx_data_selections ).
    * get element via lead selection
        lo_el_data_selections = lo_nd_data_selections->get_element(  ).
    * get all declared attributes
        lo_el_data_selections->get_static_attributes(
          IMPORTING
            static_attributes = ls_data_selections ).
    * Retrieve that data from the database. Normally it is suggested to
    * encapsulate the data retrieval in a separate class.
    * For simplicity, the SELECT statement has been implemented here.
    *    clear isflight. refresh isflight.
        select * into corresponding fields of table isflight from sflight
        where carrid =  ls_data_selections-carrid.
    * navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
        lo_nd_adobe_data = wd_context->get_child_node( name = `ADOBE_DATA` ).
        lo_nd_adobe_data->bind_elements( isflight ).
    endmethod.
    I hope it helps.
    Regards
    Arjun

  • Radio Validation Widget Blocked by table formatting?

    We are building a form we will be using to assess user
    satisfaction with our application (university employee development)
    and it contains a number of likert scale questions (one a scale of
    1-5 this best addresses . . . . ). The likert scale is displayed in
    a table format.
    The problem is that the spry Radio validation widget
    (radioRequiredMsg) will ONLY display if the table formatting is
    suppressed. The table formatting appears to be blocking the spry
    validation.
    Anyone have any idea why this is? Or how we could solve this
    problem?
    Please HELP!
    thanks in advance
    m

    Have to use the following as suggested by KPSeal:
    // If you're using a JMenuJMenu menu = new JMenu("Menu 1");menu.getPopupMenu().setLightweightPopupEnabled(false); // If you're using a JPopupMenuJPopupMenu popupMenu = new JPopupMenu("Popup Menu 1");popupMenu.setLightweightPopupEnabled(false);
    Best Regards,
    yckok

  • HTMLB Controls for Table Format

    How to display information in table format by using HTMLB
    controls in JSP Dynpage from Oracle

    Hi  Srikanth ,
    Here is the code in HtmlB for Displaying content in Table Format.
    You need to retrieve 1stColumn, 2nd Column,,,,, and Rows from the database using sql statements.  Connection con = DriverManager.getConnection(url);
                        ResultSet rs ;
                        String query ="Query to passed to DB";
                        Statement stmt = con.createStatement();
                        rs = stmt.executeQuery(query);
                        if(rs.next())
    private DefaultTableViewModel createNewTable
                                      (DefaultTableViewModel model) {
            Vector data = createData();
            Vector colName = new Vector();
            /* Define column names */
            colName.addElement("1stColumn");
            colName.addElement("2ndColumn");
            colName.addElement("3rdColumn");
            model = new DefaultTableViewModel(data, colName);
            return model;
        private Vector createData() {
            Vector dataVec = new Vector();
            Vector retVector = new Vector();
            /* 1st entry */
            dataVec.addElement("Row 1, Column 1");
            dataVec.addElement("Row 1, Column 2");
            dataVec.addElement("Row 1, Column 3");
            retVector.addElement(dataVec);
            /* 2nd entry */
            dataVec = new Vector();
            dataVec.addElement("Row 2, Column 1");
            dataVec.addElement("Row 2, Column 2");
            dataVec.addElement("Row 2, Column 3");
            retVector.addElement(dataVec);
            /* more entries */
            return retVector;
    private DefaultTableViewModel createNewTable
                                      (DefaultTableViewModel model) {
            Vector data = createData();
            Vector colName = new Vector();
            /* Define column names */
            colName.addElement("1stColumn");
            colName.addElement("2ndColumn");
            colName.addElement("3rdColumn");
            model = new DefaultTableViewModel(data, colName);
            return model;
        private Vector createData() {
            Vector dataVec = new Vector();
            Vector retVector = new Vector();
            /* 1st entry */
            dataVec.addElement("Row 1, Column 1");
            dataVec.addElement("Row 1, Column 2");
            dataVec.addElement("Row 1, Column 3");
            retVector.addElement(dataVec);
            /* 2nd entry */
            dataVec = new Vector();
            dataVec.addElement("Row 2, Column 1");
            dataVec.addElement("Row 2, Column 2");
            dataVec.addElement("Row 2, Column 3");
            retVector.addElement(dataVec);
            /* more entries */
            return retVector;
    private DefaultTableViewModel createNewTable
                                      (DefaultTableViewModel model) {
            Vector data = createData();
            Vector colName = new Vector();
           /* Define column names */
            colName.addElement("1stColumn");
            colName.addElement("2ndColumn");
            colName.addElement("3rdColumn");
            model = new DefaultTableViewModel(data, colName);
            return model;
        private Vector createData() {
            Vector dataVec = new Vector();
            Vector retVector = new Vector();
            /* 1st entry */
            dataVec.addElement("Row 1, Column 1");
            dataVec.addElement("Row 1, Column 2");
            dataVec.addElement("Row 1, Column 3");
            retVector.addElement(dataVec);
            /* 2nd entry */
            dataVec = new Vector();
            dataVec.addElement("Row 2, Column 1");
            dataVec.addElement("Row 2, Column 2");
            dataVec.addElement("Row 2, Column 3");
            retVector.addElement(dataVec);
            /* more entries */
            return retVector;
    Hope This will Be Helpful to you. Reward Points if this helps you.
    Regards,
    Eben Chella Metilda

  • Display sql output in xml format

    Hi,
    We are using Oracle 9i. I want to display output of a sql query as xml format.
    I noticed EXTRACT function in SQL does this. Can anyone please explain XMLType instance and XPath string parameters of this function.
    All of my table columns are NUMBER/VARCHAR2 data types and the table is also NOT a XML Type. Please let me know the solution.
    Thanks.

    SQL> select dbms_xmlquery.getxml('select * from scott.emp where rownum < 3') from dual ;
    DBMS_XMLQUERY.GETXML('SELECT*FROMSCOTT.EMPWHEREROWNUM<3')
    <?xml version = '1.0'?>
    <ROWSET>
       <ROW num="1">
          <EMPNO>7369</EMPNO>
          <ENAME>SMITH</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7902</MGR>
          <HIREDATE>12/17/1980 0:0:0</HIREDATE>
          <SAL>800</SAL>
          <DEPTNO>20</DEPTNO>
       </ROW>
       <ROW num="2">
          <EMPNO>7499</EMPNO>
          <ENAME>ALLEN</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>2/20/1981 0:0:0</HIREDATE>
          <SAL>1600</SAL>
          <COMM>304</COMM>
          <DEPTNO>30</DEPTNO>
       </ROW>
    </ROWSET>
    1 row selected.
    SQL> select XMLType(dbms_xmlquery.getxml('select * from scott.emp where rownum < 3')).extract('/ROWSET/ROW[@num = "2"]/ENAME/text()').getStringVal() from dual ;
    XMLTYPE(DBMS_XMLQUERY.GETXML('SELECT*FROMSCOTT.EMPWHEREROWNUM<3')).EXTRACT('/ROWSET/ROW[@NUM="2"]/ENAME/TEXT()').GETSTRINGVAL()
    ALLEN
    1 row selected.
    SQL>

  • How to display the Internal table records in table format?

    Hi Gurus,
    I want to display my print prg internal table records in d appropriate form in a table format, give some solution
    with regards
    Thambe

    There are lot many options to do that
    one way is create template  in the maikn window  and define the line types according to your data  cretae text and put your data in the text and go to output options and give  the line type to be used . You can also select details option to have lines in your output.
    similarly YOU CAN CREATE TABLE IN THE MAIN WINDOW FOR THIS YOU DONT NEED TO DEFINE THE LINE TYPES .
    WHEN YOU ARE IN MAIN WINDOW RIGHT CLICK ON TABLE AND GO TO PATH
    CREATE  -> TABLE
                  -> TEMPLATE
    REWARD IF USEFUL
    Regards,
    Nageswar

Maybe you are looking for