af:table with 2 sets of data

Hi All,
I have an af table below thats being populated via #{jpabean.myEntityList}. My requirement is to have a search function on this. I created an input text as below that takes the search value, and set the return data which will be #{jpabean.myEmplidList}, I just want to know how to populate my table with this second set of data
<af:table value="#{jpabean.myEntityList}" var="row" rowBandingInterval="0" id="t1"
rowSelection="single" columnSelection="multiple"
columnStretching="column:c4" allDetailsEnabled="true"
disableColumnReordering="true" fetchSize="100" styleClass="AFStretchWidth"
partialTriggers="cb2">
<af:inputText label="Emplid" id="it1" autoSubmit="true"
valueChangeListener="#{jpabean.valueChanged}"/>

Hi,
i will suggest to create search form using ebj/jpa or pojo data control. pls refer the below links for guidence.
http://www.oracle.com/technetwork/developer-tools/jdev/index-155270.html
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/73-handson-wsdc-321927.pdf
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/37-adf-pojo-pagination-169179.pdf
~Abhijit

Similar Messages

  • Create table with overlapping parallel dates in individual columns

    I am trying to combine data from two different tables into a single table.
    The data in table 1 contains unit locations of patients within a hospital where each record represents one location. Patients can be transferred many times between different beds resulting in many records for a single visit.
    The data in table 2 contains operating room activity of the patient in the hospital where each record represents either the OR of the recovery room stay. A patient may have multiple operations in one visit.
    I would like to join/merge/mashup the data into a single table that has the data parallel to each other. That is, the dates for the unit activity on one side of the table and the OR activity on the other. The difficulty is that the two sets of in/out dates overlap. I would like the final table to split the original records into new records when the overlaps do not coincide.
    Example:
    Original Events in two records (one per table)
    > Unit Event A - from 2pm to 6pm
    > OR Event B - from 4pm to 5pm
    Results in 3 records (in final table)
    > Event 1 - Unit from 2pm to 4pm, OR dates null
    > Event 2 - Unit from 4pm to 5pm, OR from 4pm to 5pm
    > Event 3 - Unit from 5pm to 6pm, OR dates null
    Of course the overlapping may be more complex that the above example, and adding in and out code to indicate "phantom" transfers will be needed as well.
    In the code below, the first OR visit occurs during the first unit record.
    Jason
    Oracle 10g
    [code]
    create table delme_Unit_dates
    ( id            varchar2(20)
    , unit_rcd_id   varchar2(20)
    , Unit_desc     varchar2(20)
    , Unit_in_code  char(1)
    , Unit_in_dttm  date
    , Unit_out_dttm date
    , Unit_out_code char(1));
    create table delme_or_dates
    ( id            varchar2(20)
    , OR_rcd_id     varchar2(20)
    , OR_desc       varchar2(20)
    , OR_in_code    char(1)
    , OR_in_dttm    date
    , OR_out_dttm   date
    , OR_out_code   char(1));
    create table delme_all_dates
    ( id            varchar2(20)
    , Unit_OR_id    varchar2(40)
    , Unit_rcd_id   varchar2(20)
    , Unit_desc     varchar2(20)
    , Unit_in_code  char(1)
    , Unit_in_dttm  date
    , Unit_out_dttm date
    , Unit_out_code char(1)
    , OR_rcd_id     varchar2(20)
    , OR_Desc       varchar2(20)
    , OR_in_code    char(1)
    , OR_in_dttm    date
    , OR_out_dttm   date
    , OR_out_code   char(1));
    insert into delme_unit_dates values ('123456','U1111','Unit A','A',to_date('2013-04-29 5:02:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-09 1:06:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),'B');
    insert into delme_unit_dates values ('123456','U1112','Unit A','B',to_date('2013-05-09 1:06:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-09 4:53:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),'B');
    insert into delme_unit_dates values ('123456','U1113','Unit A','B',to_date('2013-05-09 4:53:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-10 10:52:00 PM', 'yyyy-mm-dd hh:mi:ss am'),'T');
    insert into delme_unit_dates values ('123456','U1114','Unit D','T',to_date('2013-05-10 10:52:00 PM', 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-11 11:30:00 AM', 'yyyy-mm-dd hh:mi:ss am'),'B');
    insert into delme_unit_dates values ('123456','U1115','Unit D','B',to_date('2013-05-11 11:30:00 AM', 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-12 4:00:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),'B');
    insert into delme_unit_dates values ('123456','U1116','Unit D','B',to_date('2013-05-12 4:00:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-16 2:14:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),'T');
    insert into delme_unit_dates values ('123456','U1117','Unit Z','T',to_date('2013-05-16 2:14:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-17 2:26:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),'B');
    insert into delme_unit_dates values ('123456','U1118','Unit Z','B',to_date('2013-05-17 2:26:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-20 11:30:00 AM', 'yyyy-mm-dd hh:mi:ss am'),'D');
    insert into delme_or_dates values ('123456','OR2221','OR 1','O',to_date('2013-05-09 7:35:00 AM' , 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-09 10:56:00 AM', 'yyyy-mm-dd hh:mi:ss am'),'R');
    insert into delme_or_dates values ('123456','OR2222','RR 5','R',to_date('2013-05-09 10:56:00 AM', 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-09 3:20:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),'U');
    insert into delme_or_dates values ('123456','OR3331','OR 2','O',to_date('2013-05-16 7:59:00 PM' , 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-16 10:43:00 PM', 'yyyy-mm-dd hh:mi:ss am'),'R');
    insert into delme_or_dates values ('123456','OR3332','RR 8','R',to_date('2013-05-16 10:43:00 PM', 'yyyy-mm-dd hh:mi:ss am'),to_date('2013-05-17 11:20:00 PM', 'yyyy-mm-dd hh:mi:ss am'),'U');
    commit;
    -- this is nowhere near to what is needed
    select
      U.*
    , o.*
    from  
      delme_Unit_dates U
    , delme_OR_dates   O
    where
        U.id = o.id
    and U.UNIT_IN_DTTM  <= O.OR_IN_DTTM
    and U.UNIT_OUT_DTTM >= O.OR_IN_DTTM
    order by U.UNIT_IN_DTTM, O.OR_IN_DTTM
    [/code]
    Message was edited by: Jason_S (Changed one date from '2013-05-16 3:20:00 PM' to '2013-05-09 3:20:00 PM')

    I edited one of the dates in the original post.
    Both the inpatient unit and OR events are contiguous for a given patient (no overlaps and no gaps -- after data is cleaned) .
    I have no problem with a view instead of a table, and would probably prefer a view.
    There are about 3 million records in the inpatient unit table and 0.5 million in the OR table.
    Below is how I would like the final table (assuming I correctly split the records). I've used X's to represent the phantom movements. It seems that one should never have a phantom X in both the UNIT_IN_CODE and the UNIT_OUT_CODE (same for out codes).
    FYI, The B's mean transfer within a unit (change room/ed), the T's transfer between units, O's enter OR, R's enter recovery room.
    Also, the may be a future need to add an additional set of parallel dates (attending physician service)!
    ID
    UNIT_OR_ID
    UNIT_RCD_ID
    UNIT_DESC
    UNIT_IN_CODE
    UNIT_IN_DTTM
    UNIT_OUT_DTTM
    UNIT_OUT_CODE
    OR_RCD_ID
    OR_DESC
    OR_IN_CODE
    OR_IN_DTTM
    OR_OUT_DTTM
    OR_OUT_CODE
    123456
    U1111-
    U1111
    Unit A
    A
    04/29/2013 17:02
    05/09/2013 7:35
    X
    123456
    U1111-OR2221
    U1111
    Unit A
    X
    05/09/2013 7:35
    05/09/2013 10:56
    X
    OR2221
    OR 1
    O
    05/09/2013 7:35
    05/09/2013 10:56
    R
    123456
    U1111-OR2222
    U1111
    Unit A
    X
    05/09/2013 10:56
    05/09/2013 13:06
    B
    OR2222
    RR 5
    R
    05/09/2013 10:56
    05/09/2013 13:06
    X
    123456
    U1112-OR2222
    U1112
    Unit A
    B
    05/09/2013 13:06
    05/09/2013 15:20
    X
    OR2222
    RR 5
    X
    05/09/2013 13:06
    05/09/2013 15:20
    U
    123456
    U1112-
    U1112
    Unit A
    X
    05/09/2013 15:20
    05/09/2013 16:53
    B
    123456
    U1113-
    U1113
    Unit A
    B
    05/09/2013 16:53
    05/10/2013 22:52
    T
    123456
    U1114-
    U1114
    Unit D
    T
    05/10/2013 22:52
    05/11/2013 11:30
    B
    123456
    U1115-
    U1115
    Unit D
    B
    05/11/2013 11:30
    05/12/2013 16:00
    B
    123456
    U1116-
    U1116
    Unit D
    B
    05/12/2013 16:00
    05/16/2013 14:14
    T
    123456
    U1117-
    U1117
    Unit Z
    T
    05/16/2013 14:14
    05/16/2013 19:59
    X
    123456
    U1117-OR3331
    U1117
    Unit Z
    X
    05/16/2013 19:59
    05/16/2013 22:43
    X
    OR3331
    OR 2
    O
    05/16/2013 19:59
    05/16/2013 22:43
    R
    123456
    U1117-OR3332
    U1117
    Unit Z
    X
    05/16/2013 22:43
    05/17/2013 14:26
    B
    OR3332
    RR 8
    R
    05/16/2013 22:43
    05/17/2013 14:26
    X
    123456
    U1118-OR3332
    U1118
    Unit Z
    B
    05/17/2013 14:26
    05/17/2013 23:20
    B
    OR3332
    RR 8
    X
    05/17/2013 14:26
    05/17/2013 23:20
    U
    123456
    U1118-
    U1118
    Unit Z
    B
    05/17/2013 23:20
    05/20/2013 11:30
    D
    Jason

  • Creating a selectable HTML table with Sahrepoint list data dind

    Hi All,
    I m creating an app for sharepoint2013 , on my app I want to read data from SP list and display on something like HTML table/ grid view.
    What I have done is as follows.
    <table cellpadding="0" cellspacing="0" border="0" class="display" id="TermList">
                        <thead>
                            <tr>
                                        <th>Start Date</th>
                                <th>End Date</th>
                                <th>Term Type(s)</th>
                                <th>Specialty</th>
                                <th width="12%">Sub Specialty</th>
                            </tr>
                        </thead>
                                            <tbody>
                            </tbody>
    </table>
    var context = SP.ClientContext.get_current();
    var user = context.get_web().get_currentUser();
    var Termsitems, web, hostcontext, currentusertitle;
    var hosturl;
    (function () {
    $(document).ready(function () {
        gethostdata();
        getUserName();
        $('#TermList').dataTable(
                        "sScrollY": 200,
                            This will enable jQuery UI theme
                        "bJQueryUI": true,
                            will add the pagination links
                        "sPaginationType": "full_numbers"
        getTermdetails();
    function gethostdata() {
        hosturl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
        context = new SP.ClientContext.get_current();
        hostcontext = new SP.AppContextSite(context, hosturl);
        web = hostcontext.get_web();
        context.load(web, 'Title');
        context.executeQueryAsync(onSiteLoadSuccess, onQueryFailed);
    function onSiteLoadSuccess(sender, args) {
        //   alert("site title : " + web.get_title());
    function onQueryFailed(sender, args) {
        alert('request failed ' + args.get_message() + '\n' + args.get_stackTrace());
    function getQueryStringParameter(urlParameterKey) {
        var params = document.URL.split('?')[1].split('&');
        var strParams = '';
        for (var i = 0; i < params.length; i = i + 1) {
            var singleParam = params[i].split('=');
            if (singleParam[0] == urlParameterKey)
                return decodeURIComponent(singleParam[1]);
    // This function prepares, loads, and then executes a SharePoint query to get the current users information
    function getUserName() {
        context.load(user);
        context.executeQueryAsync(onGetUserNameSuccess, onGetUserNameFail);
    // This function is executed if the above call is successful
    // It replaces the contents of the 'message' element with the user name
    function onGetUserNameSuccess() {
    currentusertitle= user.get_title();
      $('#message').text('Hello ' + user.get_title());
    // This function is executed if the above call fails
    function onGetUserNameFail(sender, args) {
        alert('Failed to get user name. Error:' + args.get_message());
    function getTermdetails() {
        var Termlist = web.get_lists().getByTitle("TraineeTermsSPlist");
        context.load(Termlist)
        var camlQuery = new SP.CamlQuery();
        camlQuery.set_viewXml('<View><Query><Where><Eq><FieldRef Name="Title" />' +
                                 '<Value Type="Text"> + currentusertitle + </Value></Eq></Where></Query></View>');
        Termsitems = Termlist.getItems(camlQuery);
        context.load(Termsitems);
        context.executeQueryAsync(getTermdetailsQuerySuccsess, getTermdetailsQueryFails)
    function getTermdetailsQuerySuccsess(sender, args) {
        var listEnumerator = Termsitems.getEnumerator();
        var datatable = document.getElementById("TermList");
        while (listEnumerator.moveNext()) {
            var oListItem = listEnumerator.get_current();
            var startdate = listEnumerator.get_current().get_item('startdate');
            var enddate = listEnumerator.get_current().get_item('Enddate');
            var termtype = listEnumerator.get_current().get_item('TermType');       
            var Specialty = listEnumerator.get_current().get_item('Specialty');
            var Specialty = listEnumerator.get_current().get_item('Subspecialty');
            $("#TermList").append("<tr align='middle'  class='gradeA'>" +
                                      "<td align='left'>" + startdate +
    "</td>" +
                                      "<td align='left'>" + enddate + "</td>"
    +
                                      "<td align='left'>" + termtype + "</td>"
    +
                                      "<td align='left'>" + Specialty +
    "</td>" +
                                      "<td align='left'>" + Specialty +
    "</td>" + "</tr>");
    function getTermdetailsQueryFails(sender, args) {
        alert(' Error:' + args.get_message());
    Now what I want to do is allow user to select rows on the table. Once they select a row I want to get that selected row and search SP list based on the selected value.  Also I would like to make this table with search area to search records.
    Can someone please help me to do this, or are there any easy way to do this. Sample code or useful link much appreciate.
    Thank you very much.
    d.n weerasinghe

    Instead of writing in dive each and every time directly,
    just have a div in html, and inside the while loop
    write and store in the variable like
      output += "<li><a href='#' style='display:none'>" + usernames[i] + " </a> "
                         + "<table id='results' width='100%'>"
                         + "
    <tr style='border-bottom:1px silver solid;'>"
                         + "
    <td style='width:60px;height:70px;' >"
                         + "
    <img alt=\"profile pic\" src= '" + pictureuri[i] + "'  style='width:60px;height:60px;'/>"
                         + "
    </td>"
                         + "
    <td >"
                         + "
    <table style='height:100%'>"
                         + "
    <tr>"
                         + "
    <td style='padding-padding-vertical-align:top;height:10px' >"
                         + "
    <a href='" + personaluri[i] + "' classq='ms-bold ms-subtleLink' style='color: gray; font-size: 12px; font-weight: bold;'>" + tempnames[i] + "</a>"
                         + "
    </td>"
                         + "
    </tr>"
                         + "
    <tr>"
                         + "
    <td  style='padding-vertical-align:top;height:50px;color:#ADAEAD;font-size:14px;' >" + deptNames[i]
                         + "
    </td>"
                         + "
    </tr>"
                         + "
    </table>"
                         + "
    </td>"
                         + "
    </tr>"
                         + "</table>"
                         + "</li>"
    and finaly oyutside the loop 
    $(#div).html(output);

  • In sm30, when save, how to fill the table with the system data in the table

    Hi all, in SM30, we have user name and time fields, when we create record, after we click the SAVE button, it will automatically fill the fields with the system data, how can we realize it?

    Hi ,
    Do like this.
    1. Go to SE11 -> give your table name and press on change button .
    2.Go to Menu->Utilities-> Table Maintainance Generator , then it will take you another screen .
    3.Assign Functin group if already have one , other wise create function group and assign
    4.Go to Menu->Environment->Modification->Events , again it will take you to another screen
    5.Click on new entries
    ->Now press F4 in T column . Select<u> "01" - Before saving the data in the database</u> and in form routinue give any name of the routinue like "SAVE_USER_DATA" and press enter then u can see an editor symbol in next column click on that it will take you ABAP editor there type this code .
    ztable-username = sy-uname.
    ztable-createtime = sy-uziet.
    check and activate the code .
    With this your job will be complete . Now while entering data just leave columns blank , they will insert corresponding username and time
    Don't forget award points if it helps you.
    Regards,
    Raghav

  • Best way to generate one record per day from a table with eff/exp dates

    Hi,
    Have a table which has various attributes and an eff and exp date. e.g attributea, 01/05/2012, 16/05/2012
    We wish to create another table from this table to have one record per day. e.g 16 records.
    What is best way to achieve this in OWB ?
    Thanks

    Hi,
    Example if have table
    with following contents
    conversion_rate number(6,4)
    EFFEcTIVE_DATE DATE
    expiration_date date
    example record 1.43, 01/05/2012,16/05/2012
    If want to have another table which instead has 16 records one for each day
    e.g
    1.43, 01/05/2012
    1.43,02/05/2012
    1.43,16/05/2012
    Thoughts on best way to do this.
    Thanks

  • I need help making tables with all my data. What to do with all my Data?

    Hello All,
    Here is the scenario. I have about 10 columns of data. It has Name of Item. Price sold, Shipping Cost, Address and others.
    I want to group all the same items into a separate table with its own totals. There is 100 different items, So i need to split is several tables. Any idea on how to do this? Can It be done in Numbers?

    A variation to Jerry's suggestion:
    You are inquiring about creating 100 tables that produce summaries, 1 for each item. Jerry suggests a single table showing only a summary of your 100 items. This has potential. If you want to see the individual lines displayed above each summary, you may be able to use your original table. This process, however, involves a little work. But it's not unreasonable and may satisfy your needs.
    In your original table create a new line for each item. These lines are basically blank except for the item name and whatever columns you want to summarize. Enter the item names on these lines but follow them with the word " Total". When you sort on the Item column these lines will appear as the last of each item. Then place the SUMIF function in the proper column to obtain your summary.
    pw

  • Building a table with a string data type

    I am using the Build Table function and I would like to be able to label my columns on the first iteration with a string data type, which doesn't seem to be an acceptable signal for the Build Table function. However, the express table is located under "text indicators" on the front panel, so it seems like there should be a way to do this..

    Ah, the "Build Table" Express VI. I hate Express VIs.
    That Express VI is nothing more than a really complicated way of creating a 2D array of strings. The Express VI has no inputs for the row and column headers, so you need to add them in yourself. The same would be true for a regular table control/indicator. Here's what you need to do:
    Right-click on the table indicator and select Visible Items -> Column Headers.
    Right-click on the table indicator and select Create -> Property Node -> Column Header Strings[]. LabVIEW will attach a property node to the cursor and switch to the block diagram. Plop down the property node on the block diagram.
    Right-click on the property node on the block diagram and select "Change All to Write".
    Right-click on the property node and select "Create -> Constant". This will give you an array of strings, and you can enter the column headers in each array element.
    Wire the array to the property node.
    Connect the property node to the Build Table Express VI using the error clusters.
    Message Edited by smercurio_fc on 07-02-2008 09:25 AM
    Attachments:
    Example_VI_BD6.png ‏3 KB

  • Issue with setting Planning Data Source

    I keep getting error when I try to set up the data source
    the Oracle database  = orcl
    The data base schema EPMAPLAN
    Password = EPMAPLAN
    when i log on i  to Oracle Database
    Sys as SYSDBA
    Password = Password01
    so what what should be the Database Source Name  = ORCL Correct ????
    Server = win-392h1l307n1 or localhost
    Databse = ORCL
    User Name  = ????????????
    Password  = ?????????
    I try all the  combinations
    Please advise

    Duplicate post - Issue with setting up planning data source
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Cannot enter data into table with column named DATE

    I have a table as follows:
    CREATE TABLE PACKINGLINE (
    SNO VARCHAR2(13),
    "DATE" DATE DEFAULT SYSDATE,
    PRDORDNO VARCHAR2(12),
    NOW DATE DEFAULT SYSDATE,
    CONSTRAINT PACKINGLINE_PK PRIMARY KEY ("SNO", "DATE"));
    Note the "cleaverly" named DATE and NOW columns (yes, that is the name of the column... our company was bessed with a very clear SQL server DBA in the past)
    This SQL statement works:
    INSERT INTO PACKINGLINE (SNO, PRDORDNO) VALUES ('1000808972', '100080897');
    However when I try use SQL Developer as follows I cannot enter data:
    1. Open SQL Developer
    2. Click on "Tables" then on my table named PACKINGLINE
    3. Click the "Data" tab
    4. Click the [+] "Insert Row" Icon
    5. Enter the same data as above
    6. Click Commit
    7. The following error is shown in the log window and I cannot commit the data change.
    Error message
    ==================
    INSERT INTO "DBO"."PACKINGLINE" (SNO, PRDORDNO) VALUES ('1000808971', '100080897')
    One error saving changes to table "DBO"."PACKINGLINE":
    Row 5: ORA-06550: Row 1、Column 25:
    PL/SQL: ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-320: the declaration of the type of this expression is incomplete or malformed
    ORA-06550: Row 1、Column 7:
    PL/SQL: SQL Statement ignored
    ==================
    I can copy and paste the above query into a normal SQL statement window and the data commits fine.

    Its so flaky there really must be something wrong Mr Adobe support person....
    If I load a PDF, do nothing, gently save it, reopen and then waiting for my trial dialogue to wake up so that I can click on continue trial... then save as extended reader blah.... then close. I have finally saved one that works!!!! but how difficult is that????
    WHAT IS WRONG ADOBE??

  • Transfer an internal table with non char data type to an application server

    Here is a part of my code. lv_string variable was type string initially but i got an error Not mutually convertible in a Unicode Program. I changed it to type ty_afko. Now the program works but the data it puts out has just a bunch of  #####. I cannot make all value in the internal table type char because then my select statement is giving errors..  Please help...
    Type: BEGIN OF ty_afko,
           rsnum LIKE afko-rsnum,          " Number of reservation
           aprio LIKE afko-aprio,          " Order Priority
           maufnr LIKE afko-maufnr,          " Number of superior order
           lead_aufnr LIKE afko-lead_aufnr,     " Leading order in current processing
         END OF ty_afko.
    data: gt_afko         TYPE STANDARD TABLE OF ty_afko INITIAL SIZE 0,
          wa_afko         TYPE ty_afko,
    select  rsnum aprio maufnr lead_aufnr
    from afko into table gt_afko.
    IF gv_error = 'X'.
      EXIT.
    ELSE.
    <b>DATA: Lv_string type ty_afko.</b>
      loop at gt_afko into wa_afko.
        clear lv_string.
    <b>  move wa_afko to lv_string.</b>
        perform f_transfer_dataset using gc_f_afko lv_string changing gv_error.
      endloop.
    endif.
    FORM f_transfer_dataset USING         p_file
                                          p_data
                            CHANGING      p_error TYPE c.
      Data: lv_file(25) type c.
      CONCATENATE gc_path p_file INTO lv_file.
      TRANSFER p_data TO lv_file.
    ENDFORM.                    "F_TRANSFER_DATASET

    The key is to create another empty structure with fields of type c.
    TYPES:       BEGIN OF ty_resb,
                bdter TYPE RESB-BDTER,     " This field is type d
                bdmng type resb-bdmng,  " This field is type p with 3 decimals - total 14
              END OF ty_resb,
              BEGIN OF ty_resbstr,     " This structure is the same as above but the field types will be char.
               bdter(10),            
               bdmng(14),                
              END OF ty_resbstr.
    DATA:     gt_resb         TYPE STANDARD TABLE OF ty_resb,
              wa_resb         TYPE ty_resb,
           structure type  ty_resbstr. " Empty fields with the same structure as the work area.
    SELECT   bdter bdmng  FROM resb INTO corresponding fields of TABLE gt_resb.
          open dataset pfile for output in text mode encoding default.
          loop at gt_resb into wa_resb.
              clear gv_string.
            move-corresponding wa_resb to gv_string.
             perform f_transfer_dataset using gc_f_resb gv_string.     
            endloop.
         FORM f_transfer_dataset USING p_file p_data.         
           TRANSFER p_data TO lv_file.     
         ENDFORM.

  • [Addin API] Problem with setting Common data in ProjectSettings

    I'm experimenting with how to store information in a project and trying out the "ProjectSettings.jpr" example coming with the AddinAPI samples.
    In the sample, data set in "Common" settings doesn't work (while data set in "Configuration" settings works).
    To reproduce the problem,
    1. Compile and install the ProjectSettings plugin
    2. Restart JDev
    3. Go to Project | Project Settings
    4. Type in some data under Common/"My Properties" and
    Type in some data under Configuration/Development/"My CFG Properties"
    5. Click OK
    6. Go to Project | Project Settings again
    7. Now, data entered under Common/"My Properties" is lost but data under
    Configuration/Development/"My CFG Properties" retains.
    I figured out the problem is that inside CommonProjectSettingsPanel.onEntry(TraversableContext tc), tc.find(ConfigProjectSettings.KEY) returns null, meaning the setting object is not found in the context.
    I'm using JDev 9.0.2.829.
    Is this a known bug in 9.0.2's Addin API?
    Thanks.

    Besides, I found out that if I changed the value of the key ConfigProjectSettings.KEY from "MyConfig.PrjSettings" to "samples.oracle.addin.projectsettings.ConfigProjectSettings" (which is same as the classname), it doesn't work anymore.
    Is there any restriction (e.g. number of dots, length, etc.) on the keys used in project settings?

  • Export and import tables with and without data

    I have few table which i want to take export with data and some without data, and import that in new db? Send me the command plz for this.

    exp and imp all have a flag
    ROWS import data rows (Y/N)
    but that flag apply to the whole export/import process.
    You will need do export twice,
    ROWS=Y first with list of tables that need data
    and ROWS=N with list of tables without data.

  • Help with quierying a table with varchar as dates

    guys need a little help im close but i just can't close the deal.
    i have a table that the field is dataytped as varchar2 but it holds a date like such '20100615' todays date.
    I know the first thing you guys are going to say is that this should be formatted as a date but it is not my table and i have to deal with this.
    any how here is the problem im trying to query for a range of dates and im having one hell of a time doing it.
    as you cant tell from my query below im atempting to bring back only 15days worth of data by date.
    can someone please point out the obvious. I've been at it for a day now trying to get this to work.
    select DISTINCT to_date(fwvitals_date, 'YYYYMMDD') "fwvitals_date"
    FROM fwvitals
    where fwvitals_date
    between (((SELECT MAX(fwvitals_date)FROM FWVITALS)))
    AND ((select to_CHAR(sysdate-15, 'YYYYMMDD') from dual))

    Hi,
    user633029 wrote:
    guys need a little help im close but i just can't close the deal.
    i have a table that the field is dataytped as varchar2 but it holds a date like such '20100615' todays date.
    I know the first thing you guys are going to say is that this should be formatted as a date but it is not my table and i have to deal with this.You're absolutely correct!
    any how here is the problem im trying to query for a range of dates and im having one hell of a time doing it.
    as you cant tell from my query below im atempting to bring back only 15days worth of data by date.
    can someone please point out the obvious. I've been at it for a day now trying to get this to work.
    select DISTINCT to_date(fwvitals_date, 'YYYYMMDD') "fwvitals_date"
    FROM fwvitals
    where fwvitals_date
    between (((SELECT MAX(fwvitals_date)FROM FWVITALS)))
    AND ((select to_CHAR(sysdate-15, 'YYYYMMDD') from dual))"WHERE x BETWEEN y AND z" is equivalent to
    "WHERE x >= y AND x <= z".
    If y > z, then no rows will ever qualify, and if y is the gratest value in your table, then (probably) very few rows, perhaps only 1 will satisfy the condition even if z > y.
    What exactly are you trying to do?
    It helps if you post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data. If the results are conditional, give a couple of examples, e.g,, "If I run the query at any time on June 15, I want ... but if it's June 16, then I want ..."
    If you want the most recent 15 days, including today (that is, when run on June 15, you want June 1 through June 15) then:
    SELECT DISTINCT 
         fwvitals_date
    FROM      fwvitals
    WHERE       fwvitals_date     BETWEEN     TO_CHAR (SYSDATE - 14, 'YYYYMMDD')
                   AND     TO_CHAR (SYSDATE,      'YYYYMMDD')
    ;Fortunately, the strings are in a format such that sorting is meaningful, so you don't have to run TO_DATE on each one, and get conversion errors.
    Edited by: Frank Kulash on Jun 15, 2010 9:52 PM

  • Table with object array data provider

    hi!
    i use the studio creator table and want to fill it with an object array data provider!
    i have an array and the getter:
      public TanData[] getTanDataArray()
            return tanDataArray;    
        }i choosed this for the data provider and in table layout i choose the dataprovider, but when i run my application there are no datas found although the array isn't empty!

    maybe this is a problem:
    i got my data from a database table and i store it in a vector.
    in the example they have a class WeekBean and they fill their array with
       WeekBean[] weeks = {
                new WeekBean(1),
                new WeekBean(2),
                new WeekBean(3),
                new WeekBean(4)
            };and i tried to do this:
        private Vector<TanData> tanDataList = new Vector();
        private TanData[] tanDataArray;
       getTanDataList().copyInto(tanDataArray);could it be that that isn't correct?

  • Importing tables with linked cell data from excel to indesign

    Hey,
    I'm designing a catalog and have been linking the tables in InDesign from a spreadsheet in excel. In my spreadsheet, I am linking cells from a master sheet to another sheet so that I when I update the information on one sheet, it will update throughout the spreadsheet.
    Now that I have the linked cells set up in my spreadsheet, I've inputed the tables into InDesign but: the table cells in InDesign containing linked cells from within the spreadsheet do not appear.
    I've gone through all the import table options in InDesign and cannot find a way to make it work.
    Does anyone have an answer or input?
    Thanks,
    KT

    When we are updating the excel sheet it automatically updates the link in InDesign and it's continually changing. Does CSV break the links in excel or does it keep them and allows InDesign to read the linked cells as well?
    Thanks for your response!

  • Help with setting up date and timer on flash

    anyone please help me out how to setup the date and
    timer on a flash. i tould be appreciate with this.

    kicon wrote:
    >
    anyone please help me out how to setup the date and
    timer on a flash. i tould be appreciate with this.
    a bit too general, what kind of timer ?
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

Maybe you are looking for