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

Similar Messages

  • HTMLB control for displaying clientside error messages

    Hi all,
    I want to display client side validation error messages in a JSP DynPage.I have tried MessageBar but it can't be accessed from JavaScript file.Becuase of that i couldn't write error messages from .js file using MessageBar.Can U plz tell me is there any other HTMLB control or other way to display clientside error messages.
    Urgent
    Thanks
    Sampath.G

    Hi Sampath,
    I have an idea to use message bar in client side.
    1.First create a div at the begining of a page which is always visible.
    2.create some hidden div tags which contains message bars with different error or information messages.
    3. during the validation in javascript if u want to show error message just assign the content of hidden div tag
    to visible div tag.Now u will get error message as like real message bar.
    Then in javascript just write this code
    document.getElementById('sample').innerHTML=document.getElementById('Error').innerHTML
    where sample-->id of visible div
    Error-->id of hidden div inside which u need to write the code for messagebar
    this wiil show the error message at the place of visible div (sample).
    <b>Note:</b>
    If u want to change the messageBar text dynamically that can be possible only through server side only using bean to set and get error messages.
    I am not able to give some sample coding since the code button throws some script error.
    Ragards,
    Tamil K

  • Tab index for htmlB controls for java

    Hi,
    How can we set the tab index for HtmlB Conrols for java.
    Thanks,
    Padmaja

    Hi Padmaja,
    I'd suggest you use the following:
    TabStrip myTabStrip = new TabStrip("myTabStrip");
    TabStripItem myItem = myTabStrip.addTab(1); <=== Tab index specified as 1
    Index position can be specified using the addTab(<index>) method.
    Regards,
    Divya

  • Table Format VBS CS3

    I have a pre existing script that we used in CS and CS2 to reformat a pre-existing table.
    I won't include all the VBScript but what it basically does is this -
    -Take an existing frame that already has a table.
    -Then the borders are changed and the text is aligned.
    -Then a dialog box appears and you can then select colors for different cells, etc.
    -After doing that the colors are filled into the different cells.
    The script has worked in both CS and CS2 perfectly (other than making few minor changes like setting the Application to CS, CS2).
    After trying it in CS3 instead of reformatting the table it strips the borders completely and then adds a table above the existing table/text.
    My question is if anyone knows of any major changes in CS3 for Table Formatting?

    I have walked through the VBScript and it appears that the line that doesn't seem to work the same is this -
    Set myTable = myStory.Tables.Add
    This doesn't reformat the text into a table but instead adds a table above the text.
    Any ideas would be great!

  • How to select perticular row in table control for BDC

    Hi all
    I want to select perticular row in table control for deletion through BDC. My transaction is CA02, My input is  material no and plant , then it display table control with work center. Now i want to select W999 cost center and delete through BDC.
    Please Suggest me. it urgent.
    Thanks& Regards,
    RP

    Hi all
    I want to select perticular row in table control for deletion through BDC. My transaction is CA02, My input is  material no and plant , then it display table control with work center. Now i want to select W999 cost center and delete through BDC.
    Please Suggest me. it urgent.
    Thanks& Regards,
    RP

  • How to add column in table control for transaction APPCREATE

    Hi All,
    How can i add the additional column in table control for transaction APPCREATE.
    There is structure PT1045_EXT present behind table control. But not found any customer exit or badi to display on screen.
    Please help...

    You can add new columns
    If you add new columns in tr. PHAP_CATALOG

  • Issue with number of lines in Table control for an web transaction in ITS

    Hi,
    We have acustom web transaction ZC03 where we have used table controls. Recently a kernal patch has been installed and after that the number of lines appearing in table control has got changed. Earlier table control was coming with 5 lines and presently its coming with 3 lines. Can you please help me to fix the issue.
    The  code used in HTML template for table controi is given below:
    `SAP_DynproLayerBegin(005,013,067,006)`
      `SAP_TableControl("TC_TIME1")`
        `SAP_DynproLayerEnd()`
    I have tried other alternatives like  `SAP_DynproTableControl("TC_TIME1")`, `D_TableControl("TC_TIME1') but did n't get any fruitful result also.
    Thanks and Regards,
    Ranadev

    What where the precise Kernel updates? What where you on and what did you upgrade too?
    Did you apply any BASIS Support Pack corrections during the Kernel upgrade?
    If you applied a new BASIS support pack - check the following WIKI:
    [How to check the publishing Date of an Internet Service|http://wiki.sdn.sap.com/wiki/x/OYG8BQ ]
    if you need to republish - use the following WIKI:
    [How to activate, publish and test ITS services in the integrated ITS?|http://wiki.sdn.sap.com/wiki/x/kmE ]
    Regards,
    Oisin

  • Using Pages, I have created a document and inserted a Table for use in logging an inventaory. When I came to print this off however the lines for the table were missing but the text was in the Table format, weird! How do I print the Table?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

    Using Pages, I have created a document and inserted a Table for use logging an inventory. When I came to print this document the lines and boarders of the Table feature did not print however the text did print in the table format. How do I get the lines and boarders to print also?

  • Error Handling in table control for line item.

    Hi,
    Please how to do error handling in table control for line item in bdc,i have used format_message for header but i don't no fill decamps internal tabled and  how to do background processing in call transaction.
    Thanks

    Background processing is not possible using call transaction method.
    You can create an executable program which can have CALL TRANSACTION BDC code. And this can be run in background.
    What do you exactly mean by Error handling for Items in table control. Can you give some more details.

  • WIZARD FOR TABLE CONTROL DOCUMENTS REQUIRED

    hI ALL,
    cAN ANYBODY SEND ME DOCUMENTS RELATED TO TABLE CONTROL USING WIZARD.i NEED TO CREATE A TABLE IN WHICH I WOULD FILL THE TABLE WITH AND WHEN I SAVE IT I NEED THE ZTABLE TO BE UPDATED .
    cAN ANYBODY SEND ME SOME DOCUMENTS REGARDING HOW TO USE WIZARD.
    mY EMAIL ID :
    [email protected]
    tHANKS IN ADVANCE

    Hi Kajol,
    I was searching online and came with this short steps from this link:
    http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/dialogprogramcall-dump-725857#
    (1) drag the table control (with wizard) on the full screen. (2) press continue. (3) enter the name of your table control (any name you want) (4) press continue (5) select 'internal table' (6) enter name of your internal table (the one that contains data to be displayed for table control) (7) press continue (8) fields of your itab will be displayed then, select the fields you want to be seen on your table control (9) continue pressing 'continue' until complete button is shown (10) press 'complete'.
    I tried giving database table name instead of internal table at point number (6).
    Also, did you go thru this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/150d67da1011d3963800a0c94260a5/content.htm
    Hope this will be of some help to you.
    Regards,
    Vivek

  • "Table Name" in customizing SUS:"make field control settings for tables"?

    Hi Gurus,
    In the following customizing node, I can find the table name such as :
         ORDER.DET.EDIT
    +     ORDER.DET.VIEW+
    +     ORDER.HISTORY.DETAIL+
    +     ORDER.ITEM.EDITH+
    +     ORDER.ITEM.EDITL+
    +     ORDER.ITEM.EDITL.WO.OR+
    +     ORDER.ITEM.EDITM+
    +     ORDER.ITEM.EDITM.WO.OR+
    +     ORDER.ITEM.EDITS+
    +     ORDER.ITEM.EDITS.WO.OR+
    +     ORDER.ITEM.VIEWH+
    +     ORDER.ITEM.VIEWL+
    +     ORDER.ITEM.VIEWL.WO.OR+
    +     ORDER.ITEM.VIEWM+
    +     ORDER.ITEM.VIEWM.WO.OR+
    +     ORDER.ITEM.VIEWS+
    +     ORDER.ITEM.VIEWS.WO.OR+
    +     ORDER.LIST+
    +     ORDER.SDLN.EDIT+
    +     ORDER.SDLN.VIEW+
    It's difficult to know the difference for these so-called "table name"...
    "SAP implementaion --> supplier relationship management --> supplier self-service --> settings for user interface --> make field control settings for tables"+
    What's actual meaning for these table names? Where can I find related document and actual corresponding transparent tables for these so-called talbes?
    Thanks and best regards
    Jack

    Hi Neelima,
    Thanks a lot.
    Checked the SAP note, but I could not find corresponding infomation about that, kindly please advise again.
    Best regards
    jack

  • Screen Variant for table control in FB60

    Hi ,
    I need to create variant to show Quantity and Base Unit of Measure columns in the table control which is available at the first screen of FB60 . I tried using the option screen variant - > create variant. i couldnt see the options of colmuns properties for table control on click that small icon available at the right conner. Pls guide.
    Thanks

    In transaction SHD0 you need to create a new variant.
    After that you will be taken into FB60.
    Press Enter as if you are trying to process vendor invoice. It will take you to a screen "Screen values    1100 Program  SAPMF05A"
    There you will have 3 columns Output only, Invisible and Mandatory.
    Select as you want.
    Just try out carefully, you will be able to get the desired result.
    It is very difficult to guide you in details.
    Please let me know if you face any problems.
    Rgds,
    Harmees

  • How to find  dynamic value(screen value) in table control for current row .

    hi to all,
    i used table control in my screen. for column no 2 field i was used serrch help. and for column number 3 i used a dynamic help.
    in change mode you can change any row for table control.
    when i was using search help for a row which was already entered in column no 3 i cannot get any value.
    how i can get value of row no 3 and column no 2 value.
    thanks

    Try using like index for the serarch the TC-current_line

  • HR Abap - Reading table control for infotype 0416

    Hi,
    Infotype 416 'Create Time Quota Compensation' has a table control for 'Absence Quotas'.
    I have to read this table control in user exit ZXPADU02.
    Please assist in how to go about doing this.
    Regards,
    Warren.

    Hi All,
    I am using ZXPADU02.
    The FM's suggested don't work because the user enters a compensation value at runtime and when user clicks 'save' I need to pick this value up. The FM's pick up existing absence records but I need the ones being created at runtime.

  • Change the default country code for new contacts in Outlook 2013 for countries not listed in Control Panel Region Format

    Dear all,
    I would like to change the default country code for new Outlook 2013 contacts. My country is Mozambique (+258) and is not listed under Control Panel> Region> Formats> Format:
    Is there any place (registry maybe, anywhere) where I can manipulate the existing formats or manually add a new format to the List ??? - for example Portuguese (Mozambique).
    I am using Windows 8.1
    I have tried changing the country on the phone and modem options and nothing changes. Also changing the Home Location on Region> Location to Mozambique didn't change a thing. The only place where I change something and produces results is the
    Format List.
    Any ideias???? If not, is there a place where I can ask Microsoft to include Portuguese (Mozambique) on future windows updates???
    Kind regards,
    Osvaldo

    Hi,
    Windows uses the information set under
    'Phone and Modem'  in the Control Panel to determine the default area code.
    You can change the country/region to
    Mozambique
    and set your area code here:
    Regards,
    Steve Fan
    TechNet Community Support

Maybe you are looking for

  • Can I repeat the navegation bar at the bottom of a page?

    Hello, Some webpages I am writing are fairly long. I would like to repeat the navegation bar at the bottom of the page, so that the reader does not have to go to the top of the page to navegate through the pages of my website. Thank you!

  • Error message when syncing iPod

    I have a 2nd Generation iTouch and just recently when I go to plug my iTouch into sync, an error message comes up. It says "This iPod cannot be used because the required software is not installed. Run iTunes installer to remove iTunes, then install i

  • Where to look for file store in SAP

    Hi all, I got this path like below: "usr/files/DEV/interfaces/hr/present/outbound/empbal.txt" may i know which tcode should i use to check the existence of that file? Thanks William Wilstroth

  • Migrate to the Java 2 security model

    Hi, I've tried to use signed applets but I always get the following message: Java (TM) Plug-in: Version 1.3.1_02 Netscape security model is no longer supported. Please migrate to the Java 2 security model instead. Netscape security model is no longer

  • Generating a PDFoutput

    I am trying to generate a PDF using reports 10. I have the following settings in the system parameters: DESFORMAT initial value = 'pdf' DESNAME = c:\Temp\test.pdf I have a DESTYPE in the user parameters to which I added the 'File'. Then I go to File-