Home » Developer & Programmer » Forms » set_block_property - visual attribute
set_block_property - visual attribute [message #621272] Tue, 12 August 2014 05:53 Go to next message
pelin
Messages: 1
Registered: August 2014
Location: Turkey
Junior Member
Hi everyone,
I have an urgent problem. I want to change block colour depends on a condition.
I create new visual attribute CALLED RED.


my code is like;

if :customer.status='C'
then
set_block_property('customer', current_record_attribute, 'RED');
end if;

but it doesn't work. When i click the other record which status isnt'n 'C', all of them are red.

please help me ..
Re: set_block_property - visual attribute [message #621275 is a reply to message #621272] Tue, 12 August 2014 06:02 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Have a look here. Say if it doesn't do what you are looking for.
Re: set_block_property - visual attribute [message #621291 is a reply to message #621272] Tue, 12 August 2014 07:41 Go to previous message
azamkhan
Messages: 557
Registered: August 2005
Senior Member
That is because you are trying to change block property, which means all the item's colour will be changed.
Previous Topic: migration of oracle forms 6i to web forms
Next Topic: Write Long or CLOB to file [ Not supporting more then 4000 on long]
Goto Forum:
  


Current Time: Fri Apr 26 12:56:50 CDT 2024