3 Replies Latest reply: Jul 18, 2013 1:51 PM by CraigB RSS

    How to Navigate to another Block



      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

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

          • 2. Re: How to Navigate to another Block



            Use key-nxtblk trigger to navigate to other block .



            • 3. Re: How to Navigate to another Block

              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,