Home » Developer & Programmer » Forms » HELP !! Change color to Item runtime
HELP !! Change color to Item runtime [message #384177] Mon, 02 February 2009 09:46 Go to next message
luci
Messages: 1
Registered: February 2009
Junior Member
hello to everyone.
this's my problem:

in a "post query" trigger, for each record of my block,I perform a query on a table. this query returns me a color code (I could have a differnt color for each rows).
then i must use that color as my item backgroud color: i must set that color as background color.

I can't use:
SET_ITEM_INSTANCE_PROPERTY('BLOCK.ITEM',CURRENT_RECORD,VISUAL_ATTRIBUTE,'VA_COLOR');
because i could have a lot of colors and i can't define a visual_attribute for each possible color in design-time...

someone can help me please?

thanks a lot.
Andrea


[Updated on: Mon, 02 February 2009 11:24]

Report message to a moderator

Re: HELP !! Change color to Item runtime [message #384260 is a reply to message #384177] Tue, 03 February 2009 00:53 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
Why can't you define all the colours that you are going to store in the database?

David
Previous Topic: How to create the parameter?
Next Topic: how to read barcode data in form
Goto Forum:
  


Current Time: Fri Dec 02 16:46:24 CST 2016

Total time taken to generate the page: 0.19221 seconds