Push Button in Multirecord block and Record Number

Hi All,
I have a push button in Multirecord block.
for eg. there are 5 records in that block and cursor is on 1st record. if users pressess the push button on 3rd record (or other than 1st record) i want to get that 3rd record number. i am not able to get this. i checked :system.trigger_record, cursor_record, mouse_record values but it is not working correctly.
what code should i write in when-button-pressed trigger to work it the way i want.
can anybody help.
regds

Yes i got it
Re: multi-record push button
set mouse navigable property to true for push button and you get the :system.trigger_record value.

Similar Messages

  • Navigate to pressed button in multirecord block

    Hi,
    I'm using Forms 6i (6.0.8.27.0), Client / Server.
    I have a multi-record block with a button ("+") in the block for duplicating the record and increasing the date.
    So each row has a "+" button.
    When I press the "+" eg. on the 3rd row I want to navigate to this row and to execute the code in when-button-pressed trigger.
    So I wrote in the when-button-pressed trigger
    "GO_RECORD(:system.mouse_record);
    duplicate_record;
    Unfortunately :system.mouse_record is set to 1, also :system.cursor_record and :system.trigger_record.
    The "Mouse Navigate" property of the button is set to "yes".
    I have used the search function but didn't found a solution.
    Thanks in advance,
    Marco.

    Marco,
    My apologies, I should learn to read all of the message. I am embarrassed into having another try.
    Firstly, to clarify
    I am using Forms10g (sorry but it was the only one I could remove a developer from)
    Duplicate_Record: Copies the value of each item in the record with the next lower sequence number to the corresponding items in the current record. The current record must not correspond to a row in the database. If it does, an error occurs.
    I have setup a default block with a button on it and to test I have just executed a query against the block.
    After rows have been retrieved
    When I click on a button system.mouse_record always returns 0 (In the help it says this will be the case if you are not in an item, but I do not know if a button is classed as an item in the eyes of the help test author, I thought it might be, but maybe they mean a text item?) when I use :system.trigger_record I always get the right record number.
    For duplicate_record to work I have to be in a "NEW" record. I appear to be able to do this in two ways.
    Go to the bottom of my records + 1. The button becomes enabled and when I press it I can duplicate the record above.
    I can choose "insert record" (key-crerec I think or create_record) if I do this I can then press the button and duplicate the record above into this new record.
    If I press a button on a record which already has a record I presume of type QUERY then when I press the button I get FRM-41802 duplicate record function allowed on new records only.
    If I do not perform a query in the block; I create the first record input data I have to move to the next record to enable the button
    If I press the button it duplicates the value in the first record
    If I change the value in the second record and then go back to the first and press the button on the second row it overwrites the value with the value from the first row
    I hope this gives you some pointers in solving your problem.
    Apologies again for not reading properly and I hope that my using 10g has not made all this info useless.

  • Enable Submit Button at User Level and Disable at Block Level

    I developed a query_find form having empno field:
    Once the Employees‘s data is returned, then the new form that opens up should have the following fields.
    Employee Name
    Employee Number     
    Salary
    Address
    Notes
    and submit button.
    i have taken Employee Name,Employee Number,Salary,Address,submit button in xx_emp block.
    and i have given Query Data Source as xx_EMP_v view.
    and Notes related to xx_dum_emp block and for this query data source as xx_emp_details table(here notes field is contorl item)
    And i have written the following code in the submit button
    IF :xx_dum_emp.NOTES IS NOT NULL
    THEN
    INSERT INTO xx_emp_details
    (employee_number,
    employee_id,
    employee_name,
    address,
    salary,
    notes
    VALUES (:xx_emp.employee_number,
    :xx_emp.employee_id,
    :xx_emp.employee_name,
    :xx_emp.address,
    :xx_emp.salary,
    xx_dum_emp.notes
    END IF;
    commit;
    I have taken all the fields in the same canvas.
    Requirement:
    Submit Button should be enable for the specific user.For other users it should be in disable mode.
    so i have written code in POST_QUERY of the calling block as below:
    IF l_name = 'TESTUSER'
    THEN
    SET_ITEM_PROPERTY ('XXMZ_EMP.SUBMIT',
    enabled,
    property_true
    ELSE
         SET_ITEM_PROPERTY ('XXMZ_EMP.SUBMIT',
    enabled,
    property_false
    END IF;
    It's working fine.
    Suppose i query with empno 10 it will return Employees‘s data.So in that form i just enter some text in the Notes field
    then click on submit.then close the form.again query with the same number then i need to disble Submit button at this level.
    Is it possible to Disable the Submit Button?

    Hi Dhana;
    If your issue about Forms Customization please follow below and see its helpful:
    Subject: Customization in Oracle Applications Doc ID: 743490.1
    Subject: Forms Customization Doc ID: 69995.1
    Subject: Setup & Usage (Customization) Doc ID: 104697.1
    Please see "Oracle Developer Guide" available at:
    Applications Releases 11i and 12
    http://www.oracle.com/technology/documentation/applications.html
    Also see:
    http://oracle.anilpassi.com/forms-customization-steps-in-oracle-applications.html
    http://oracle.anilpassi.com/a-new-custom-form-in-oracle-apps.html
    I hope those are can be helpful for you
    Regards
    Helios

  • Buttons under source and record monitors not working

    For some odd reason, the buttons under the source and record monitors are not working in Premiere. This is a new install, and I'm relatively new to Windows so I hope it is something obvious. Buttons in other CC apps work fine. Any ideas out there?
    Windows 7
    2 x 10 core CPU (40 virtual)
    64 GB Ram
    nVidia Titan
    Decklink 4K
    Latest Premiere CC build
    Wacom Tablet

    Yes, actually. I unplugged the Wacom, uninstalled the drivers and restarted. Problem still there. Other ideas?
    Chris
    =========================================
    Edited by moderator to remove personal information

  • Some needs in multirecord block

    Hi,
    I need to do some modifications in a multirecord block and need some help
    --i need to loop each record to compare if end date field in the previous record is not greater than the start date field in current record
    --i need also for records which already exist, to disable update on the start date field
    do you have any idea on how to do that? thank you very much and any help will be appreciated.
    Thx

    Hi,
    and thanks
    I did the modification but getting a FRM-40102 Records must be inserted or deleted first,
    do you have any idea on the root cause?
    Also, how to compare values in previous row with values in current row?
    Thanks
    Edited by: Tabit7 on 2012-02-11 08:50

  • Where to write the code when the push button is clicked in the screen

    I have designed a screen with a push button and a text box
    If i click on the push button it should display a value 'hello' in the text box. How to do

    When you are using module pool programming,
    handle the push button function code in the PAI module and make sure the text field is updated whenever that function code for push button gets executed.
    And one more thing is that make sure you set the next screen to the same screen number because after executing the function code then again it has to go back to the PBO of that screen for displaying  the text field.
    For inital display, the text field is displayed blank and it is filled when that function code is executed.
    Regards,
    Balaji Reddy G
    Note:Please reward if the answers are helpful

  • Post Goods issue after clicking on Load Starting push button

    Hi All,
    Post goods issue for deliveries, suppose if the shipment document is created for XXXX country do the post goods issue after clicking the push button loading start on. and if the shipment is created other than the XXXX Country do the post goods issue after clicking the shipment start button(Done by Standard SAP).
    There will be validation table in background to identify which shipping point to allow Post Goods Issue before shipment completion. This will require enhancement of Delivery User Exit to incorporate above check based on below mentioned Z Table.
    Z-Table
    - Shipping Point.
    - Delivery Type
    Any body please suggest the user exit or any function module and how to start code for this particular requirement.
    Thanks & Regards,
    Narasimha

    Hi,
    You can write your own vaalidation on click of loading start button.
    Go to include MV56AI_IS_ENHANCEMENT of program SAPMV56A.
    Click on the circular button(Enhance).
    Then Edit --> Enhancement Operation --> Create.
    Create your enhancement giving it a Z name.
    Then in this enhancement you can write your code.
    For loading start you can write your code in the following fashion.
    IF fcode = 'MM_ST03'.
          business logic.....
    ENDIF.
    Regards,
    Firoz.

  • My Iphone Off/On push button is apparently stuck. I am unable to turn it off or push for the black screensaver. Is there a mechanical fix or am I sunk with a defective phone now?

    question: Is my IPhone 4S now defective/defunct for use with a bad push button for on/off and screensaver, or is there a mechanical fix that an Apple Store Genius can do to pop that button out again?

    Oh, yes, the Apple store will either install that cheesy, annoying screen app, or tell me I can replace my phone - only 1 1/2 years old - come on, Apple! - for a hefty price since the warranty is over and my cell contract still has months to go. Oh, and I've purchased AppleCare several times on other products and never needed it because I am careful with my electronics! Apple has gotten enough money from me for AppleCare in the past, and why would I have expected Apple to have a shoddy product (well, I might now). Thanks for responding, though.

  • Push Button on a list

    Hi ,
      How can we insert a push button in a list and control it operatins.
    Regards
    Arun

    I am not sure about this, but you can give it a try.
    Try
    SET PF-STATUS '<YOUR PF-STATUS>'
    and you can add buttons in the application toolbar. Have a gut feeling, it might work. Not sure though.
    Regards,
    Subramanian V.

  • Game response was sluggish.  Pushed button to go back to main screen. Screen would not respond. Got colored lines like a vertical roll, then screen went dark.  Screen will not turn on at all

    I was playing a game.  Game response was sluggish.  I pushed button to exit game and go back to main screen.  Took several times to get a response from iPad.  The response was a black screen with horizontal colored lines similar to horizontal roll on an old TV.  Screen went black and will not come back on.  Attempted sync, but iPad no longer shows up in iTunes.  Help!

    Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds, after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Enable push button

    Hi,
       I need to customize an infotype. I've created one push button on the screen, when click on the button, a table control will show out.
      However, I don't know why when I display the screen in PA30, the push button show disabled mode and I couldn't click on it.
      Do anyone know why and how can I solve it?
      Many thanks in advance.

    in the lay out check tha attributes of thatbutton.check the display tab i the attributes.in that check box corresponiding to invisible should not be checked(empty).
    regards,
    bharat.

  • Data block and push button

    Hi
    I have a data block where I need that the first two items are a push button.
    Now when user want to insert a new record, if you have a text item, since the cursor is in the text item, you can enter a new record.
    Now with the push button, I cannot click on it before i click on a text item (which in fact create the new line)
    How to have a push button which is able to create a new record like a text item does?

    In fact the original problem is :
    if you have a row in a data block that start with a push button. and then many text item, you are obliged to put the cursor on one text item of a new record to get the button working. The button is by default disable and cannot be used to create a new record.
    If I put the button as a default button, the query is not executed. That the original problem

  • Disable button when no records in multirecord block.

    Hello,
    In a tabular multirecord block we have a button that will open another window for the selected row. The problem is that when there are no records in the multirecord-block, the first line is still selected, and the pushbutton is enabled. This will cause an error when the user press the button when there are no records. Adding code to the button will of course take care of the error, but it is still enabled. How do we disable the entire line when there are no records?

    how about - directly after querying the master record...
    go_block(<block>)
    if :blk.key (or :blk.rowid) is null then
      SET_ITEM_PROPERTY('<buttonname>',enabled, property_false);

  • 'Create' Push button is not working in BDC and LSMW while uploading G/L master data

    Hello Experts:
    I am facing the following problem:
    While uploading G/L master data with the BDC program, 'create' push button is not working  even after executing following lines.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=ACC_CRE'.
    Create G/L account  screen is not coming in BDC. Please suggest me what to do.
    Thanks !!

    Re: 'Create' Push button is not working in BDC and LSMW while uploading G/L master data
    Re: 'Create' Push button is not working in BDC and LSMW while uploading G/L master data
    Hi Glen Anthony
    Thank you for the reply Glen Anthony please take a look at the following code.
    REPORT  ZFI_BDC_FS00
            NO STANDARD PAGE HEADING LINE-SIZE 255.
    *INCLUDE BDCRECX1.
    TYPES : BEGIN OF STR,
       BUKRS TYPE GLACCOUNT_SCREEN_KEY-BUKRS,        "Company Code
       SAKNR TYPE GLACCOUNT_SCREEN_KEY-SAKNR,        "G/L Account Number
       KTOKS TYPE GLACCOUNT_SCREEN_COA-KTOKS,        "G/L Account Group
       XPLACCT TYPE GLACCOUNT_SCREEN_COA-XPLACCT,    "P&L statement account
       XBILK TYPE GLACCOUNT_SCREEN_COA-XBILK,        "Indicator: Account is a balance sheet account?
       TXT20_ML TYPE GLACCOUNT_SCREEN_COA-TXT20_ML,  "G/L account short text
       TXT50_ML TYPE GLACCOUNT_SCREEN_COA-TXT50_ML,  "G/L account short text
       WAERS TYPE GLACCOUNT_SCREEN_CCODE-WAERS,      "Account currency
       XSALH TYPE GLACCOUNT_SCREEN_CCODE-XSALH,      "Indicator: Only Manage Balances in Local Currency
       MWSKZ TYPE GLACCOUNT_SCREEN_CCODE-MWSKZ,      "Tax Category in Account Master Record
       XMWNO TYPE GLACCOUNT_SCREEN_CCODE-XMWNO,      "Indicator: Tax code is not a required field
       MITKZ TYPE GLACCOUNT_SCREEN_CCODE-MITKZ,      "Account is reconciliation account
       XOPVW TYPE GLACCOUNT_SCREEN_CCODE-XOPVW,      "Indicator: Open item management?
       XKRES TYPE GLACCOUNT_SCREEN_CCODE-XKRES,      "Indicator: Can Line Items Be Displayed by Account?
       ZUAWA TYPE GLACCOUNT_SCREEN_CCODE-ZUAWA,      "Key for sorting according to assignment numbers
       FSTAG TYPE GLACCOUNT_SCREEN_CCODE-FSTAG,      "Field status group
       XINTB TYPE GLACCOUNT_SCREEN_CCODE-XINTB,      "Indicator: Is account only posted to automatically?
       END OF STR.
    DATA : ITAB TYPE TABLE OF STR WITH HEADER LINE,
            IT_BDCDATA TYPE TABLE OF BDCDATA WITH HEADER LINE,
            TXT(4096) TYPE C OCCURS 0,
            MSG TYPE STRING,
            COUNT(5) TYPE N.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
       PARAMETERS : MY_FILE TYPE RLGRAP-FILENAME.
    SELECTION-SCREEN : END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR MY_FILE.
    CALL FUNCTION 'F4_FILENAME'
      EXPORTING
        PROGRAM_NAME        = SYST-CPROG
        DYNPRO_NUMBER       = SYST-DYNNR
    *   FIELD_NAME          = ' '
      IMPORTING
        FILE_NAME           = MY_FILE
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
       EXPORTING
    *   I_FIELD_SEPERATOR          =
    *   I_LINE_HEADER              =
         I_TAB_RAW_DATA             = TXT
         I_FILENAME                 = MY_FILE
       TABLES
         I_TAB_CONVERTED_DATA       = ITAB[]
      EXCEPTIONS
        CONVERSION_FAILED          = 1
        OTHERS                     = 2
    IF SY-SUBRC <> 0.
    * IMPLEMENT SUITABLE ERROR HANDLING HERE
    ENDIF.
    START-OF-SELECTION.
    COUNT = 0.
    LOOP AT ITAB.
    *PERFORM OPEN_GROUP.
    REFRESH  IT_BDCDATA.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_KEY-BUKRS'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=ACC_CRE'.
    *PERFORM BDC_FIELD       USING 'BDC_CURSOR'
    *                              'GLACCOUNT_SCREEN_KEY-BUKRS'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_KEY-SAKNR'
                                   ITAB-SAKNR. "'5'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_KEY-BUKRS'
                                   ITAB-BUKRS. "'TATA'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=2102_GROUP'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_COA-KTOKS'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-KTOKS'
                                   ITAB-KTOKS. "'GL'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
                                   ITAB-XPLACCT. "'X'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=2102_BS_PL'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_COA-XBILK'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-KTOKS'
                                   ITAB-KTOKS. "'GL'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-XPLACCT'
                                   ITAB-XPLACCT. "''.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-XBILK'
                                   ITAB-XBILK. "'X'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=TAB02'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-KTOKS'
                                   ITAB-KTOKS. "'GL'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-XBILK'
                                   ITAB-XBILK. "'X'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_COA-TXT50_ML'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-TXT20_ML'
                                   ITAB-TXT20_ML. "'G/L ACCOUNT'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_COA-TXT50_ML'
                                   ITAB-TXT50_ML. "'G/L ACCOUNT'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=TAB03'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-WAERS'
                                   ITAB-WAERS. "'INR'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XSALH'
                                   ITAB-XSALH. "'X'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-MWSKZ'
                                   ITAB-MWSKZ. "'*'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XMWNO'
                                   ITAB-XMWNO. "'X'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-MITKZ'
                                   ITAB-MITKZ. "''.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_CCODE-ZUAWA'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XOPVW'
                                   ITAB-XOPVW. "'X'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XKRES'
                                   ITAB-XKRES. "'X'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-ZUAWA'
                                   ITAB-ZUAWA. "'1'.
    PERFORM BDC_DYNPRO      USING 'SAPLGL_ACCOUNT_MASTER_MAINTAIN' '2001'.
    PERFORM BDC_FIELD       USING 'BDC_OKCODE'
                                   '=SAVE'.
    PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                   'GLACCOUNT_SCREEN_CCODE-XINTB'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-FSTAG'
                                   ITAB-FSTAG. "'G019'.
    PERFORM BDC_FIELD       USING 'GLACCOUNT_SCREEN_CCODE-XINTB'
                                   ITAB-XINTB. "'X'.
    *PERFORM BDC_TRANSACTION USING 'FS00'.
    CALL TRANSACTION 'FS00' USING IT_BDCDATA MODE 'E' UPDATE 'S'.
    COUNT = COUNT + 1.
    *PERFORM CLOSE_GROUP.
    ENDLOOP.
    CONCATENATE COUNT ' RECORDS UPDATED SUCCESSFULLY' INTO MSG.
    MESSAGE MSG TYPE 'I'.
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
       CLEAR IT_BDCDATA.
       IT_BDCDATA-PROGRAM  = PROGRAM.
       IT_BDCDATA-DYNPRO   = DYNPRO.
       IT_BDCDATA-DYNBEGIN = 'X'.
       APPEND IT_BDCDATA.
    ENDFORM.
    *        INSERT FIELD                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
    *  IF FVAL <> NODATA.
         CLEAR IT_BDCDATA.
         IT_BDCDATA-FNAM = FNAM.
         IT_BDCDATA-FVAL = FVAL.
         APPEND IT_BDCDATA.
    *  ENDIF.
    ENDFORM.

  • Showing 10 records at a time in a multirecord block

    Hello,
    I have a requirement to show 10 records at a time,consider a table in which
    there are 100 records which is associated to a multirecord block,in order to have a web look and feel I need to show first 10(1 to 10) record on load,when the user presses the button "Next 10 records", I need to replace the first 10 records with new set of 10 records(11 - 20),
    Please note that no of records to be displayed at a time will be 10 and our requirement is avoid scroll bar.
    Any suggestions as to how I need to accomplish the task above.
    Thanks and Regards
    Mohan

    You don't need a special button for this because the user can already navigate using the cursor keys and page up/down keys.
    For cursor keys use the key-up, key-down, key-nxtrec and key-prvrec triggers.
    For page up/down use the key-scrup and key-scrdown triggers.
    I suppose the menu option "Query > Fetch Next Set" (key-nxtset) should operate the same as page down.
    An example of the key-scrdown trigger is thisdeclare
         numrecs integer := get_block_property('EMP',records_displayed);
         toprec integer := get_block_property('EMP',top_record);
         thisrec integer := :system.trigger_record;
    begin
         go_record(toprec + (2 * numrecs) - 1);
         go_record(thisrec + numrecs);
    end;This will advance by as many records are in the block and leave the cursor positioned on the same record relative to the top of the block. Eg if there are 10 rows in the block and you're on the first set then the top record will be 1 and you want to make the new top record 11. So you need to call go_record(20), which makes that the bottom record and 11 the top one.
    You'll need to work out how the form should behave when the number of records in the block is not exactly divisible by the number of records in the data because forms won't allow blank records to pad out the bottom of the block and records_displayed isn't a settable property at runtime. So if there are 10 rows in the block and 103 rows of data then the penultimate page will show records 91-100 and the last page will show records 94-103. Should scrolling back up show record 91 at the top, or 84?
    For the key-down/key-nxtrec trigger you'll probably want something like thisdeclare
         numrecs integer := get_block_property('EMP',records_displayed);
    begin
         if :system.last_record != 'TRUE' then
              if mod(:system.cursor_record,numrecs) = 0 then
                   -- last record in this set
                   go_record(:system.cursor_record + numrecs);
                   go_record(:system.cursor_record - (numrecs - 1));
              else
                   next_record;
              end if;
         end if;
    end;If you're at the bottom of one set it will show the next set and go to the top record, otherwise it will just go to the next record. But again, this breaks down when the number of rows in the block and in the data don't divide up evenly.
    I hope this is enough to get you started.

Maybe you are looking for