restriction when navigation
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 10

Thread: restriction when navigation

Hybrid View

  1. #1
    Join Date
    Apr 2001
    Posts
    7
    Hi, every one

    On witch way I can navigate to another block when validate item without restriction

    thanks..

  2. #2
    Join Date
    Apr 2001
    Posts
    51
    can u please elaborate the question.

  3. #3
    Join Date
    Apr 2001
    Posts
    7

    Unhappy

    I sorry miritika..

    I mean, if I want to move to another block when I change the value of text item. but if I use GO_BLOCK in WHEN-VALIDATE_ITEM trigger the compiler return restriction.

    How can I do that ..
    Thanks ..

  4. #4
    Join Date
    Aug 2000
    Posts
    462
    is POST-TEXT-ITEM also restricted?

  5. #5
    Join Date
    Jun 2000
    Location
    French Polynesia
    Posts
    16

    Moving to another block

    In order to move to another block when the value of item is changed, you must use the when-new-item-instance trigger of the next item in the sequence of items in the block or the when-new-record-instance trigger in the case the item is the last in the record and the proprety navigation sequence of the block is next record, and finially, the when-new-block-instance trigger if the navigation sequence is next block

    Bye, Rayd

  6. #6
    Join Date
    Apr 2001
    Posts
    24
    Hello,

    In POST-TEXT-ITEM you can not use restricted built ins.
    All navigational built ins are restricted built ins.

    In Key triggers you can use restricted built ins.

    Example :
    In KEY-NEXT-ITEM Trigger
    --------------------------------
    if < Condition > then
    Go_Block('Block Name');
    end if;

    Hope this will help u .



    [Edited by sasmita on 04-21-2001 at 12:51 AM]

  7. #7
    Join Date
    Jun 2000
    Location
    French Polynesia
    Posts
    16

    Key restriction

    KEY-NEXT-ITEM Trigger is not fired in cas of mouse navigation, isn't it?

  8. #8
    Join Date
    Apr 2001
    Posts
    24
    Hello,

    Yes u r absolutely right.

  9. #9
    Join Date
    Apr 2001
    Posts
    24
    Hello,

    U can go in two ways :
    First one is :
    U can go for two trigger at the block level
    Example :
    One is :
    In KEY-NEXT-ITEM Trigger
    --------------------------------
    if < Condition > then
    Go_Block('Block Name');
    end if;

    Second is :
    In WHEN-MOUSE-CLICK Trigger
    --------------------------------------
    if < Condition > then
    Go_Block('Block Name');
    end if;

    This will solve both from key board as well as thru mouse navigation.

    Second one is :
    Can do like this also, then u do not have to worry about by key board or mouse navigation.

    WHEN-TIMER-EXPIRED
    ---------------------------
    DECLARE
    tm_name VARCHAR2(20);
    BEGIN
    tm_name := Get_Application_Property(TIMER_NAME);
    IF tm_name = 'MY_TIMER' THEN
    Go_block('Block Name');
    END IF;
    END;

    WHEN-VALIDATE-ITEM
    ----------------------------
    declare
    t timer;
    begin
    if then
    t :=create_timer('MY_TIMER', 1, NO_REPEAT);
    end if;
    end;


    Hope this will help u ..




    [Edited by sasmita on 04-24-2001 at 01:08 AM]

  10. #10
    Join Date
    Apr 2001
    Posts
    7

    Thumbs up

    Thank everybody .
    Good idea.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width