How to create the table with value list/map binding

I need to display some values in a tabular format. It is possible to create a table adf without having value binds to a VO object. I can make a table with a combination of list/map.

I want to change the format of display with minimum change in the application. I therefore seeks a change to a list/map and map with the table.

Here is the structure in that I need to post.

_______________________
|     | Header1. Tete2 |
|_______|_______|_______|
| Txt R1 | value 1. Value 2.
|_______|_______|_______|
| Txt R2 | Value 3. value 4.
|_______|_______|_______|

All views is completely irrelevant. So I should not create a VO and add the VO object lines.

Published by: yannick June 10, 2011 11:34

Yes, you can do it. Create a pojo with properties (column) that you want to display in the table and create a list of instances of the POJO and then you can fill your table using the list.

Sample:

//POJO
public class SamplePojo {

private String col1;
private String col2;

public SamplePojo(String col1, String col2){
  this.col1 = col1;
  this.col2 = col2;
}

//add setter and getter methods
}

//Inside bean, prepare a list with pojo instances (Assume a getter exists for pojoList)
pojoList = new ArrayList();
pojoList .add(new SamplePojo("Value1", "Value2");
pojoList .add(new SamplePojo("Value3", "Value4");
etc.

//Inside jspx

   
     
   
   
     
   

HTH
Jean Lou

Tags: Java

Similar Questions

  • How to create the table with the description of the table

    Hello

    I would like to create the array with the description of the table (such as the creation of package or procedure with comments).

    Is it possible to achieve thanks to the oracle, if possible please help me achieve this goal.

    Thank you and best regards,

    Ibrahim Sayyed.

    > create table test (col1 number);

    > comment table test is "about a comment ';

    > select comments from user_tab_comments where table_name = 'TEST ';

    COMMENTS
    ____________________________________________________________________
    This is a comment

  • How to create the table with the rows and columns using the layout?

    One of my friends advised me to put my site on the mode of provision as it is better than the standard as he said
    but I couldnot make an ordinary table with the rows and columns in mode available th
    y at - there someone who can tell me how to?
    Thank you very much

    Wednesday, April 18, 2007 21:01:38 + 0000 (UTC), "Mr.Ghost".
    wrote:

    > A friend of mine advised me to put my whole site on the mode of disposal as its
    > better than standard, as he says

    Your friend won't. Don't listen to him any more. Mode of disposal creates
    very fragile and rigid code pauses at the first opportunity.

    Gary

  • 5.6.1 pages: How to create a table with more than 999 lines?

    5.6.1 pages: How to create a table with more than 999 lines?

    The table on Pages v5.6.1 line selector is limited 3-digit, as it is in Pages ' 09 v4.3. Either use LibreOffice Writer, who does not have any constraint line on processing tables 3-digit, or any application spreadsheet for top 3-digit row needs.

  • Creating the table with time stamp

    I need to create the table with the data inside buffer

    Can you help me pls

    If it works today,

    create the table test_04NOV2010 in select * from product where product_code = '101'

    If executed tmrw,

    create the table test_05NOV2010 in select * from product where product_code = '101'
    declare
    
    v_date varchar2(25);
    v_sql  varchar2(20);
    
    begin
    
    select to_char(sysdate,'DDMONYYYY') into v_date from dual;
    
     v_sql := ' create table ' ||TEST||'_'||'v_date'|| 
                 ' as '
                 ' select * from Product where product_code = '101'
              
     EXECUTE IMMEDIATE v_sql;
    
    end;
    can is it you pls let me know how to use it in PL SQL

    Can you help me pls

    Thank you very much
    declare
    
    v_date varchar2(25);
    v_sql  varchar2(2000); --Noted this. this was also small.
    
    begin
    
    select to_char(sysdate,'DDMONYYYY') into v_date from dual;
    
     v_sql := ' create table TEST_'||v_date||
                 ' as select * from Product where product_code = ''101''';
    
     EXECUTE IMMEDIATE v_sql;
    
    end;
    

    You can use the Q operator also.

    DECLARE
    
    v_date varchar2(25);
    v_sql  varchar2(2000);
    
    BEGIN
    
    select to_char(sysdate,'DDMONYYYY') into v_date from dual;
    
     v_sql := ' create table TEST_'||v_date||
                Q'[ as select * from Product where product_code = '101']';
    
     EXECUTE IMMEDIATE v_sql;
    
    END;
    

    Published by: mohamed on November 4, 2010 05:32

  • How to create a table with two unique columns

    How to create a table with two unique columns. I use the following syntax below and I get the error message such unique or primary key already exists.

    create the table COPQ_WORKCELL_GOAL
    (
    Type_id varchar2 (4) NOT NULL UNIQUE,
    Tyle_Location varchar2 (30) NOT NULL UNIQUE,
    Type_Description varchar2 (20).
    KEY elementary SCHOOL (Type_id)
    );

    Use 1 or the other column type_id;

    create table COPQ_WORKCELL_GOAL
    (
      Type_id varchar2(4),
      Tyle_Location varchar2(30) NOT NULL UNIQUE,
      Type_Description varchar2(20),
      PRIMARY KEY (Type_id)
    );
    
    Table created
    drop table COPQ_WORKCELL_GOAL;
    
    Table dropped
    create table COPQ_WORKCELL_GOAL
    (
      Type_id varchar2(4) primary key,
      Tyle_Location varchar2(30) NOT NULL UNIQUE,
      Type_Description varchar2(20)
    );
    
    Table created
    
  • How to create a table with no lines to the left or to the right?

    If I create a table with say 5 columns and 15 lines, how not to do a vertical line (border) to the left and to the right of the table while keeping the boundary up and down? Is that possible or I just put a white box on the left and the right?

    IDCS3

    There are a few methods that work. Here is one.

    (1) select your table cells

    (2) open the race Panel

    3) click the blue lines of the proxy image in the Panel of stoke to deselect the lines inside and high and low lines

    (4) 0 the value of the weight of the race (or change the color of the None swatch)

    Oh and for the love of your fellow designers or the person that allows you to edit your work in the future... do NOT use a white box to hide the traits of lines and columns in the table.

    HTH

    -mt

  • How to create a table with editable column values.

    Hello world
    I think it's very simple, but I am unable to find how to do this. This is my requirement. I need to create a table with n columns and 1 line initially. the user must be able to enter data into this table and click of a button must insert the data into the database table. Also, there should be a button at the bottom of the table to add 1 line to the table.

    I know how to do the insertion of data, but can someone please let me know how to create a table which allows the user to enter data and how to create a line button Add 1?


    Thanks in advance!

    Raghu,

    Go through the tutorial of Toolbox Page & Advanced section of the Guide of the OFA table.

    Step 1 - you need to create EO & VO from this EO. This EO will be table of database where you want to insert the data.

    Step 2 - create an advanced table region. (See this section in table advanced for more details)

    Step 3 - attach this VO in the BC4J region advanced Table component.

    Kind regards
    GYAN

  • How to create the formula with the lookup table

    Hi, I would like to convert formula in the below format of labview, no idea how this could be done more easy way?

    I intend to use the node form, but I'm not sure how to use the table of choice within the formula not or is that even possible?

    BR, Jani

    Dim dblLookUp (-) As Double = New Double (3, 1) {{4, 4}, {10, 200}, {60, 3000}, {100, 7000}}
       
    If dblAbsValue > = 0 and dblAbsValue<= dbllookup(0,="" 0)="">
    USB = dblLookUp (0, 1) / dblLookUp (0, 0)
    dblAbsValue = dblValue * USB
    ' lblMode.Text = 1
    ElseIf dblAbsValue > dblLookUp (0, 0) and dblAbsValue<= dbllookup(1,="" 0)="">
    USB = (dblLookUp (1, 1) dblLookUp (0, 1)) / ((1, 0) - dblLookUp dblLookUp (0, 0))
    dblValue = USB * dblAbsValue - USB * dblLookUp (0, 0) + dblLookUp (0, 1)
    ' lblMode.Text = 2
    ElseIf dblAbsValue > dblLookUp (1, 0) and dblAbsValue<= dbllookup(2,="" 0)="">
    USB = (dblLookUp (2, 1) dblLookUp (1, 1)) / (dblLookUp (2, 0) - dblLookUp (1, 0))
    dblValue = USB * dblAbsValue - USB * dblLookUp (1, 0) + dblLookUp (1, 1)
    ' lblMode.Text = 3
    ElseIf dblAbsValue > dblLookUp (2, 0) and dblAbsValue<= dbllookup(3,="" 0)="">
    USB = (dblLookUp (3, 1) dblLookUp (2, 1)) / (dblLookUp (3, 0) dblLookUp (2, 0))
    dblValue = USB * dblAbsValue - USB * dblLookUp (2, 0) + dblLookUp (2, 1)
    ' lblMode.Text = 4
    On the other
    dblValue = dblLookUp (3, 1) ' * Math.Sign (dblValue)
    ' lblMode.Text = 5
    End If

    Return dblValue * intSign

    Hello janijt,

    You can certainly use formula node for it. What you would do is to create a constant for the lookup table.

    Here is an implementation in MathScript node

  • How to update the table when change list item in the classic report

    Hello
    I worked with apex 4.2 and I create normal classic report with list (named loved) select a column, now I want to update the table when the user changes the list with the new value, I can't create a dynamic action to do this, I create checkbox with the primary key and the loop for check point to update the table but I can not get the value of the list item. and for more speed, the user want to do it when changing the value from the list.

    My question
    1. how to do it in javascript and get the value of the list item and update the table with the new value
    2. do I have to use the API to create the list item so I can get the value of the report item or what.





    Thank you

    Ahmed

    You can find a lot of information in this forum (and outside in google) when you search for AJAX processes and demand. However, the tutorial in the link below should be useful:
    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/hol08/apexweb20/ajax_otn.htm

    BTW, if we answer your question, don't forget to mark the appropriate post as correct. It will help all of us in the forum.

  • How to create a table with these dimensions?

    Still new in Indesign, but I need to create a table like the one below.

    Screen Shot 2015-03-10 at 2.31.25 AM.png


    Select the text tool, I created a block of text and then insert a table. However, I'm lost as to how to change the top line for the length of the two columns from the bottom.
    I looked at the options of panel paintings, but it only allows me to change the number of lines and columns.

    All advice is appreciated. Thank you.

    You must create a table with two rows and two columns.

    To select the first line and click "merge cells".

  • How to create a table with muse?

    How can I create a table with muse?

    Muse do not support building tables at this time.

    However, you can add HTML table to the object-> the option Insert HTML code as a way to get around this.

    http://www.w3schools.com/HTML/html_tables.asp

    You can even try lining up a few text boxes with or without contour applied to create a tabular look editable in design mode.

    Thank you

    Vinayak

  • How to create multiple tables with SQL commands

    Hi, first of all, is it possible to create a table and then one more both with SQL commands?
    because I tried to do this in the following way
    Example:
    CREATE TABLE 'HB_Product')
    "productId" number 4 NOT NULL.
    "productName" VARCHAR2 (20) NOT NULL,
    "prodPricePerTon" NUMBER (10,2).
    "HB_Product_PK" PRIMARY KEY CONSTRAINT ("productId")
    )
    /
    CREATE TABLE 'HB_Operations')
    "orderNo" NUMBER (5) NOT NULL,
    'lineNo' number 4 NOT NULL.
    "billNo" NUMBER (10) NOT NULL,
    'actions' VARCHAR2 (15).
    'place' VARCHAR2 (15).
    "actDate" DATE NOT NULL,
    "totWeight" NUMBER (6.3).
    'HB_Operations_PK' CONSTRAINT PRIMARY KEY ('lineNo')
    )
    /

    I copied some of the syntax for creating the table object browser, but I preffer to use my own sql.
    It gives me an error "Missing or option not valid."

    Can someone explain to me how to do it properly, or why it is not possible?

    Best regards from Stan!

    862377 wrote:
    so you're saying I can't do several tables at the same time?

    Yes... Well,... not this way

    You can do this way

    create schema authorization alex
    CREATE TABLE "HB_Product" (
    "productId"    NUMBER(4) NOT NULL,
    "productName"    VARCHAR2(20) NOT NULL,
    "prodPricePerTon"    NUMBER(10,2),
    CONSTRAINT "HB_Product_PK" PRIMARY KEY ("productId")
    )
    CREATE TABLE "HB_Operations" (
    "orderNo"    NUMBER(5) NOT NULL,
    "lineNo"    NUMBER(4) NOT NULL,
    "billNo"    NUMBER(10) NOT NULL,
    "actions"    VARCHAR2(15),
    "place"    VARCHAR2(15),
    "actDate"    DATE NOT NULL,
    "totWeight"    NUMBER(6,3),
    CONSTRAINT "HB_Operations_PK" PRIMARY KEY ("lineNo")
    )
    /
    

    The question is: why do you want to create "at the same time? What is the harm in creating one after the other?

    some tips (maybe not desired):
    do not use quotation marks in your statement, this will create column names and the table out.

  • How to create a table with auto-numbering?

    I want to create a table with a default value of column to the increase in whole number. The first thought came to me, is to use the sequence. I find in google than following create statement
    create table etl_stats1 (run_time date,arr_rows int,lid int default nextval('etl_req'));
    get ORA-04044: procedure, function, package or type is not allowed here.

    There are discussions described here uses the trigger to do the job. But that does not support by default in a sequence, it seems so average.

    You must create a sequence and a trigger:

    SQL> create table etl_stats1 (run_time date,arr_rows int,lid int)
      2  /
    
    Table created.
    
    SQL> create sequence etl_seq;
    
    Sequence created.
    
    SQL> create or replace
      2    trigger etl_stats1_bir
      3    before insert
      4    on etl_stats1
      5    for each row
      6    begin
      7        select etl_seq.nextval into :new.lid from dual;
      8  end;
      9  /
    
    Trigger created.
    
    SQL> insert into etl_stats1 (run_time,arr_rows) values(sysdate,99)
      2  /
    
    1 row created.
    
    SQL> select * from etl_stats1
      2  /
    
    RUN_TIME   ARR_ROWS        LID
    -------- ---------- ----------
    15:38:41         99          1
    
    SQL> 
    

    SY.

  • Create the table with the environment variables

    Hi all
    When an event occurs, I would create a table by a planning procedure.
    I can create a table with these last or similar syntax:

    create table % s_ %t in select acme_ * from a;

    I would use this syntax because this event could be spend more time per day and so I can check.
    is this possible?

    Thank you very much
    Ciao
    Alberto

    Albertofro wrote:
    Hi all
    When an event occurs, I would create a table by a planning procedure.
    I can create a table with these last or similar syntax:

    create table % s_ %t in select acme_ * from a;

    I would use this syntax because this event could be spend more time per day and so I can check.
    is this possible?

    Thank you very much
    Ciao
    Alberto

    To dynamically create a table, you must use EXECUTE IMMEDIATE. If you want your table to be padded with timestamp name you can do it with the function TO_CHAR and SYSDATE.

    An example

    execute immediate 'create table acme_' || to_char(sysdate, 'DDMMYYYYHH24MISS') || ' as select * from a';
    

Maybe you are looking for