Re: forms 4.5; visual attribute

From: Grant Donohoe <donohoeg_at_syntegra.bt.co.uk>
Date: 1996/09/05
Message-ID: <322EFE5E.72BF_at_syntegra.bt.co.uk>#1/1


Loyal Barber wrote:
>
> Grant Donohoe wrote:
> >
> > Loyal Barber wrote:
> > >
> > > Franco Rizzo wrote:
> > > >
> > > > How can I to modify the visual attribute of a record in a multi-line block
> > > > (not the current record),
> > > > like report 2.5 ?
> > > >
> > > > thank you.
> > > Attributes are only available at three levels:
> > > item (column)
> > > current record
> > > in short, you can't
> >
> > Hi,
> >
> > If you have a way of identifying or storing which record you wanted >
 GOOD LUCK, THESE PROBLEMS ARE WHAT MAKES FORMS SUCH FUN :-)
> >
> > Grant Donohoe.
> Problem is, this solution won't work. As soon as you navigate to
> another record, the record where you changed the current record
> attribute
> is no longer the current record. therefore the attribute will
> change back to the default.

Loyal,

Use DISPLAY_ITEM

I tried this last night simulating my suggesting navigation process with a mouse click.

If you use display_item when you reach your target record then it does not get reset until another display_item command is fired.

So... I set a when_mouse_double_click on an item and then went up and down the records . I double clicked on my item and this fired the display_item statements I had put in, setting the item(s) I had named to a named visual_attribute - just for that record ..., I then went to another record and the previous item(s) remained in its new state. To highlight a whole record just loop through the items. Oracle even has some suggested code to do this, see 3-70 of the forms reference manual volume 1.

I'm not guaranteeing this will do what you actually want, but it must get you close, the hassle will be in setting and resetting the records, it wont be pretty but if you really have to do it...

Anyway even if it doesnt help, at least I learnt something !

Cheers,

Grant. Received on Thu Sep 05 1996 - 00:00:00 CEST

Original text of this message