Re: "Format" Trigger in Forms???(B
Date: Wed, 28 Feb 2001 08:12:28 +0100
Message-ID: <3A9CA4DC.8D8DFAA8_at_dixi-wc.de>
Hi,
i've done the same in Forms 6i. May be you can do it the same way in 4.5:
Create visual attributes (at design time) as many as you need different
backgroud colors.
at runtime set_va_property to background and set_item_instance_property
to Visual attribute.
Here's my post-query-trigger for that block (visual attribute are named
VA1, VA2, ...
PROCEDURE pq_block_farben IS
nWert number := :system.trigger_record; BEGIN
set_va_property('VA'||nWert, BACKGROUND_COLOR, :farben.farbtext); set_item_instance_property('FARBEN.wochentag_text',nWert, VISUAL_ATTRIBUTE, 'VA'||nWert);
END; hth
Stephan
Christof Mller schrieb:
> I'm looking for something like the
> Format Triggers in Reports.
> Problem is to mark every single
> line in a multi record block with
> a background color (depend on items value).
> SET_ITEM_PROPERTY(VISUAL_ATTRIBUTE)
> will mark all records with the same
> color.
> Example (if item = 1 then color = red, else
> white):
> No. item color
> 1. 1 red
> 2. 0 white
> 3. 1 red
>
> Does anybody know how to do this with
> Forms 4.5 (I know, the forum is Forms 6i,
> but the customer .... )
>
> Thanks for your help
Received on Wed Feb 28 2001 - 08:12:28 CET