-
Hi, every one
On witch way I can navigate to another block when validate item without restriction
thanks..
-
can u please elaborate the question.
-
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 ..
-
is POST-TEXT-ITEM also restricted?
-
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
-
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]
-
Key restriction
KEY-NEXT-ITEM Trigger is not fired in cas of mouse navigation, isn't it?
-
Hello,
Yes u r absolutely right.
-
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]
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|