Creation of a table with static data(not a DB table)

Hi
I need to display a table with some static data in an OAF page. This table is not a DB table. It is like an HTML table
I have placed the following query
SELECT 'A1','B1' FROM DUAL UNION SELECT 'A2',B2' FROM DUAL in the VO. But it is returning a single row which is acting as the header of the table.
Can anyone help me to create the table with 2 rows inserted in it.
Thanks
Edited by: gsaxena on Aug 4, 2009 3:04 AM
Edited by: gsaxena on Aug 4, 2009 5:24 AM

Hi
Please execute your VO inside the CO of table region ,right now it is not getting executed,thats y it is giving just column names
use the following code PR method of CO
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject oav = (OAViewObject)am.findViewObject("XXVO");
oav.first();
let me know in case of any issue
thanx
Pratap

Similar Messages

  • How To Create Table with Static Data

    JDEV 10.1.3
    ADF BC
    ADF Faces
    I am trying to make some simple screen/screenflow diagrams to help flesh out some requirements. To do that, I need to make a table with static data that is not hooked up to a data source (because the data model has not yet been clearly defined, and I'm using the diagrams to help iterate the requirements).
    Is it possible to create a table that shows static data (i.e. a set of rows that does not come from a model data source, but rather is hardcoded.)
    If not, how does one create mock ups without actually implementing the data model?
    Thank you.

    Deepak, what specifically in those 2 links from Amis are useful? Those 2 posts are about bind variables, not static list of values?
    In response to the original poster, I'll attempt to help a little more.
    In the 11g release you can create VOs based on a static list of values. However in your case on 10.1.3, the best method I've found is to create a VO based on a SELECT <columns> FROM DUAL statement. The columns then include your dummy data. If you need more than one row, simply UNION ALL a number of SELECT statements together.
    What I haven't checked, is when you eventually transform the VO based on the SELECT DUAL statement into a VO based on an EO drawing real data from the database, is it an easy process? I recommend you try this out before committing to the approach above. Let us know how you go.
    Regards,
    CM.

  • OSO opportunities with future date not showing up

    When you search organization and click on opportunites you can all the opportunities loaded with close date of 30jun2011 (fiscal year end) not the onles after this date.
    How and where do I need to look for thsi set up update to display opportunites for next fiscal year.

    I also don't know why these forums don't have an "iTunes store" section.
    You mean like this? -> Using iTunes Store with Windows
    or this ? -> Using iTunes Store with iTunes for Mac
    It is the same regardless of what operating system you run your client on.
    The actual store is the same though iTunes is slightly different, such as some of the options and key presses.
    If someone were having problems, the first question I would ask is what computer and OS is being used.
    If a question is posted in the *Using iTunes Store with Windows forum*, I won't need to ask.

  • Google Calendar tasks (with due dates) not showing on cal

    Google tasks with due dates show up in google calendar.  I have google calendar synced to my ical and iphone cal no problem.  But those tasks with due dates do not show up on the ical / iphone cal....
    Does anyone have this working successfully?

    You can download BB Bridge on your handheld, then bridge between HH and PB.
    After installation, please do a hard reset for your HH.
    refer to this KB, it can help you to set it up.
    KB27823
    I will try my best to help you with the issue you get.

  • Tasks with due dates not showing in Calendar

    Hi there,
    This is my first time here. Anyway, any suggestions how I can make my tasks with due dates to show in my Playbook calendar, the same way they are in my 9810's calendar? I intend to use my Playbook at work as well.
    Tan Wei

    You can download BB Bridge on your handheld, then bridge between HH and PB.
    After installation, please do a hard reset for your HH.
    refer to this KB, it can help you to set it up.
    KB27823
    I will try my best to help you with the issue you get.

  • New IMac - transferring data with Lexar jump drive - all files come across as modified with todays date not date formed as on the old computer (also an IMac) what gives.

    I purchased a new Imac and when transferring data with a Lexar Jump drive the filed come across as modified with todays date rather than the date that the files were created. How do I keep the files as they are?

    I purchased a new Imac and when transferring data with a Lexar Jump drive the filed come across as modified with todays date rather than the date that the files were created. How do I keep the files as they are?

  • Creation of service order with address data.

    Hello community,
    I have the following requirement: create maintenance orders with order address data, the creation of these orders will be triggered by an interface with a legacy system.
    For order creation I intend to use BAPI_ALM_ORDER_MAINTAIN but this function does not provide the possibility to enter address information.
    I would not like to have to create a partner and assign it to the order as this address will be used only once.
    Does anyone have suggestions how to do it ?.
    Thanks.
    Roberto.

    Roberto,
    Try this:
    *& Report  ZPJA_ADDR_TX
    report  zpja_addr_tx.
    data: lt_adrc  type  standard table of adrc with header line.
    data: lt_adrc1 type  standard table of addr1_data with header line.
    * get address from first object
    call function 'ADDR_SELECT_ADRC_SINGLE'
      exporting
        addrnumber        = '0000033071'
      tables
        et_adrc           = lt_adrc
      exceptions
        address_not_exist = 1
        parameter_error   = 2
        internal_error    = 3
        others            = 4.
    loop at lt_adrc.
      move-corresponding lt_adrc to lt_adrc1.
      lt_adrc1-name1 = sy-timlo.   " write current time for testing
      append lt_adrc1.
    endloop.
    * update second address
    call function 'ADDR_UPDATE'
      exporting
        address_data        = lt_adrc1
        address_number      = '0000033205'
        date_from           = '00010101'
        language            = sy-langu
        check_empty_address = ' '
        check_address       = ' '
      exceptions
        address_not_exist   = 1
        parameter_error     = 2
        version_not_exist   = 3
        internal_error      = 4
        others              = 5.
    call function 'ADDR_MEMORY_SAVE'.

  • Creation of Customer Master with Sales Data

    Hi Experts,
    I have a requirement in whic i have to Create/Change Customer Master through Custom program.
    The Customer Master details will be stored in file and Retrieved through program with the following Tables to be Updated
    KNA1 - Customer Master
    ADRC - Address
    ADR2 -  Telephone Number
    ADR3 - Fax Number
    ADR6 - E-Mail Addresses
    KNVV - Customer Master Sales Data
    KNVP - Customer Master Partner Functions
    KNVK - Customer Master Contact Partner
    From SDN  i came to know about  CMD_EI_API . Can you please tell me which is the method suitable for Creation/Change of Customer Master with the above details.
    Regards,
    Shrikanth R

    Hi Experts,
    Please help me how to use MAINTAIN_BAPI method in Class CMD_EI_API  in order to create Customer Master.
    Regards,
    Shrikanth R
    Edited by: SHRIKANTH R on Jul 15, 2010 11:59 AM

  • Dynamic current date variant with static date

    I have a report that I want to execute with a variant that defaults dynamically to today's current date, but I also want to select based on if that date field is initial too.  In one execution.  So select record if date is either today's date (dynamically calculated) or date is initial.
    Anyone know how I can do that?
    Thanks so much
    Cathy

    hi
    Did you try to force value in the variant in the multiple value with a value equal to space? So it will be like default date as today's date and fixed values as space.
    Force value in the sense we use fixed values in the selection screen.
    If this is not working then do coding in infoset
    Br
    Vijay V

  • Execute query  run fine with numeric data not give result on string data

    Hi master
    Sir I use under blow code for execute query
    sir when I use numeric data then run fine but when I use character data then not give any result
    with numeric run fine
    DECLARE
         DD VARCHAR2(15);
    BEGIN
         DD:=10;
    set_block_property('emp', default_where, 'where DEPTNO='||DD);
    go_block('emp');
    execute_query;
    set_block_property('emp', default_where, '');
    END;
    With character not give any result
    DECLARE
         DD VARCHAR2(15);
    BEGIN
         DD:='SALESMAN';
    set_block_property('emp', default_where, 'where RTRIM(EMPNO)='||DD);
    go_block('emp');
    execute_query;
    set_block_property('emp', default_where, '');
    END;
    Please give me any idea

    bro it is not working on string format coz of the missing quotes. e.g. 'smith' or smith. so the quoted string will be compared. in set_block_property u have to include extra quotes on the variable. e.g.
    set_block_property('emp',default_where,'where ename='''||:emp.ename||'');
    or with conditional statement
    set_block_property('emp',default_where,'where ename='''||:emp.ename||''' and dname='''||dept.deptno||'');
    there i included two extra qoutes before joining ename and in the an extra quote to complete to string. if u would like to debug at runtime to show if the qouted string condition is proper then assign the where clause to a variable and message it up.
    like
    myvariable:='where ename='''||:emp.ename||'';
    message(myvariable);
    message(myvariable);
    set_block_property('emp',default_where,myvariable);
    after the string is quoted properly the execute query will work fine, also use the function upper or lower to compare strings.
    zaibi.

  • Field With No Data Not Being Retrieved

    I have a Crystal Reports that is not retrieving the correct data.  The fields has
    a value of "POST" or nothing in the field.  When I code the "Selection Formulas"
    for "Record" (i.e equal to "POST") I get the correct number of records, but when I
    reverse the logic (i.e not equal to "POST"), I receive no records at all.  I
    changed the "Report Options" to "Convert Database NULL Values to Default" and
    "Convert Other Null Values to Default" (with both, one or no boxes checked), I
    get the same results.  I also changed "Options" ("Null Treatment") for
    "Exceptions For Nulls" and also tried "Default Values For Nulls". What must I do to
    retrieve these records that nothing in the "" fileld ?  Sample code is
    below.  Thanks  ! ! !
    Gives Correct Data
    in {?Withdrawn Date}
    And = "POST"
    Does Not Give Correct Data
    in {?Withdrawn Date}
    And NE "POST"
    Edited by: Lenell Hooker on Mar 24, 2010 7:09 PM

    hi,
    in {?Withdrawn Date}
    And
    if isnull( ) then TRUE
    else
    <> "POST"
    Please try it. It will work.
    Regards,
    Vamsee

  • Problem with nested data not displaying

    I have created a dataset with a filter as follows:
    var dsCustomer = new
    Spry.Data.XMLDataSet("../xml/orderstatus111307.xml",
    "company/customers/custid",{useCache:false,loadInterval:9000});
    dsCustomer.setColumnType("daterun", "date");
    var myFilterFunc = function(dataSet, row, rowNumber)
    if (row['ds_RowID'] == 1)
    return row;
    return null;
    dsCustomer.filterData(myFilterFunc);
    and then created a nested dataset as follows:
    var dsOrderList = new Spry.Data.NestedXMLDataSet(dsCustomer,
    "orders");
    dsOrderList.setColumnType("duedate", "date");
    My repeat is set in a table as follows:
    <div id="OrderTable" spry:region="dsOrderList
    dsCustomer">
    <table cellspacing="0">
    <tr>
    <th spry:sort="orderno">Orderno</th>
    <th spry:sort="purchaseorder">Purchaseorder</th>
    <th spry:sort="duedate">Duedate</th>
    </tr>
    <tr spry:repeat="dsOrderList" spry:setrow="dsOrderList"
    spry:even="tdAlt" spry:hover="tdOver" spry:select="tdSelect">
    <td class="tdLeft">{orderno}</td>
    <td>{purchaseorder}</td>
    <td>{duedate}</td>
    </tr>
    </table>
    </div>
    For some reason I get the following error when I view it in a
    browser:
    Failed to retrieve data set (dsOrderList) for spry:repeat
    You can see the page here:
    http://apps.esc-online.com/mickelectric2/249000/index.html
    I am using Spry 1.6

    quote:
    Originally posted by:
    mokean
    Hi V1 Fusion...
    I am having the same problem. (Failed to retrieve data set
    (dsOrphans) for spry:repeat)
    What do you mean by; include SpryNestedXMLDataSet.js and u
    would be ready to go ;)
    I am creating a website for an orphanage in Africa.
    Thanks.
    He forgot to include the SpryNestedXMLDataSet.js in the
    header of the page, thats why it wasn't working.
    Do you have url where i can see your issue?

  • Auto creation of user pages with their data when they register to a site and go to that page

    I have watched few posts slightly related to this topic but i didnt got the result.
    I am creating an user authentication system using Dreamweaver 8, PHP and MySQL.
    Database, login system and user authentication has been created.
    With 'Log In User' server behavior if succeeds, the user goes to username.php file in the
    site root directory. It happens to all the users with such .
    But I want to take each user to his own page with his account details only.  They dont need
    to go or watch other users information.
    How to creates a new page in dreamweaver with the username of the each user got registered
    and takes him to his own page with details from database related to that user.
    Thank you

    I would have a db table called account details.  Upon successful login run a SQL Query (recordset behavior in DW) similar to the followin: SELECT * FROM account_details WHERE UserName = 'Username'.  Put the approriate fields in your page and there ya have it.
    Recordset walk-thru:
    http://www.garunawebdesigner.com/?p=8052

  • Stock details with old date.??

    Hi experts,
    How to know the stock details  with old date (not period)
    date 2 months back or 4 months back.
    with material,wih material group or plant..?
    how to know the total stock details
    MB5L  is for just  last one period stock only we can get..??
    how can i get with any old date?'
    Regards,
    Anthyodaya.
    Edited by: anthyodaya Reddy Nagaram on Apr 5, 2010 12:52 PM

    Check the report
    S_P00_07000139
    Change layout as per your requirement

  • CVC creation - Strange issue with Master data table of 9AMATNR

    Hi Experts,
    We have encountered a strange issue with Master data table (/BI0/9APMATNR) of info object 9AMATNR.
    We have a BADI implemented for checking the valid Characteristic before creation of the CVC using transaction /SAPAPO/MC62. This BADI puts a select on master data tab of material /BI0/9APMATNR and returns no value. But the material actually exists in the table (checked through SE16).
    Now we go inside the info object 9AMATNR and go to the Master data Tab. There we go inside the master table
    /BI0/9APMATNR and activate that. After activating the table it is read by the select statement inside BADI (Strange) and allows the CVC to be created.
    Ideally it should not allow us to activate the SAP standard table /BI0/9APMATNR. I observed that in technical settings of this table it has single record buffering as switched on. (But as per my knowledge buffer gets refreshed every 2 to 4 mins and not in 2 days or something).
    Your expert comment is valuable to us. Thanks.
    Best Regards,
    Chandan Dubey

    Hi Chandan,
                 Try to use a WAIT statment with 5 seconds before your select statment.
    I'm not sure whether this will work. Anyway check it and let me know the result.
    Regards,
    Siva.

Maybe you are looking for