Home » Developer & Programmer » Forms » Changing visual attribute property to a record in a block.
icon5.gif  Changing visual attribute property to a record in a block. [message #352357] Tue, 07 October 2008 05:10 Go to next message
kshitij.raj
Messages: 7
Registered: July 2007
Junior Member
Hi,
I am using a non data base block.In the block i want to change visual attrute of record as per some validations.I used SET_ITEM_INSTANCE_PROPERTY which is very inefficient if i have 20 columns.I have to use the property 20 times.is there any command which can change the Visual attribute in one for a particualar record??

kshitij
Re: Changing visual attribute property to a record in a block. [message #352373 is a reply to message #352357] Tue, 07 October 2008 06:42 Go to previous messageGo to next message
Littlefoot
Messages: 20893
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Well, type faster as there's no SET_RECORD_PROPERTY of the kind you are looking for.

Copy-paste technique might help you do the job even faster (as you wouldn't have to type all the text).
Re: Changing visual attribute property to a record in a block. [message #352374 is a reply to message #352373] Tue, 07 October 2008 06:45 Go to previous messageGo to next message
kshitij.raj
Messages: 7
Registered: July 2007
Junior Member
Thanks

But are there any other higher versions where i can find this functionality.
Re: Changing visual attribute property to a record in a block. [message #352460 is a reply to message #352374] Tue, 07 October 2008 17:36 Go to previous messageGo to next message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
I suggest writing a routine to do the 'set' and then call your routine passing the item name as a parameter. But you will still have to call the routine 20 times.

David
Re: Changing visual attribute property to a record in a block. [message #377124 is a reply to message #352460] Sat, 20 December 2008 09:34 Go to previous messageGo to next message
subba99
Messages: 31
Registered: September 2008
Member
hi David

I am also facing same problem,can u please explain how can we write routine with an example.

Thanks in Advance

subbu
Re: Changing visual attribute property to a record in a block. [message #377148 is a reply to message #377124] Sat, 20 December 2008 13:25 Go to previous message
Littlefoot
Messages: 20893
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
But - David explained what to do in details! What more do you need? A "routine" is a form procedure. It will have one IN parameter - item name. It will also have SET_ITEM_(INSTANCE)_PROPERTY which will set property for the item (our IN parameter).

It really isn't that difficult so - why wouldn't you do it by yourself? If it doesn't work as you'd like it to, post code you have written and someone will certainly help.

Oh, yes - in case you'd still like David to write it for you, bad news - he is off the Forum for the next couple of weeks.
Previous Topic: call with button from report A to B
Next Topic: Cursor in Oracle Forms
Goto Forum:
  


Current Time: Mon Dec 05 06:33:59 CST 2016

Total time taken to generate the page: 0.08519 seconds