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

From: Valery A. Sorokin <vsorokin_at_dd.ru>
Date: Fri, 12 Feb 1999 19:32:32 +0300
Message-ID: <36C457A0.16537E42_at_dd.ru>


Hi!

There isn't such parameter ICON_NAME in Set_Item_Instance_Property :( (I mean Forms 5)

Lars Reineke wrote:
>
> 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
> ---

-- 
Valery A. Sorokin
ProSoft, Russia, Moscow, Information Systems Division
Phone: +7 (095) 234 0636 (6 lines) FAX: +7 (095) 234 0640
E-mail: vsorokin_at_dd.ru OR vsorokin_at_prosoft.ru
http://www.dd.ru
Received on Fri Feb 12 1999 - 17:32:32 CET

Original text of this message