Re: Set Focus to an Item When Changing Tabs

From: mttxn12 <mttxn12_at_earthlink.net>
Date: 2000/05/13
Message-ID: <tqirhso30f2eqf6rk9t6kjjvv3qbhci6i6_at_4ax.com>#1/1


On Wed, 10 May 2000 14:22:08 GMT, mttxn12 <mttxn12_at_earthlink.net> wrote:

Mike and Matt, I appreciate the help.

We resolved the problem. We used the When_Tab_Page_Changed example in the help file as an example with the Go_Item. The problem was we weren't checking which tab was being clicked and we were trying to use go_item by itself. Our solution is below:

  • HISTORY
We're dealing with 7 tabs in this form.

Campuses, Programs, Sessions, Grades, Courses, Images, and Passwords.

  • SOLUTION:
DECLARE
tp_nm VARCHAR2(30);
tp_id TAB_PAGE;
tp_lb VARCHAR2(30);

BEGIN

   tp_nm := GET_CANVAS_PROPERTY('REF_DATA_TABCV', topmost_tab_page);
   tp_id := FIND_TAB_PAGE(tp_nm);
   tp_lb := GET_TAB_PAGE_PROPERTY(tp_id, label);

   IF tp_lb LIKE 'Campuses' THEN
       Go_Item('campuses.id');
       --SET_TAB_PAGE_PROPERTY(tp_id, label, 'CAMPUSES');
    
   ELSIF tp_lb LIKE 'Programs' THEN
       Go_Item('programs.id');
       --SET_TAB_PAGE_PROPERTY(tp_id, label, 'PROGRAMS');
    
   ELSIF tp_lb LIKE 'Sessions' THEN
       --SET_TAB_PAGE_PROPERTY(tp_id, label, 'SESSIONS');
       Go_Item('sessions.session_code');
    
   ELSIF tp_lb LIKE 'Grades' THEN
       --SET_TAB_PAGE_PROPERTY(tp_id, label, 'GRADES');
       Go_Item('grades.letter_grade');
    
   ELSIF tp_lb LIKE 'Courses' THEN
       --SET_TAB_PAGE_PROPERTY(tp_id, label, 'COURSES');
       Go_Item('courses.id');
    
   ELSIF tp_lb LIKE 'Images' THEN
       --SET_TAB_PAGE_PROPERTY(tp_id, label, 'IMAGES');
       Go_Item('images.id');
    
   ELSIF tp_lb LIKE 'Passwords' THEN
        
	
             Verify_Role;
             
       
     --ELSE null;
  

  END IF;
END; Thanks again.

mtt

>
>Using Oracle Tools Form Builder 5.0 ....
>
>
>I would like to know how to set focus to an item
>when switching between tabs?
>
>I have tried using SET_TAB_PAGE_PROPERTY, WHEN_TAB_PAGE_CHANGED, and
>other triggers at the form level with no luck. There is no option to
>set triggers at the canvas level either.
>
>I appreciate any help.
>
>
>
Received on Sat May 13 2000 - 00:00:00 CEST

Original text of this message