clear/refresh block [message #81390] |
Wed, 12 February 2003 23:49 |
Tina
Messages: 38 Registered: November 2001
|
Member |
|
|
hi, master block contains an LOV and it returns the chosen value to a text item. i want to clear the detail block when text item is changed. i tried using go_block and clear_block in when-validate-item trigger but i got an error.
thanks!
|
|
|
Re: clear/refresh block [message #81397 is a reply to message #81390] |
Thu, 13 February 2003 09:03 |
magnetic
Messages: 324 Registered: January 2003
|
Senior Member |
|
|
try to use the trigger key-listval on that item:
go_item('lov-item');
list_values;
if :lov-item is not null then
next_item; (might be restricted)
or go_block(..);
end if;
just try out some triggers
its a matter of timing, but watchout for restricted triggers.
|
|
|
Re: clear/refresh block [message #81405 is a reply to message #81390] |
Thu, 13 February 2003 19:56 |
Tina
Messages: 38 Registered: November 2001
|
Member |
|
|
thanks. i added the ff. code in when-button-pressed trigger of the LOV button.
IF :System.Record_Status IN ('CHANGED', 'INSERT') THEN
GO_BLOCK(detail block);
CLEAR_BLOCK(NO_VALIDATE);
END IF;
|
|
|