Build 2623

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Build 2623

Post by aware_support »

Build 2623 has been released. It includes support for text attributes that store colors. Such attributes can be edited with the Color Picker widget
Aware IM Support Team
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Build 2623

Post by tford »

Thanks!

Can you give an example of two of how this would be used?
Tom - V8.8 build 3137 - MySql / PostGres
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Build 2623

Post by aware_support »

1. You define a text attribute with the property "Content" (former "Format") set to "Color" rather than default setting of "STANDARD"
2. If you put this attribute on a form Aware IM will generate a color-picker widget, rather than the standard text box.
At runtime the user will be able to pick a color as the value for this attribute
3. You can then use this color in tag expressions at various places in the system - in HTML, attribute styles etc.
For example, in HTML:
<div style="background-color:<<MyObject.ColorAttr>>"></div>
4. If used in queries the system by default will display color boxes with actual colors
Aware IM Support Team
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Build 2623

Post by tford »

It's a year later, but I'm finally using this with Jaymer's help.

Very slick feature!

Nice to be able to set Presentation Rules on an attribute with one simple step. For example, on Category.Name attribute Presentation Rule:
background: <<Category.Color>>

Then by turning on "Use style defined ..."
Color.PNG
Color.PNG (13.13 KiB) Viewed 4265 times
the Category.Color picked in an instance of Category BO is used as the background color for Category.Name

That Color can then be used as Category is assigned to instances of Orders related to a particular Category.
Tom - V8.8 build 3137 - MySql / PostGres
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Re: Build 2623

Post by tford »

You can also easily pull the chosen Category.Color into another BO & Query:
Color2.PNG
Color2.PNG (21.95 KiB) Viewed 4264 times
Tom - V8.8 build 3137 - MySql / PostGres
Post Reply