3 Replies Latest reply: Jul 18, 2013 8:51 AM by CraigB RSS

    How to Navigate to another Block

    1007980

      Hi,

      In my Form, There are 2 blocks named as emp, dept. The 1st one is Emp. How to Navigate Cursor (By pressing TAB) from Emp to Dept. If the Last record is ended then pressing the tab. Which trigger i need to write???

       

       

      --

      Thanks & Regards,

      Hari Babu

        • 1. Re: How to Navigate to another Block
          InoL

          You can set the block property "Navigation Style" to "Change Data Block".

          • 2. Re: How to Navigate to another Block
            RajuM

            hi,

             

            Use key-nxtblk trigger to navigate to other block .

             

            thanks

            • 3. Re: How to Navigate to another Block
              CraigB

              Hari Babu,
              It is always best to use properties instead of writting code.  I recommend you set the Navigation Sytle property of your blocks to Change Data Block as InoL suggested. 

              Remember, Forms is heirarchical - meaning that navigation occurs in the order in which objects are listed in the Object Navigator.  So, if the EMP block is listed before the DEPT block then, by default, EMP's next navigation block is DEPT.  However if you also had the BONUS and SALGRADE blocks in your form, but only display data from EMP and DEPT then it is useful to set the the Previous Navigation Data Block and Next Navigation Data Block properties of your data blocks to ensure navigation is correct. 

              Hope this helps,
              Craig...