Re: How to make the push button dynamically change after query data?

From: Lars Reineke <Krankenhaus-Hameln_at_t-online.de>
Date: Thu, 28 Jan 1999 07:45:58 GMT
Message-ID: <36b014b3.1445698_at_172.20.200.2>


Hi!

On Tue, 26 Jan 1999 15:53:39 -0800, "Robert Hoy" <hoy_at_solaria.hac.com> wrote:

>I have the push button and it's enabled to use icon. After querying the
>data, each push button
>should be able to point to the correct icon filename (using the
>set_item_property function).

Try Set_Item_Instance_Property:



declare
  cur_blk VARCHAR2(40) := 'the_block';
  bk_id Block;
  cur_rec NUMBER;
begin

bk_id := Find_Block(cur_blk);
cur_rec := Get_Block_Property( bk_id, CURRENT_RECORD); if :the_block.color = 'red' then

Set_Item_Instance_Property('the_block.push_button',cur_rec,ICON_NAME,'red.ico'); end if;
end;


---
Lars Reineke
http://www.planet-interkom.de/pinhead
mailto:reineke_at_kreiskrankenhaus-hameln.de
---
Received on Thu Jan 28 1999 - 08:45:58 CET

Original text of this message