Transient vo fetch next rows

i have a table which is built on a transient VO which is populated programatically from external data source. the code which populates this VO returns only 50 records when the user navigates to this page for the first time. my requirement is that when user navigates to the end of the table after navigating 50 rows in a table, he / she should be able to see more records. how can this be achieved best in jdev 11 1 1 6.

Have you tested your app with application module pooling turned off?
The problem might be activaton/passivation of am.
See if you can reproduce the problem this way. I guess that when a vo gets passivated only the qeurry gets saved. When activated yhr saved query is executed again. As you use transient rows, they come back empty.
Timo

Similar Messages

  • Af:table fetching next range of data

    Hi!
    I have a table component on jsf page, property RangeSize set to 25(default). Now I want to invoke a method from my managed bean each time when is fetching next range of data of ViewObject(next 25 rows). But how can I invoke this method? Does anybody have such example?
    Thanks for answers.
    Jdeveloper version: 11.1.2.2.0
    Regards, Stanislav

    Hi, John!
    Ok :)
    I have a transient attribute on ViewObject. Now this attribute calculates by groovy expression. (adf.object.applicationModule.method1 invokes on each row). The problem is that this method isn't trivial and it has some common calculations and some specific calculations for current view row. Now I wan to speed up this thing. I wrote a method in manage bean, that does executes logic like on adf.object.applicationModule.method1. But I divided common calculations(now they have performed once) and specific calculations for current view row(now they have performed in cycle). It calculates faster, but only for first 25 rows. When I fetch next 25 rows, this method doesn't invoke. So, I want to invoke this method after fetching next range of data :) With first variant I don't have a problem with calculation after fetching next range of data.
    Regards, Stanislav
    Edited by: Stanislav on 17.10.2012 10:01

  • Create row as next row on click of add another row button not on top of it

    My af:table is based on a transientVO (all the attributes are transient)
    This is just for data entry and not for data retrieval
    So i have placed add another row button on my af:table
    After i enter data in the first row and click add another row button the data is being moved to second row and the new row is created on top of that
    I want the row to be created as next row . not on top of my existing row
    How can we do this

    would this help you:
    http://lucbors.blogspot.com/2010/12/adf-11g-how-to-control-where-new-row-is.html

  • Fetch Next Cursor Short Dumps

    Hello All,
       I have the following code which short dumps after losing its cursor position. 
    OPEN CURSOR WITH HOLD dbcur FOR
          select * from ekpo where bukrs in s_bukrs2.
          do.
              FETCH NEXT CURSOR dbcur INTO table iekpo package size pkgsize.
              if sy-subrc <> 0.
                 close cursor dbcur.
                 exit.
              else.
                  perform ouput_to_text_file.
                  refresh: iekpo.
               endif.
          enddo.
    I have millions of records to be extracted and  simple select to an internal table causes memory problems.  Thus I need to extract a chunk of records write them to a text file, then get the next chunk. 
    Any suggestions?
    Thank you,
    Jerry

    GUI Download probably causes problem, writing to a dataset on app server might not cause the problem, maybe you want to try.
    Regarding the select, here is some pseudo code outlining what I mean:
    clear wa_ekpo.
    do.
      select * from ekpo into table lt_ekpo up to 10,000 rows
          where ebeln > wa_ekpo-ebeln or ( ebeln = wa_ekpo-ebeln and ebelp > wa_ekpo-ebelp )
          order by primary key.
      if sy-subrc ne 0.
        exit.
      endif.
      download lt_ekpo (appending to existing file)
      l_lines = lines( lt_ekpo ).
      read table lt_ekpo into wa_ekpo index l_lines.
    enddo.
    Will run for a while, but should not dump out
    Thomas

  • Copy a certain row of data into the next row in a same internal table ??

    HI, guys.
    May i know how to copy a certain row of data into the next row in a same internal table ?? Bcz I plan to update a certain colum of data in the row just now into another value..
    For example:-
    *at first...
    ebeln1   ebelp1   xblnr1
    ebeln2   ebelp2   xblnr2
    ebeln3   ebelp3   xblnr3
    *after that, become...
    ebeln1   ebelp1   xblnr1
    ebeln2   ebelp2   xblnr2
    ebeln2   ebelp2   xblnr4
    ebeln2   ebelp2   xblnr5
    ebeln3   ebelp3   xblnr3
    Thanks in advance.

    hi,
    If you have this kind of requirement then you must be having 2 internal tables ,one existing data and 2nd from which you have to insert the records into 1st table.
    so in this case,
    loop at itab1.
      v_index = sy-tabix.
      loop at itab2 into wa where pri_key = itab1-pri_key.
      v_index = v_index + 1.
      insert  wa into itab index v_index.
      endloop.
    endloop.
    Using this code ,your data records similar to your 1st tables primary key records will get inserted into table.

  • How to set the current row in table automatically when tabout from one row to next row

    Hi
    I'm using jdev 11.1.2.0.0
    How can we set the  row(in which row focus is)  as current row in the table?
    If we create a table with single row selection, then whichever row we select, that row becomes current row because of the selection listener(#{bindings.xxvo.collectionModel.makeCurrent}).
    Then if we do tabout from one component to another component in table and moved to next row, then the focus would be on another row .
    when focus is shifted from one row to another row, then how can we make the focused row as current row or selected row.
    Any suggestion would we appreciated
    Thanks.

    Add clientListener inside table component and set client listener type to dblClick with method as a JavaScript method name.
    <af:clientListener method="dblclk" type="dblClick"/>

  • How to fetch n records at a time from a FM and then fetch next n records

    I have a report program which is calling a function module . This function module returns all the records from a table. As the table has millions of records, it cant be returned at a time. How can we return N records from a function module and then return Next n records .The Function module and the report program are in different system .
    Thanks in Advance.

    Use open cursor and fetch cursor.
    Check the program as in SAP Help.
    DATA: BEGIN OF count_line,
            carrid TYPE spfli-carrid,
            count  TYPE i,
          END OF count_line,
          spfli_tab TYPE TABLE OF spfli.
    DATA: dbcur1 TYPE cursor,
          dbcur2 TYPE cursor.
    OPEN CURSOR dbcur1 FOR
      SELECT carrid count(*) AS count
             FROM spfli
             GROUP BY carrid
             ORDER BY carrid.
    OPEN CURSOR dbcur2 FOR
      SELECT *
             FROM spfli
             ORDER BY carrid.
    DO.
      FETCH NEXT CURSOR dbcur1 INTO count_line.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
      FETCH NEXT CURSOR dbcur2
        INTO TABLE spfli_tab PACKAGE SIZE count_line-count.
    ENDDO.
    CLOSE CURSOR: dbcur1,
                  dbcur2.
    Regards
    Kannaiah

  • Edit link not working in IE 10 browser after fetching 5000+ rows

    Hi,
    OBIEE 11g 11.1.1.7.150120
    IE 10
    We have an issue where IE browser misbehaves after fetching 5000+ rows.  By misbehaves, I mean the browser responds extremely slow while scrolling up, down, left, right.  Worst behavior is the "Edit" link on the report does not work.  There is no action!  If I navigate to the my home page and try to edit some other report/analysis, same -- no action.  I am able to run other reports but cannot edit any one of them.  Edit link does not work for any report going forward.  If I log-out properly, close the browser window and log back in, only then am I able to edit reports.
    I tried clearing the browser cache several times but this keeps happening.
    This issue is specific to IE only, not Firefox or Chrome. However IE 10 is the corporate browser and switching to any other browser is not a solution.
    Has anybody faced this issue?  Any help in troubleshooting will be greatly appreciated.
    Thanks.

    Hi skull,
    Just to make it simpler ... don't start touching your settings for java heap memory or your account setting to define the default tab when editing an analysis as they have no link with your issue.
    Setting the criteria tab .... well ... as you can't click the edit link you will never get till the criteria tab, so it will not help you a lot (but it's good to set it in case you often edit huge analysis with tons of rows as it doesn't fire a query every time you open it).
    For the java heap memory I can't really see how Chrome or Firefox would behave in a different way on a server side setting like that one.
    So to avoid having multiple other nice issues later don't change settings around without being sure 100% it will have an impact on what you are debugging.

  • Can I use action build to fade one table row as I move to the next row in the table?

    I have built a table with 6 rows.  Right now,I am building the table row by row when I play the slide. Is there a way to fade or dissolve one row when I move to the next row in the table? I want to be able to de-emphasize the row I just discussed when I move to the next row in the table. I can fade the entire table by invoking that action but I do not seem to be able to use this action one row at a time. Thanks for your comments and assistance.

    you will have to use a workaround to get the exact effect you described
    create a table with out any text
    use text tool to add text and position in each table cell
    select the text boxes( command click) in the first row and group them (arrange > group)
    use a, build in, to display text and then a, build out, to remove it
    repeat the above for the other rows

  • How can i select the next column instead of next row when press enter key

    I need to know how can i select the next column instead of next row when i press the enter key.By default ,when i press enter key the next row is selected and the column remain unchanged but I wants opposite that is the row should remain unchanged but column index will changed.
    Thanks to all.

    Well, the right arrow key will already move you to the next column, so the easiest way to do this is to modify the InputMap to have the Enter key invoke the same Action as the right arrow key.
    You can search the forum for my "Table Actions" (without the space) example that will show you how to do this.

  • 'SELECT_LIST_FROM_LOV' giving error if LOV fetches 47 rows

    Hi All,
    We are using 'SELECT_LIST_FROM_LOV' function to create dynamic items in a tabular form. It works fine when LOV fetches < = 47 rows but is giving 'buffer overflow error' if it fetches more!
    Any help/suggestions would be appreciated.
    APEX Version : 2.2.1
    Regards,
    Hari

    Did you try it first? I know the issue and ran into the exact same one and this is how to change it. Calling that function just returns a string to Apex and the buffer is only so big for LOV's. If you need more than 47 rows in your case, you need the _XL function.
    You are correct that it returns a CLOB, but its returning that to Apex, not to your process so to speak. It will handle it correctly in its internal API's.
    Try it and if it doesn't work we can figure it out but give it a shot!

  • How to fetch indivdual rows from a dynamic query.

    Hi,
    I wish to fetch the individual rows returned from a dynamic query.
    if my dynamic query is:
    dyn_stmt := select col1, col2, col3
    from tab1;
    The query returns multiple rows.
    Then how to fetch individual rows of this query ?
    Please explain.

    declare
      cur_test sys_refcursor;
      c1 varchar2(30);
      c2 number;
      c3 date;
    begin
      dyn_stmt := select col1, col2, col3 from tab1;
      OPEN cur_test FOR dyn_stmt;
      LOOP
        FETCH cur_test INTO c1, c2, c3;
        IF cur_test%NOTFOUND THEN
          EXIT;
        END IF;
        -- Process this row
      END LOOP;
      CLOSE cur_test;
    END;

  • Adding rows based on current and next row

    I got some excellent help on multiplying rows based on start and end date in this
    thread, resulting in the query below. It helps me follow Vehicle activity and Vehicle allocation of our vehicles day by day. Now I would like to add another feature to the query, if it is possible.
    The problem is that in our database, only actual tasks are registered, which means that the time when the vehicle is between tasks is not showing. I could of course calculate total available time per vehicle and month, but that would not tell me where the
    vehicles are waiting, when during the day, etc.
    So I would like to insert rows for when the vehicles are standing still, and the logic would be something like this:
    If vehicle number on current row equals vehicle number on the next row and End (date/time) of current row < Start (date/time) of next row, insert row after current row. Set Start=End of current row and End=Start of next row. Set From=To
    of current row and To=To of current row. Set Vehicle activity to "Not active". Finaly copy all other fields from current row.
    Is this possible to achieve in Power Query?
    Brgds,
    Caj
    let
        Source = Sql.Databases("sql10"),
        SLM = Source{[Name="SLM"]}[Data],
        dbo_V_LKPI = SLM{[Schema="dbo",Item="V_LKPI"]}[Data],
        RenamedColumns = Table.RenameColumns(dbo_V_LKPI,{{"ActualDeparture", "Start"}, {"ActualArrival", "End"}}),
         Records = Table.ToRecords(V_LocoKPI),
          DateTime.IsSameDay = (x, y) => Date.Year(x) = Date.Year(y) and Date.Month(x) = Date.Month(y) and Date.Day(x) = Date.Day(y),
          Expand = (x) => List.Generate(
              () => Record.Combine({x, [End=Date.EndOfDay(x[Start])]}),
              (record) => record[Start] <= x[End],
              (record) => let
                  NextStart = Date.StartOfDay(Date.AddDays(record[Start], 1)),
                  NextEnd = Date.EndOfDay(NextStart),
                  ThisEnd = List.Min({NextEnd, x[End]})
              in
                  Record.Combine({record, [Start=NextStart, End=ThisEnd]})),
          Transformed = List.Transform(Records, each if DateTime.IsSameDay([Start], [End]) then {_} else Expand(_)),
          Combined = List.Combine(Transformed),
          Result = Table.FromRecords(Combined)
      in
          Result
    Csten

    Here's some sample code. Again, we use List.Generate to build either a record or a list of records and then use List.Combine to bring the results back together before converting them to a table.
    let
        CombineTwoRows = (x, y) =>
            let
                combine = x[Vehicle] = y[Vehicle] and x[End] < y[Start],
                added = Record.Combine({x, [Start=x[End], End=y[Start], Active=false]}),
                result = if combine then {added, y} else {y}
            in result,
        GenerateStandingRows = (table, combine) =>
            let
                Handle = (x, y) => {x, y},
                buffered = Table.Buffer(table),
                n = Table.RowCount(buffered),
                windows = List.Generate(
                    () => {1, {buffered{0}}},
                    (x) => x{0} <= n,
                    (x) => {x{0} + 1, if x{0} < n then combine(buffered{x{0}-1}, buffered{x{0}}) else {buffered{x{0}}}},
                    (x) => x{1})
            in
                windows,
        InsertInactivity = (table) => Table.FromRecords(List.Combine(GenerateStandingRows(table, CombineTwoRows))),
        TestData = Table.FromRows({
            {1, #datetime(2014, 2, 23, 13, 0, 0), #datetime(2014, 2, 23, 13, 10, 0), true},
            {1, #datetime(2014, 2, 23, 13, 20, 0), #datetime(2014, 2, 23, 13, 30, 0), true},
            {2, #datetime(2014, 2, 23, 13, 20, 0), #datetime(2014, 2, 23, 14, 0, 0), true},
            {2, #datetime(2014, 2, 23, 14, 20, 0), #datetime(2014, 2, 23, 14, 40, 0), true},
            {2, #datetime(2014, 2, 23, 16, 0, 0), #datetime(2014, 2, 23, 17, 0, 0), true},
            {2, #datetime(2014, 2, 24, 2, 0, 0), #datetime(2014, 2, 24, 3, 0, 0), true},
            {3, #datetime(2014, 2, 24, 1, 0, 0), #datetime(2014, 2, 24, 8, 0, 0), true},
            {3, #datetime(2014, 2, 24, 9, 0, 0), #datetime(2014, 2, 24, 10, 0, 0), true}
            }, {"Vehicle", "Start", "End", "Active"})
    in
        InsertInactivity(TestData)

  • SQL Server 2005 64BIT Linked Server Cannot fetch a row using a bookmark

    We get the following error SOMETIMES when trying to delete a row from an Oracle 10g database table via the SQL 2005 64BIT linked server.
    DELETE [edwdev]..SYSTEM.SAIC_ARTIFACT_LOG FROM tblArtifactLog src WHERE src.source_seq_no = SAIC_ARTIFACT_LOG.art_seq_no and src.source_name = 'edwdev' [SQLSTATE 01000] (Message 0) Cannot fetch a row using a bookmark from OLE DB provider "OraOLEDB.Oracle" for linked server "edwdev". [SQLSTATE 42000] (Error 7333). The step failed.
    They keyword here is SOMETIMES. The job would fail 100% of the time before applying ODAC 10.2.0.3.0, after the ODAC install the job fails about 40% of the time. We have this setup in a test enviornment and yes there are rows of data in the table everytime the job runs.
    As far as the OraOLEDB10.dll install we have a date of 2/20/07 but a version of 10.2.0.2. I am wondering if this shouldn't be a new version.

    LearnMoreAgile wrote:
    so does that mean no one at oracle can guide me in this issue before i goto microsoft ?How has the Linked Server been created in MSSQL? OraOLEDb.Oracle is the class name for the Oracle OLEDB provider which should appear in your list of OLEDB providers in your favourite windows dev tool or when creating the linked server. If it doesn't appear likely you didn't choose to install it. I don't know if it's a default install with the 64bit client, but the ODAC client contains the .net provider and not the OLEDB provider.
    Niall

  • Next row in JTable (skip disabled rows)

    When I press the down button on my keyboard how can I move to the next available row. It should skip all disabled rows.
    My subclass of JTable looks like this:
    public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
    if (list[rowIndex].isEnabled()) {
    super.changeSelection(rowIndex, columnIndex, toggle, extend);
    All the disabled rows is not selectable. Right now it just stop when the next row is disabled.

    Well, I think the right way to it would be something like..
    public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend)
         // Get to the right row..
         while (!list[rowIndex].isEnabled())
              ++rowIndex;
              rowIndex %= list.length;
         // Change selection to the row found.
         super.changeSelection(rowIndex, columnIndex, toggle, extend);
    The last one is good asuming there must be at least one enabled row, otherwise you should handle this case also...

Maybe you are looking for

  • Error while trying to execute program in OBPM Studio workspace

    Hi All, I installed OBPM and tried to execute a sample program using workspace. I could see the below error. The Process '/SampleProcess#Default-1.0' is not available. The Process '/SampleProcess#Default-1.0' is not available. Caused by: Process '/Sa

  • Mac Formatted Ipod on PC

    My Ipod is currently PC formatted. If I were to format it for Mac would it still work as an external hard drive on a PC, or would I have to use special software.

  • Adobe Reader 11.0.6.70 Crashing Consistently

    We have a call center with 825 users.   During the workflow of the call, the users are filling out a PDF form created by one of our technical writers.   Certain answers will cause the CSR to open a second form and fill in questions on that from answe

  • Unfortunately camera has stopped

    Hi My Z1 Compact camera has stopped working - I used it yesterday with no problem, but today tried to launch it today and now get a message saying "Unfortunately camera has stopped". no other camera apps work either so it must be the main camera app

  • HS-20/AD-41 and N93

    Hello, I would like to know if the HS-20/AD-41 is compatible with my N93(not the N93i or N93 golf edition). Thanks