Display a particular range of records in a table

Hi,
I have a table in my Form which displays about a 100 records with 10 records at a time. There is also a delete button for every record. If the user deletes a record, for example: from the 40-50 record range, the user is taken to a different screen for confirmation. After confirmation, is there a way to get the user back to the record range where he/she previously was (40-50 in this case) instead of the first screen with 1-10 records?
Thanks.

Store the primary key of the record in the temporary variable in AM.
When you come back then do vo.findByPrimaryKey(var) and set it as currentRow.
--Prasanna                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Convert numeric value to display as text based on record in another table? ASP/VB

    I have an orders table:
    orderID (PK)
    pickupname
    pickupaddress
    pickupregion (numeric)
    pickuppostcode
    deliveryname
    deliveryaddress
    deliveryregion (numeric)
    deliverypostcode
    I also have a regions table:
    regionID
    regionname
    On my ASP page, I would like to display the pickup and
    delivery addresses as
    follows, but also need this to be within a repeat region as I
    am displaying
    a number of orders on the page (I have wrapped what I want in
    the repeat
    region in dashes, below):
    ---------Repeat Region Start-----------
    Pickup Address:
    Name
    Address
    Region (pickupregion)
    Postcode
    Delivery Address:
    Name
    Address
    Region (deliveryregion)
    Postcode
    --------Repeat Region End------------
    As it displays at the moment, I get this (using sample data):
    ---------Repeat Region Start-----------
    Pickup Address:
    Joe Bloggs
    High Street
    12
    HT12 5TY
    Delivery Address:
    Jane Bloggs
    The Mall
    33
    DT6 5TG
    --------Repeat Region End------------
    Is there any way to convert these numeric values to the
    actual region name
    but to keep it within one recordset so that I can use the
    repeat region? I
    tried creating a recordset for regions (SELECT regionID,
    regionname FROM
    tblRegions WHERE regionID = pickupregion OR regionID =
    deliveryregion), but,
    because I'm not repeating this region, it just displays the
    same regional
    name for every order, albeit the first record returned does
    contain the
    correct values! :o)
    I was thinking about some kind of inner join, but it's having
    two numeric
    region fields in the orders table that is causing me
    headaches! PS. I need
    to keep the two addresses within one orders table - I had
    thought of that!
    Got me a bit stumped, I have to say. Any help would be
    greatly appreciated.
    Thanks.
    Regards
    Nath.

    I've tried this one already.
    I tried to leave it blank, & nbsp ; , text,... but the problem is that our lov is build by a function and it always returns a query, so the LOV is never null.
    I figured something out: made a process after header that has some cursors to get the values from the database and changed the item to a simple display as text-field. There were only 4 that were wrong, so it wasn't to much work.

  • How to fetch particular segment of records?

    Hi all,
    My last question is how to limit the rows returned. This time my question is how to fetch particular segment of records from DB table?
    In detail, if one table has 95 records, which method can be used to fetch #71-80 record only, not fetch #1-80 first and abandon the preceeding 70 ones?

    There are a few methods:
    - Set firstResult and maxResult on the JPA Query, this is normally the best option. Depending on your database this will best optimized to only select these rows.
    - Use a Cursor, in EclipseLink 1.1 there are QueryHints for doing this, see org.eclipse.persistence.config.QueryHints.
    - Select all of the results, and store them in your app or http session, and scroll through them in memory on next/previous.
    - Select just the ids, and store them in your app/page or http session, each page select the batch of object with the ids.
    - Use an order-by and critieria to limit your results to a specific amount.
    James : http://www.eclipselink.org
    http://en.wikibooks.org/wiki/Java_Persistence

  • How to generate SIDs for a particular range of data for a DSO ?

    Hi All,
    Please let me know if there is any way to generate SIDs for a particular range of data for a DSO which does not have any SID values. I need this as when i am trying to load data from DSO to InfoCube it's taking a lot of time. When i tried to find the reason behind it, i came to know that most of the time is going in SID creation for the data which is getting loaded. Please share some solution for the same. Thanks...

    Hi,
    Try this.
    Create an internal table and populated it with the values present in the F4 help of the field. Then in AT SELECTION-SCREEN event check the value of the field with the values in the internal table and display the appropriate message.
    Sharin.

  • Allow multiple records from this table to be displayed in the form is greyed out.

    I'm trying to add a second table to my main data source in an InfoPath 2010 form (database template), but the option to allow multiple records from this table to be displayed in the form is greyed out and I can't select it.
    Can someone please tell me how to correct this? I'm guessing that there might have to be something change in MS SQL because on other occasions I've have not encountered this problem when adding a second table.
    Any help would be greatly appreciated.
    Thanks.

    So I've found a work around, but I still don't know why I'm having the problem in the first place.
    I've been trying to relate the two tables by using the primary key in the parent table to a view of the child table that also includes primary key in the parent, e.g. the ORDER ID in the order table relating to the ORDER ID in the view of the order detail
    table. For whatever reason whenever I did that InfoPath prohibited the data source from returning multiple order details.
    My work around is to use views of both the order table and order details table that include the customer ID and to relate the two table in InfoPath using the customer ID. Now I get a data source that allows multiple order detail records. In order to get
    just the order details that I want that relate to a particular order, I use a rule that sets the order id in both the order and order details query data sets before executing the query (as opposed to just the order data set).
    Hope that's a clear explanation.

  • How to find out which user has locked a particular record of a table

    Hi
    Is it possible to know - which user has locked a particular record (I know the primary key of the record) of a table
    Regards

    select     OS_USER_NAME os_user,
         PROCESS os_pid,
         ORACLE_USERNAME oracle_user,
         l.SID oracle_id,
         decode(TYPE,
              'MR', 'Media Recovery',
              'RT', 'Redo Thread',
              'UN', 'User Name',
              'TX', 'Transaction',
              'TM', 'DML',
              'UL', 'PL/SQL User Lock',
              'DX', 'Distributed Xaction',
              'CF', 'Control File',
              'IS', 'Instance State',
              'FS', 'File Set',
              'IR', 'Instance Recovery',
              'ST', 'Disk Space Transaction',
              'TS', 'Temp Segment',
              'IV', 'Library Cache Invalidation',
              'LS', 'Log Start or Switch',
              'RW', 'Row Wait',
              'SQ', 'Sequence Number',
              'TE', 'Extend Table',
              'TT', 'Temp Table', type) lock_type,
         decode(LMODE,
              0, 'None',
              1, 'Null',
              2, 'Row-S (SS)',
              3, 'Row-X (SX)',
              4, 'Share',
              5, 'S/Row-X (SSX)',
              6, 'Exclusive', lmode) lock_held,
         decode(REQUEST,
              0, 'None',
              1, 'Null',
              2, 'Row-S (SS)',
              3, 'Row-X (SX)',
              4, 'Share',
              5, 'S/Row-X (SSX)',
              6, 'Exclusive', request) lock_requested,
         decode(BLOCK,
              0, 'Not Blocking',
              1, 'Blocking',
              2, 'Global', block) status,
         OWNER,
         OBJECT_NAME
    from     v$locked_object lo,
         dba_objects do,
         v$lock l
    where      lo.OBJECT_ID = do.OBJECT_ID
    AND l.SID = lo.SESSION_ID
    hope this helps
    Zekeriya

  • Short dump while displaying a particular tab

    hi all,
            In a user exit, in IW32 transaction i am displaying a particular tab after a popup warning box. I am able to display the tab i wanted to using field-symbols and changing the T185 at runtime (i changed the build group and panel fields at runtime). but after displaying the screen, if i click on header tab it is giving me a short dump. the error is raised relative to CAUFVD_UPD-INDBT and the error is "ERROR WHEN READING ORDER HEADER WITH INDEX". can anyone explain me what could be the problem? and a possible solution to avoid it.
    thanks in advance,
    Anil.

    Hi Santosh,
    I'd suggest to follow as per SAP Note: 568768 - Analysis of SQL Errors causing Shortdumps or Error messages. The Note contains precise steps to analyze such an ABAP dump.
    cheers
    m./

  • To display total records in a table through Go URL

    Hi All,
    Can anyone give me the solution how to display all the records of a table through Go URL. Actually according to the documentation provided by the oracle or the stuff in the blogs, We can write Go URL to display all the records in a table in two methods.
    1) To change the properties of a table and use the basic Go URL.
    2) Adding Action=Scroll&P5=-1&ViewID=go~Table to the Go URL.
    First one is not a solution in our case, According to our scenario we should not change table properties because If we change the properties and display the whole records in one page... it will impact the performance.
    Coming to the second, we tried to append this part in the report Go URL. But It gave Assertion Failure Error.
    Anybody please provide a solution how to write a Go URL to get all the records in the table.

    Hi All,
    Can anyone give me the solution how to display all the records of a table through Go URL. Actually according to the documentation provided by the oracle or the stuff in the blogs, We can write Go URL to display all the records in a table in two methods.
    1) To change the properties of a table and use the basic Go URL.
    2) Adding Action=Scroll&P5=-1&ViewID=go~Table to the Go URL.
    First one is not a solution in our case, According to our scenario we should not change table properties because If we change the properties and display the whole records in one page... it will impact the performance.
    Coming to the second, we tried to append this part in the report Go URL. But It gave Assertion Failure Error.
    Anybody please provide a solution how to write a Go URL to get all the records in the table.

  • I'd like to display a particular jpg or gif on-screen

    I'd like to display a particular image (jpg,gif,whatever) on-screen based on the results of a series of calculations. What's the method for having LabVIEW call up an image? Anyone got any experience with this? Thank you for your help.
    -Dan

    On your Front Panel, put a picture indicator found in Controls Palette - Graph - Controls - Picture. If it comes up as a control, change it to an indicator. On your block diagram, wire the jpeg file's path to the Read JPEG File vi (found in Graphics & Sounds - Graphics Formats - Read JPEG File.vi). Wire the image data output to Draw Flattened Pixmap input (found in Graphics & Sounds - Picture Functions - Draw Flattened Pixmap.vi). Wire this output to the picture indicator.
    If you just want to display a constant picture on your Front Panel, just drag the picture file onto the Front Panel.
    - tbob
    Inventor of the WORM Global

  • Query to display in particular order

    create a query that willl display the total no of employees and that of total number who were hired in 1980, 1981,1982 with column headings .
    The output shoudl be like this
    Total      1981     1982     1983     
    13     5     5     3

    SQL> select (sum(yr_97)+sum(yr_98)+sum(yr_99)) total,
    sum(yr_97) yr_97,
    sum(yr_98) yr_98,
    sum(yr_99) yr_99
    2 from
    3 (select count(1) yr_97 ,0 yr_98,0 yr_99 from employees
    4 where to_char(hire_date,'YY') = '97'
    5 union
    6 select 0 yr_97,count(1) yr_98,0 yr_99 from employees
    7 where to_char(hire_date,'YY') = '98'
    8 union
    9 select 0 yr_97, 0 yr_98,count(1) yr_99 from employees
    10 where to_char(hire_date,'YY') = '99')
    11 /
    TOTAL YR_97 YR_98 YR_99
    69 28 23 18
    Above query retrieves the total record from employees table based on the
    year of hire_date

  • How to display a particular character  of a word

    Hi,
    can anyone tell me how to display  a particular character of a word in smart forms,Ex:suppose word is India and i want to display character d..
    Thanks in advance.
    Rajesh

    please look at the below explanation:
    DATA: VAR TYPE CHAR20.
    VAR = 'INDIA'.
    WRITE:/ VAR(3) - THIS WILL PRINT FIRST THREE CHARACTERS OF THE INDIA SO THE OUTPUT WILL BE : IND
    WRITE:/ VAR+3(1) = THIS WILL PRINT 1ST CHARACTER AFTER FIRST 3 CHARACTERS SO THE OUTPUT WILL BE : I
    COPY REQUIRED CHARACTERS IN ANOTHER VARIABLE.
    DATA: VAR2 TYPE CHAR10.
    VAR2 = VAR+3(2) .

  • Page display based on count of records

    Hi All,
    i have one report requirement in BIP.
    my report should contains 3 pages only.
    Fist page contains first contact information.
    Second page should contain Second contact inforamtion.
    Third page should contain comparing of first contact age and second contact age.
    if we select first contact record it should display first page contact info only no need to display compare page.
    if we select two contacts then it should display first contact page, second contact page and compare contact age page also. (here first contact and second contact columuns should match. example address, country but age not required to match)
    if we select three or more contacts they should get a message please select two contact records only message.
    Now my question is regarding to page displays, how can we count records then display first page, otherwise display all pages, else message. Here i want to generate report with sub template logic.
    Thanks,
    jag
    Edited by: user7498756 on Aug 30, 2012 8:45 AM

    as you were saying they will select the option so in your template
    use if condition based on user input to execute the block you need .
    if selected value = first member
    call subtemplate first part
    end if
    if selected value = second member
    call subtemplate second part
    end if
    if selected value = more than 2
    keep static message
    end if
    in subtemplate create
    2 parts of code
    first part
    will have first page logic
    second part will have
    its logic required

  • Displaying the total no of records in ALV ouput.

    Hi everybody,
    I am displaying the output in ALV.
    I want display the total number of records at the top of page.( before the columns).
    Can any one throw light on this plz.
    Karunakar reddy

    To get the number of entries in your displayed table use:
    <i>DESCRIBE TABLE tab LINES wg_lines.</i>
    To display the value in a ALV Grid Control, use something like this:
    <i>DATA: sl_layout   TYPE lvc_s_layo.
    sl_layout-grid_title = wl_lines.
    CALL METHOD og_alv->set_table_for_first_display
          EXPORTING
            is_layout                     = sl_layout
            ....</i>
    Regards,
    Martin

  • How to fetch last record from the table to display in screen painter?

    Hi Gurus,
                  I have a requirement where i have to fetch the last record value in the table.
    I have a screen where the TEXT name is REQUEST and I/P field name is REQ and SAVE push button.
    In this I/P field automatically 1 should display when i excecute the program and when i save this, the request number should turn to 2 that is dynamically..once agin save then 3 and so on....and this 1, 2, 3 will be storeing in table.
    I have succeeded till generating the values dynamically and saving in the table like 1 is displayed and when i click save it is changeing to 2..but the problem is when i am coming out of program and logon again the request number is again displaying as 1 rather it has to start with 4 because already 3 request are there in the table.
    My code is...
    Table zsave.
    data declarations....
    data req type i.
    req = 0.
    req = zsave-req.
    PROCESS BEFORE OUTPUT
    req = 0.
    select req into table fun_st from zsave.
    req = zsave-req.
    zsave-req = req.
    req = zsave-req + 1.
    PAI
    req = zsave-req + 1.
    zsave-req = req.
    when 'save'.
    wa_funst-req = zsave-req.
    Please can you provide me with the solution....answer will be rewared.
    THKS

    Can you tell me, when updaing the ZSAVE table with the counter value are you modifying the exisiting value or inserting the value as new record?
    From the code in your first post, i see that you are extracting records into internal table but when you are moving to variable REQ, you are moving from table work area which is blank, so everytime when you execute it may be starting as 0.
    Hope below code can help you understand on handling your requirement
    Global Declaration:
    >DATA: l_req TYPE i. 
    PBO:
      SELECT MAX( req ) INTO l_req FROM zsave.
      l_req = l_req + 1.
    PAI:
      DATA: wa TYPE zsave.
      CASE ucomm.
      WHEN 'SAVE'.
        wa-req = l_req.
        INSERT zsave FROM wa.
      ENDCASE.

  • Sql Except query to Display mismatched records along with Table names

    Hi
    I am using below query to display mismatch records between two tables
    SELECT * FROM table1
    EXCEPT
    SELECT * FROM table2
    UNION
    SELECT * FROM table2
    EXCEPT
    SELECT * FROM table1
    This displays mismatched records like below
    Sunil  1000  india
    Sunil 1500  india
    I would like to display even the table names in the result For ex;
    Sunil  1000  india  Table1
    Sunil 1500  india   Table2
    Can you please help us in this regard.

    cnk_gr's query should work for you. 
    One change that I would make is to use UNION ALL, not UNION.  UNION eliminates duplicate rows, which means SQL has to do additional work (sort the result and then check for duplicates). 
    So if you can have duplicates and don't want them in your result, then you would use UNION.  And if you can have duplicates and you want the duplicates in the result, you would use UNION ALL.  But in cases like this, where you know you cannot have
    duplicates (because column 1 contains 'TABLE1' for every row in the first half and column 1 contains 'TABLE2' for every row returned from the second half of the query), you should always use UNION ALL.  It will be more efficient.
    Tom

Maybe you are looking for

  • Method signature of a two dimensional array of an object

    Hi, Does anyone know how to set the method signature of a two dimensional array of an object (e.g. : String[][]). Thank you.

  • How to scan with HP AIO 309A to Mac 10.8.5?

    I am using an HP Photosmart 309A all-in-one printer. After updating to Mountain Lion 10.8.5 I am not able to scan at all. Image Capture does not work, it states "no camera or scanner connected." The HP Scanner program states refer to documentation. I

  • Printing Selected Records thru Dynamic Checkboxes

    Hi, How to print records, selected thru checkboxes on the button action ? Everything is dynamically handled. Kindly help. Regards Mandeep Kaur

  • MS Project deadline

    Hello, I have one question I manage a big project , which is divided in to several streams and they have there individual MS project 2010 and once a week I consolidate it into one big MS project for me and for other parties. Is it possible some how t

  • ECM error when strutural Authorization is used

    Hi , When structural authorizations are added to the user via transaction OOSB, the i-view "Compensation Planning (ECM)" after we select the organization unit , return the following errors : An exception occurred while processing a request for : Comp